Get-SCOMTelemetry
取得 Operations Manager 診斷數據的集合狀態。
Syntax
Get-SCOMTelemetry
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Get-SCOMTelemetry Cmdlet 會取得 System Center - Operations Manager 診斷和使用模式數據的集合狀態。 如果啟用集合,此 Cmdlet 會傳回值 $True。 如果停用集合,此 Cmdlet 會傳回值 $False。
根據預設,此 Cmdlet 會使用與管理群組的作用中持續性連線。 使用 SCSession 參數來指定不同的持續性連線。 您可以使用 ComputerName 和 Credential 參數,建立與管理群組的暫時連線。 如需詳細資訊,請鍵入 Get-Help about_OpsMgr_Connections
。
範例
1:取得遙測數據收集的目前狀態
PS C:\>Get-SCOMTelemetry
顯示是否已啟用遙測數據的收集。
參數
-ComputerName
指定電腦名稱的陣列。 Cmdlet 會為這些電腦建立與管理群組的暫時連線。 您可以使用 NetBIOS 名稱、IP 位址或完整功能變數名稱, (FQDN) 。 若要指定本機電腦,請輸入電腦名稱、localhost 或句點 (.)。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
指定管理群組連線的 PSCredential 物件。
若要取得 PSCredential 物件,請使用 Get-Credential Cmdlet。
如需詳細資訊,請鍵入 Get-Help Get-Credential
。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
指定 Connection 物件的陣列。 若要取得 Connection 物件,請使用 Get-SCManagementGroupConnection Cmdlet。
Type: | Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |