Windows Server 評估評估伺服器環境涵蓋以下領域:伺服器基線、伺服器安全、Hyper-V、故障轉移叢集及 IIS。 它還收集並分析會產生待解決問題清單的伺服器資料,並提供補救指引及最佳做法,以改善伺服器基礎結構的效能,以及部署應用程式、軟體更新和作業系統等功能。 評定透過 Microsoft Engage Center 提供,幫助您最佳化您的 Microsoft 技術投資的可用性、安全性和效能。 這些評估採用 Microsoft Azure Log Analytics,旨在為您提供整個環境中更簡化的 IT 與安全管理。
執行 Windows Server 評估
必要條件
為了充分利用 Microsoft Engage Center 提供的隨選評定,您必須:
有啟用的 Azure 訂閱,並部署了 Engage Center 連接器、Log Analytics 工作空間、收集伺服器,以及新增了 Windows Server 評估擴充功能。 欲了解更多資訊,請參閱「 開始使用隨選評估」。
具有下列權限的網域帳戶 (使用者或受管理的服務帳戶):
- 環境中所有伺服器上本地管理員群組的成員
- 工具機本地系統管理員群組的成員
- 從工具機器不受限制地透過網路存取所有伺服器。
- PowerShell Remoting (在所有設備上啟用PSRemoting,或在所有網域控制器上使用GPO進行配置)
- Windows Update Agent 必須在所有範圍內的伺服器上執行,才能進行安全更新掃描
在資料收集電腦上:
- 安裝 Windows PowerShell 5.1 或更新版本
- 安裝了 IIS 管理控制台應用程式
- 安裝了 Log Parser 2.2
- PowerShell 執行政策設定為 RemoteSigned。
在資料收集機器上,請將群組政策編輯器(gpedit.msc)中的以下設定從「未設定」更改為「啟用」:
電腦設定 - >系統管理範本 - >系統 - >使用者設定檔「不要在使用者登出時強制卸載使用者登錄」。
透過群組原則啟用遠端事件記錄管理。
檢閱 Windows Server 評定的先決條件文件。 本文件詳細說明 Windows Server 評定的技術需求、執行評量所需的伺服器準備,以及收集的各種資料類型。
注意事項
若要執行隨選評定,首次完成環境設定通常需要兩小時左右。 執行評估後,你可以在 Azure Log Analytics 中檢視資料。 將為您提供六個重點區的分類建議清單。 這讓您和您的團隊能夠快速了解風險等級和環境健康情況,以便您採取措施降低風險並改善整體 IT 健康情況。
在資料收集機器上設定 Windows Server 評估工具
注意事項
您需要先設定 Engage Center 連接器,以設定隨選評估。 依照這些指示設定您的 Engage Center 連接器,連接 Log Analytics 工作區,然後新增您想設定的隨選評估。
在資料收集電腦建立下列資料夾:C:\OMS\WinSrv (或者除由系統保留的 C:\ODA 外,任何其他資料夾)。
以系統管理員模式開啟一般 Powershell (不是 ISE),然後執行下列 Cmdlet:
Add-WindowsServerAssessmentTask -ServerName <YourServerName> -WorkingDirectory <Directory>-LogAnalyticsWorkspaceId <WorkspaceID>command where YourServerName is the semi-colon separated FQDN or NetBIOS name of the Servers that need to be assessed and <Directory> is the path to an existing directory used to store the files created while collecting and analyzing the data from the environment.<WorkspaceId> – provides ID for the Log Analytics workspace that will be used to store the uploaded data如果您在系統管理員模式下,使用群組受管理的服務帳戶來開啟一般 PowerShell (而非 ISE),並執行下列 Cmdlet:
Add-WindowsServerAssessmentTask -ServerName <YourServerName> -WorkingDirectory <Directory> -LogAnalyticsWorkspaceId <WorkspaceID> -RunWithManagedServiceAccount $TrueWhere <YourServerName> is the semi-colon separated FQDN or NetBIOS name of the Servers that need to be assessed and <Directory> is the path to an existing directory used to store the files created while collecting and analyzing the data from the environment.<WorkspaceId> – Provides ID for the Log Analytics workspace that will be used to store the uploaded data提供必要的使用者帳戶認證,以符合本文前述需求。
名為 WindowsServerAssessment 的排定工作會在執行先前指令碼一小時內觸發資料收集,然後每 7 天觸發一次。 您可以修改此工作,以在其他日期/時間執行,或是透過 [工作排程器程式庫] -> [Microsoft] -> [Operations Management Suite] -> [AOI***] -> [評定] -> [WindowsServerAssessment] 立即強制執行
在收集和分析期間,系統會將資料暫存於安裝期間設定的工作目錄資料夾。
幾小時後,您的評估結果將顯示在您的 Log Analytics 和 Microsoft Engage Center 儀表板上。 你可以前往 Microsoft Engage Center -> IT 健康 -> 隨選評估,然後在使用中的評估旁選取「檢視所有建議」來查看結果。
如果你希望找 Microsoft 認證工程師與你一起討論 Windows Server 環境的問題,你可以聯絡你的 Microsoft 代表,詢問他們關於遠端或現場 CSA 主導交付的事宜