Get-SCOMNotificationSubscription
擷取通知訂閱的清單。
Syntax
Get-SCOMNotificationSubscription
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMNotificationSubscription
[-DisplayName] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMNotificationSubscription
-Id <Guid[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMNotificationSubscription
-Name <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Get-SCOMNotificationSubscription Cmdlet 會擷取 System Center - Operations Manager 中的通知訂閱列表。
範例
範例 1:依顯示名稱擷取通知訂閱
PS C:\>Get-SCOMNotificationSubscription -DisplayName "Subscription01"
此命令會擷取具有顯示名稱 Subscription01 的通知訂閱,並向使用者顯示訂閱的相關信息。
參數
-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 |
-DisplayName
指定物件的顯示名稱陣列。 此參數的值取決於您匯入的當地語系化管理元件,以及執行 Windows PowerShell的用戶地區設定。
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | True |
-Id
指定 GUID 的陣列。
Type: | Guid[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
指定要與指定物件的 Name 屬性相符的名稱陣列。
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | True |
-SCSession
指定 Connection 物件的陣列。 若要取得 Connection 物件,請使用 Get-SCManagementGroupConnection Cmdlet。
Type: | Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |