Get-SCOMNotificationChannel
检索管理组的通知通道。
语法
Get-SCOMNotificationChannel
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCOMNotificationChannel
[-DisplayName] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
说明
Get-SCOMNotificationChannel cmdlet 检索管理组的通知通道。 通知通道会通知管理员警报,或者他们运行自动化来响应警报。 通知通道使用 System Center - Operations Manager 中的传递机制(如电子邮件、即时消息、短消息服务或命令)来传递通知。
示例
示例 1:获取所有通知通道
PS C:\>Get-SCOMNotificationChannel
此命令获取所有通知通道。
示例 2:使用显示名称获取通知通道
PS C:\>Get-SCOMNotificationChannel -DisplayName "Email channel"
此命令获取名为 Email 通道的通知通道。
示例 3:使用名称获取通知通道
PS C:\>Get-SCOMNotificationChannel -DisplayName "MyCustomChannel"
此命令获取名为 MyCustomChannel 的通知通道。
参数
-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
”。
如果在 ComputerName 参数中指定计算机,请使用有权访问该计算机的帐户。
默认为当前用户。
Type: | PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
指定通道的显示名称。
Type: | String[] |
Position: | 1 |
Default value: | None |
Required: | True |
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 |