Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Get-SCServicingWindow

Updated: November 1, 2013

Applies To: System Center 2012 R2 Virtual Machine Manager

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, or 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.

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

1: Get a specific servicing window by its name.

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) to the user.


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

Related topics

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.