The Remove-SCServicingWindow cmdlet removes a servicing window definition from System Center Virtual Machine Manager (VMM). If the serviding window is assigned to a virtual machine, a host, or a service, the association is also removed.
For more information about Remove-SCServicingWindow, type: "Get-Help Remove-SCServicingWindow -online".
Parameters
ServicingWindow
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a servicing window object.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
Requires a VMM servicing window object, which can be retrieved by using the Get-SCServicingWindow cmdlet.
The first command gets the servicing window object named Backup Staging A and stores the object in the $SvcWindow variable.
The second command removes the servicing window stored in $SvcWindow (Backup Staging A).
IMPORTANT: All objects subscribing to this service window will lose their subscription.