Start-SCUpdateRemediation
Start-SCUpdateRemediation
Initiates the action of installing required updates on a managed server.
構文
Parameter Set: ClusterNodeRemediationWithJobgroup
Start-SCUpdateRemediation -JobGroup <Guid]> -VMHost <Host> -VMHostCluster <HostCluster> [-Baseline <Baseline> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-SuspendReboot] [-Updates <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-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 <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-UseLiveMigration] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
Parameter Set: VMMManagedComputer
Start-SCUpdateRemediation -VMMManagedComputer <VMMManagedComputer> [-Baseline <Baseline> ] [-EnableMaintenanceMode] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-StartNow] [-SuspendReboot] [-Updates <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-VMMServer <ServerConnection> ] [ <CommonParameters>]
詳細説明
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.
パラメーター
-Baseline<Baseline>
Specifies a VMM baseline object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
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.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
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.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
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.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-JobVariable<String>
Specifies that job progress is tracked and stored in the variable named by this parameter.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-PROTipID<Guid]>
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-RemediateAllClusterNodes
Indicates that update remediation is performed on all nodes of a cluster.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
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.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-SuspendReboot
Indicates that the computer that is being updated will not reboot when a reboot is required by a software update.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-Updates<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>
Specifies one or more software updates.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-UseLiveMigration
Indicates that live migration is used during a cluster remediation.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
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.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-VMHostCluster<HostCluster>
Specifies a VMM host cluster object.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-VMMManagedComputer<VMMManagedComputer>
Specifies a computer object that is managed by VMM.
エイリアス |
none |
必須? |
true |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
-VMMServer<ServerConnection>
Specifies a VMM server object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- ComplianceStatus
- VMMManagedComputer
例
Example 1: Bring a host into compliance with a specified baseline
The first command gets the host object named VMHost01, and then stores the object in the $VMHost variable.
The second command gets the compliance status for host VMHost01, and then stores the status object in the $Compliance variable.
The third command gets the baseline object named Security Baseline, and then stores the object in the $Baseline variable.
The fourth command starts a compliance scan on VMHost01 against the Security Baseline baseline, and then 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