Start-SCUpdateRemediation

Applies To: System Center 2012 - Virtual Machine Manager

Start-SCUpdateRemediation

Initiates the action of installing one or more updates on a managed server that are required from an assigned baseline.

Syntax

Parameter Set: ClusterNodeRemediationWithJobgroup
Start-SCUpdateRemediation -JobGroup <Guid> -VMHost <Host> -VMHostCluster <HostCluster> [-Baseline <Baseline> ] [-JobVariable <String> ] [-PROTipID <Guid> ] [-RunAsynchronously] [-SuspendReboot] [-Updates <List<SoftwareUpdate>> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ClusterRemediationWithJobgroup
Start-SCUpdateRemediation -JobGroup <Guid> -StartNow -VMHostCluster <HostCluster> [-BypassMaintenanceModeCheck] [-JobVariable <String> ] [-PROTipID <Guid> ] [-RunAsynchronously] [-UseLiveMigration] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: VMHostCluster
Start-SCUpdateRemediation -RemediateAllClusterNodes -VMHostCluster <HostCluster> [-Baseline <Baseline> ] [-BypassMaintenanceModeCheck] [-JobVariable <String> ] [-PROTipID <Guid> ] [-RunAsynchronously] [-SuspendReboot] [-Updates <List<SoftwareUpdate>> ] [-UseLiveMigration] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: VMMManagedComputer
Start-SCUpdateRemediation -VMMManagedComputer <VMMManagedComputer> [-Baseline <Baseline> ] [-EnableMaintenanceMode] [-JobGroup <Guid> ] [-JobVariable <String> ] [-PROTipID <Guid> ] [-RunAsynchronously] [-StartNow] [-SuspendReboot] [-Updates <List<SoftwareUpdate>> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed Description

The Start-SCUpdateRemediation cmdlet initiates the action of installing one or more non-compliant updates on a managed server that are required from an assigned baseline.

For more information about Start-SCUpdateRemediation, type: "Get-Help Start-SCUpdateRemediation -online".

Parameters

-Baseline<Baseline>

Specifies a VMM baseline object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-BypassMaintenanceModeCheck

Indicates that cluster patching continues node by node even if a cluster node is already in maintenance mode. By default, cluster remediation fails if any of the cluster nodes are already in maintenance mode.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-EnableMaintenanceMode

Enables maintenance mode for a stand-alone VMM management server that also serves as a host. By default, when remediating a stand-alone host, VMM does not put it into maintenance mode.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-JobGroup<Guid>

Specifies an identifier for a series of commands that will run as a set just before the final command that includes the same job group identifier runs.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobVariable<String>

Specifies that job progress is tracked and stored in the variable named by this parameter.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-PROTipID<Guid>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RemediateAllClusterNodes

Indicates that update remediation is performed on all nodes of a cluster.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StartNow

Identifies the last command of a jobgroup and starts running the commands within the jobgroup. This parameter must be used with the JobGroup parameter.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SuspendReboot

Indicates that the computer that is being updated will not reboot when a reboot is required by a software update.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Updates<List<SoftwareUpdate>>

Specifies one or more software updates.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-UseLiveMigration

Indicates that live migration is used during a cluster remediation.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

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

-VMHostCluster<HostCluster>

Specifies a VMM host cluster object.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-VMMManagedComputer<VMMManagedComputer>

Specifies a computer object that is managed by VMM.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue)

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.

  • ComplianceStatus
  • VMMManagedComputer

Examples

1: Bring a host into compliance with a specified baseline.

The first command gets the host object named VMHost01 and stores the object in the $VMHost variable.

The second command gets the compliance status for host VMHost01 and stores the status object in the $Compliance variable.

The third command gets the baseline object named Security Baseline and stores the object in the $Baseline variable.

The fourth command starts a compliance scan on VMHost01 against the Security Baseline baseline and stores the results in the $Compliance variable.

The last command starts remediation of VMHost01 to bring it into compliance with the Security Baseline baseline.

PS C:\> $VMHost = Get-SCVMHost -ComputerName "VMHost01"
PS C:\> $Compliance = Get-SCComplianceStatus -VMMManagedComputer $VMHost.ManagedComputer
PS C:\> $Baseline = Get-SCBaseline -Name "Security Baseline"
PS C:\> $Compliance = Start-SCComplianceScan "VMMManagedComputer $VMHost.ManagedComputer "Baseline $Baseline
PS C:\> Start-SCUpdateRemediation -VMMManagedComputer $VMHost.ManagedComputer "Baseline $Baseline

Get-SCBaseline

Start-SCComplianceScan