2023年11月17日 星期五

ManageEngine EventLog Analyzer版本更新步驟



先將下載的更新檔上傳到主機裡,再進行下列動作。

切換到 ManageEngine EventLog Analyzer 安裝目錄:
                                                  cd /opt/ManageEngine/EventLog/bin$ 

接著停止EventLog Analyzer服務:
                                                   sudo ./shutdown.sh

EventLog Analyzer服務停止後,執行:
                                                    sudo ./UpdateManager.sh -c

Press i to  Install
      c to  Import Certificate
      v to  View installed ServicePack versions
      e to  Exit
Choose an Option:i

選擇「i」 輸入更新檔路徑進行 PPM更新檔安裝程序:
Enter the patch file to install:/home/xxxxx/ManageEngine_EventLog_Analyzer_12_3_0_SP-12_3_2_8.ppm

更新完成,需要重新啟動服務:
                                                       sudo systemctl start eventloganalyzer
確認一下服務是否正常啟動:
                                                       sudo systemctl status eventloganalyzer

2023年10月11日 星期三

GPO 派送 Powershell script 關閉 Windows 10、11 Wi-Fi 「隨機硬體位址」

適用環境:

Wi-Fi 連線需要固定 Mac Address 位址


缺點:

利用 Wi-Fi 連線,送出的 Mac Address 都是實體位址,不會再隨機產生新的 Mac Address。


作法:

電腦開機登入系統時,執行 Powershell script 取得 Wi-Fi 的實體 Mac Address,再將取得的 Mac Address 寫入機碼。


設定 GPO:

1.將 Script 放入 \\AD_Domain\netlogon 裡。

2.設定GPO Policy 


其他 GPO 項目的設定值,可以自行參考作者文章,測試是否需要調整。

參考文章及引用:

1. Script to Disable "Use Random MAC Addresses" for wifi : r/SCCM (reddit.com)

2. Running PowerShell Startup (Logon) Scripts Using GPO | Windows OS Hub (woshub.com)

2023年3月9日 星期四

利用GPO或CMD關閉Windows 11 工具列小圖示

指令方式調整工具列圖示:

搜尋:

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v SearchboxTaskbarMode /t REG_DWORD /d 0 /f

工作檢視:

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowTaskViewButton /t REG_DWORD /d 0 /f

聊天:

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarMn /t REG_DWORD /d 0 /f

小工具:

reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v TaskbarDa /t REG_DWORD /d 0 /f


GPO方式調整工具列圖示:

將上面的路徑轉換為GPO方式統一派送到使用者電腦



2019年11月19日 星期二

VMWare ESXi 6.5 VLAN 串接 CISCO Port-channel 設定

CISCO Switch 設定
設定 Port-channel 時最好不要接網路線或者把一個 Port shutdown,以免造成 loop
#config terminal
(config)#interface gi1/0/1
(config-if)#channel-group 1 mode on
(config-if)#switchport mode trunk

(config-if)#interface gi1/0/2
(config-if)#channel-group 1 mode on
(config-if)#switchport mode trunk

(config-if)#interface po1
(config-if)#switchport mode trunk

檢查 Switch witch 設定,確認 interface gi1/0/1、interface gi1/0/2 和 Port-channel1 是否為 up
#show ip interface brief

#show etherchannel summary
Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------------------------
1      Po1(SU)          -        Gi1/0/1(P)  Gi1/0/2(P)

#show interface po1
Port-channel1 is up, line protocol is up (connected) 
  Hardware is EtherChannel, address is 2222.3333.4444 (bia 2222.3333.4444)
  Description: VM_LAB
  MTU 1500 bytes, BW 2000000 Kbit/sec, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 1000Mb/s, link type is auto, media type is unknown
  input flow-control is off, output flow-control is unsupported
  Members in this channel: Gi1/0/1 Gi1/0/2


VMware ESXi vSwitch 設定
新增 vSwitch 設定,按【新增上行】可加入多張網路介面到 vSwitch

負載平衡 欄位需選擇【根據 IP 雜湊進行路由


VMware ESXi  VLAN ID 設定
新增 VLAN 連接群組

要新增多個連接埠,重複上圖步驟即可加入多個VLAN到Trunk_vSwitch裡。

設定好的 VLAN 欄位值



如果沒有其他設備的問題,依上面步驟就可設定好 VMWare ESXi VLAN 串接 CISCO Port-channel

我自己是遇到 CISCO Switch 的 VTP mode 被設定為 Server,找了好久才找到問題!!!!!!!!!




2019年5月16日 星期四

Office 365修改單一使用者的OneDrive儲存空間



1.      下載、安裝SharePoint Online套件


2.      輸入連線指令

$adminUPN="hansen@sample.com.tw"

$orgName="sample"

$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."

Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential

3.      開啟 Office 365 管理網頁,切換到【使用者】、【作用中使用者】,選擇要修改OneDrive空間的使用者


4.      設定此一使用者OneDrive空間容量為 1T(1048567) 或 5T(5242880),依訂閱的類型可用的儲存空間也不同。
Set-SPOSite -Identity https://sample-my.sharepoint.com/personal/kings01_sample_com_tw -StorageQuota 5242880


2019年4月5日 星期五

釋放 iPhone 記憶體(RAM)

引用網友的小祕訣:
在 iPhone 快速運作過程中,需要記憶體作為暫時存放程式、指令或資料的地方,用來提昇整體的效能。你可能會發現當你開越多 App 在背景執行 iPhone 會變得越來越卡,就是記憶體不足的關係。

快速釋放記憶體操作方式:
1. 長按電源鍵至滑動關機頁面
2. 接著長按 Home 鍵並等待回復至桌面即可自動釋放記憶體。

2019年1月3日 星期四

Office 2019 離線安裝程式下載

Office 2019 不支援 Windows 7、Windows 8 的作業系統,相信大家早已知道。

另外一變動是大量授權的商業用戶以往要下載安裝程式時,只要登入 VLSC 網頁,就可以下載已購買的軟體 ISO 檔。

但現在商業用戶要下載 Office 2019 的安裝程式,在 VLSC 網頁內只能找到一支 Office 部署工具程式(Microsoft下載中心也能下載Office部署工具)。使用者要離線安裝 Office 2019,就要先自己使用部署工具程式下載 Office 2019 軟體。

從下載的 Office部署工具解壓縮後會看到兩個 xml 配置檔(內容預設是 Office 365 的配置設定)及一支 setup.exe。使用前先修改 xml 配置檔以符合購買的授權版本。

微軟也提供快速產生 XML 配置檔的設定網頁:

這裡有一點要注意,配置檔內最好不要有中文字。
我自己在下載時,配置檔內有中文時依然可以正常下載 Office 2019 程式,
但在安裝時確一直無法成功安裝。

以下是 『Office 2019 Standard 32位元 繁中』的 XML 配置檔內容:
<Configuration>
  <Add OfficeClientEdition="32" Channel="PerpetualVL2019" AllowCdnFallback="FALSE" ForceUpgrade="TRUE">
    <Product ID="Standard2019Volume">
      <Language ID="zh-tw" />
      <ExcludeApp ID="OneNote" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="Publisher" />
      <ExcludeApp ID="Outlook" />
    </Product>
  </Add>
  <Property Name="SharedComputerLicensing" Value="0" />
  <Property Name="PinIconsToTaskbar" Value="TRUE" />
  <Property Name="SCLCacheOverride" Value="0" />
  <Property Name="AUTOACTIVATE" Value="0" />
  <Updates Enabled="TRUE" Channel="PerpetualVL2019" />
  <Logging Level="Off" />
</Configuration>

XML 配置檔設定方式可參考下列微軟網站提供的資訊:

修改好 xml 配置檔就可以開始下載 Office 2019 程式:
1.先將 xml 和 setup.exe 存放在同一目錄
2.以「系統管理員身份執行」開啟一個【命令提示字元】視窗
3.切換到該目錄執行下列指令:
setup.exe /download Office2019std_x86.xml
setup.exe /download Office2019std_x64.xml

4.下載後為了方便安裝,可以建立一個簡單的批次執行檔,輸入:
setup.exe /configure Office2019std_x64.xml

這裡要注意的是:
1.安裝程式放在NAS裡時,必需要連線成網路磁碟,才能正常安裝成功
2.安裝時,電腦的網路必需要能正常連線 Internet

Office 2019 for Mac 可直接於微軟網站下載 pkg 檔的安裝程式:


ManageEngine EventLog Analyzer版本更新步驟

更新檔下載位址: Upgrade to Latest Version of EventLog Analyzer Build (manageengine.com) 先將下載的更新檔上傳到主機裡,再進行下列動作。 切換到 ManageEngine EventLog Analyzer ...