Set-SCSPFServer
Set-SCSPFServer
Associates a server with one or more stamps.
構文
Parameter Set: Default
Set-SCSPFServer -Server <Server> [-Stamps <Stamp[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Set-SCSPFServer cmdlet associates a server with a stamp in Service Provider Foundation. Currently, you can associate only a VMM server with a stamp.
If you want to add an association of a stamp to a server without changing the stamps currently associated with the server, use the Set-SCSPFStamp cmdlet.
パラメーター
-Server<Server>
Specifies the server object to be set to new values by the other parameters in this cmdlet. To obtain a server, use the Get-SCSPFServer cmdlet.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Stamps<Stamp[]>
Specifies one or more stamps to associate with the server. To obtain a stamp, use the Get-SCSPFStamp cmdlet.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Set a server to a stamp
The first two commands get a stamp and a server.
The third command associates the server with the stamp.
PS C:\> $stamp_silver = Get-SCSPFStamp -Name "Silver"
PS C:\> $server = Get-SCSPFServer -Name "serverD7"
PS C:\> Set-SCSPFServer -Server $server -Stamps $stamp_silver