Share via


Get-SCServicingWindow

Get-SCServicingWindow

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

Syntax

Parameter Set: Connection
Get-SCServicingWindow [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: FromID
Get-SCServicingWindow -ID <Guid> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: FromName
Get-SCServicingWindow [-Name] <String> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: FromService
Get-SCServicingWindow -Service <Service> [-ServicingWindowFilter <ServicingWindowFilterType> {Now | Next | All} ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: FromVM
Get-SCServicingWindow -VM <VM> [-ServicingWindowFilter <ServicingWindowFilterType> {Now | Next | All} ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: FromVMHost
Get-SCServicingWindow -VMHost <Host> [-ServicingWindowFilter <ServicingWindowFilterType> {Now | Next | All} ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed Description

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

Parameters

-ID<Guid>

Specifies the numerical identifier as a globally unique identifier (GUID) for a specific object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of a VMM object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Service<Service>

Specifies a VMM service object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ServicingWindowFilter<ServicingWindowFilterType>

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

-- Now
-- Next
-- All

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VM<VM>

Specifies a virtual machine object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMHost<Host>

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.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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.

  • ServicingWindow

Examples

Example 1: Get a specific servicing window by its name

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

The second command displays the information about the servicing window stored in $SvcWindow.

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

New-SCServicingWindow

Remove-SCServicingWindow

Set-SCServicingWindow