Get-NotificationAction
Get-NotificationAction
Gets notification actions.
Syntax
Parameter Set: FromMonitoringObjectProviderPath
Get-NotificationAction [[-Path] <String[]> ] [ <CommonParameters>]
Parameter Set: FromId
Get-NotificationAction [-Id] <Guid> [[-Path] <String[]> ] [ <CommonParameters>]
Detailed Description
Gets all notification actions or the particular notification action with the specified notification action ID.
Parameters
-Id<Guid>
Specifies the GUID of the notification action to retrieve.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
-Path<String[]>
Specifies the path or set of paths of management groups for which to retrieve notification actions. To enter multiple values, separate them by using commas.
Aliases |
none |
Required? |
false |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters
Notes
- For more information, type "Get-Help Get-NotificationAction -detailed". For technical information, type "Get-Help Get-NotificationAction -full".
When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".
Examples
-------------- EXAMPLE 1 --------------
This command retrieves the notification action with ID <GUID>.
C:\PS>get-notificationaction -id <guid>
-------------- EXAMPLE 2 --------------
This command retrieves all notification actions associated with management groups specified by the current path.
C:\PS>get-notificationaction