Set-SCBaseline

Set-SCBaseline

Modifies a baseline by adding or removing updates or assignment scopes.

構文

Parameter Set: Default
Set-SCBaseline [-Baseline] <Baseline> [-AddAssignmentScope <IBaselineAssignmentScope> ] [-AddUpdates <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-Description <String> ] [-JobGroup <Guid]> ] [-JobVariable <String> ] [-Name <String> ] [-PROTipID <Guid]> ] [-RemoveAssignmentScope <IBaselineAssignmentScope> ] [-RemoveUpdates <0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]> ] [-RunAsynchronously] [-StartNow] [-VMMServer <ServerConnection> ] [ <CommonParameters>]

詳細説明

The Set-SCBaseline cmdlet modifies a baseline by adding or removing updates or assignment scopes. A baseline is a list of updates which, together with scope assignments, can grade the compliance of required updates for Virtual Machine Manager (VMM) fabric servers.

パラメーター

-AddAssignmentScope<IBaselineAssignmentScope>

Adds one or more virtual machine hosts or clusters to a baseline assignment scope.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-AddUpdates<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Adds one or more software updates to a baseline.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Baseline<Baseline>

Specifies a VMM baseline object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-Description<String>

States a description for the specified object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

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

必須?

false

位置は?

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

-Name<String>

Specifies the name of a VMM object.

エイリアス

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

-RemoveAssignmentScope<IBaselineAssignmentScope>

Removes one or more VMMManagedComputer, VMHostCluster, or VMHostGroup objects from a baseline assignment scope.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RemoveUpdates<0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]>

Removes one or more software updates from a baseline.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

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

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

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)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Baseline

Example Example 1: Modify an existing baseline by adding updates and an assignment scope.s

The first command gets the cluster object named Cluster01, and then stores the object in the $Cluster variable.

The second command gets the baseline object named Security Baseline, and then stores the object in the $Baseline variable.

The third command gets the security bulletin update object named MS05-051, and then stores the object in the $Update variable.

The last command adds the update stored in $Update to the baseline stored in $Baseline and sets the assignment scope to the object stored in $Cluster.

PS C:\> $Cluster = Get-SCVMHostCluster -Name "Cluster01"
PS C:\> $Baseline = Get-SCBaseline -Name "Security Baseline"
PS C:\> $Update = Get-SCUpdate -SecurityBulletinId "MS05-055"
PS C:\> Set-SCBaseline -Baseline $Baseline -AddUpdates $Update -AddAssignmentScope $Cluster

Example 2: Remove an update and an assignment scope from an existing baseline

The first command gets the cluster object named Cluster01, and then stores the object in the $Cluster variable.

The second command gets the baseline object named Security Baseline, and then stores the object in the $Baseline variable.

The third command gets the security bulletin update object named MS05-051, and stores the object in the $Update variable.

The last command removes the update stored in $Update from the baseline stored in $Baseline and removes the assignment scope stored in $Cluster.

PS C:\> $Cluster = Get-SCVMHostCluster -Name "Cluster01"
PS C:\> $Baseline = Get-SCBaseline -Name "Security Baseline"
PS C:\> $Update = Get-SCUpdate -SecurityBulletinId "MS05-055"
PS C:\> Set-SCBaseline -Baseline $Baseline -RemoveUpdates $Update -RemoveAssignmentScope $Cluster

関連トピック

Get-SCBaseline

New-SCBaseline

Remove-SCBaseline

Get-SCVMHostCluster

Get-SCUpdate