The Get-SCServicingWindowSubscription cmdlet gets a list of servicing window subscriptions.
For more information about Get-SCServicingWindowSubscription, type: "Get-Help Get-SCServicingWindowSubscription -online".
Parameters
ServicingWindow
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a servicing window object.
VMHost
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a virtual machine host object. VMM supports Hyper-V hosts, VMware ESX hosts, and Citrix XenServer hosts.
For more information about each type of host, type: "Get-Help Add-SCVMHost -detailed". See the examples for a specific cmdlet to determine how that cmdlet uses this parameter.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
ServicingWindow
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a servicing window object.
Service
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a VMM service object.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
ServicingWindow
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a servicing window object.
VM
Required?
true
Accept Pipeline Input?
false
Position?
named
Specifies a virtual machine object.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Examples
1: Get a list of a servicing window
subscriptions for a virtual machine.
The first command gets the virtual machine object named VM01 and stores the object in the $VM variable.
The second command gets the servicing window subscription objects for the virtual machine stored in $VM (VM01) and stores the objects in the $SvcWindowSub variable.
The last command displays the servicing windows stored in $SvcWindowSub for the user.
2: Get a list of subscriptions for a
specified servicing window.
The first command gets the servicing window object named Backup Staging A and stores the object in the $SvcWindow variable.
The second command gets the servicing window subscription objects for the servicing window stored in $SvcWindow (Backup Staging A) and stores the objects in the $SvcWindowSub variable.
The last command displays the list of subscriptions stored in $SvcWindowSub to the user.
3: Get the servicing window
subscription for a specified virtual machine and a specified
servicing window.
The first command gets the virutal machine object named VM01 and stores the object in the $VM variable.
The second command gets the servicing window object named Backup Staging A and stores the object in the $SvcWindow variable.
The third command gets the servicing window subscription object for the virtual machine stored in $VM (VM01) and the servicing window stored in $SvcWindow (Backup Staging A) and stores the object in the $SvcWindowSub variable.
The last command displays information about the servicing window subscription stored in $SvcWindowSub to the user.