Get-SCServicingWindow

Gets a list of servicing windows that are assigned to a virtual machine, a host, or a service.

Syntax

Get-SCServicingWindow -ID <Guid> [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCServicingWindow [-Name] <String> [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCServicingWindow -Service <Service> [-ServicingWindowFilter <ServicingWindowFilterType>]
 [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCServicingWindow [-ServicingWindowFilter <ServicingWindowFilterType>] -VMHost <Host>
 [-VMMServer <ServerConnection>] [<CommonParameters>]
Get-SCServicingWindow [-ServicingWindowFilter <ServicingWindowFilterType>] -VM <VM>
 [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Get-SCServicingWindow cmdlet gets a list of servicing windows that are assigned to a virtual machine, a host, or a service.

Examples

Example 1: Get a specific servicing window by its name

PS C:\> $SvcWindow = Get-SCServicingWindow -Name "Backup Staging A"
PS C:\> $SvcWindow

The first command gets the servicing window object named Backup Staging A and stores the object in the $SvcWindow variable.

The second command displays the information about the servicing window stored in $SvcWindow (Backup Staging A).

Parameters

-ID

Specifies the numerical identifier as a globally unique identifier, or GUID, for a specific object.

Type:Guid
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of a Virtual Machine Manager (VMM) object.

Type:String
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Service

Specifies a VMM service object.

Type:Service
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServicingWindowFilter

Specifies a filter for retrieving servicing windows. Valid values are:

- Now

  • Next
  • All

Type:ServicingWindowFilterType
Parameter Sets:Now, Next, All
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VM

Specifies a virtual machine object.

Type:VM
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHost

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, see the Add-SCVMHost cmdlet.

Type:Host
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

ServicingWindow

This cmdlet returns a **ServicingWindow** object.