Get-SCSPFEventRegistration
Applies To: System Center 2012 R2 Orchestrator
Get-SCSPFEventRegistration
Gets the event used to automate runbooks.
Syntax
Parameter Set: FromEventRegistrationResourceActionEnabledParameterSetName
Get-SCSPFEventRegistration [-Action <EventRegistrationActionNames> {Action_Pause | Action_Publish | Action_Repair | Action_Restart | Action_Resume | Action_Scale | Action_Shutdown | Action_Start | Action_Stop | Action_Unpublish | Create | Delete | Update | UpdateStatus} ] [-Resource <String> ] [ <CommonParameters>]
Detailed Description
The Get-SCSPFEventRegistration cmdlet gets an event that was registered to automate a runbook as performed by Service Management Automation.
Parameters
-Action<EventRegistrationActionNames>
Specifies the name of the event.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Resource<String>
Specifies the path to the resource.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
1. Get an event registration by its name.
This command gets an event with the Action parameter and stores it in the $event_backup
variable.
PS C:\> $event_backup = Get-SCSPFEventRegistration –Action "Backup"