Set-SCStoragePool
Set-SCStoragePool
Modifies a storage pool object in the VMM database.
構文
Parameter Set: Default
Set-SCStoragePool [-StoragePool] <StoragePool> [-AddStoragePhysicalDisk <StoragePhysicalDisk[]> ] [-AddVMHostGroup <HostGroup[]> ] [-Description <String> ] [-JobVariable <String> ] [-Name <String> ] [-PROTipID <Guid]> ] [-RemoveVMHostGroup <HostGroup[]> ] [-RunAsynchronously] [-StorageClassification <StorageClassification> ] [ <CommonParameters>]
詳細説明
The Set-SCStoragePool cmdlet modifies a storage pool object in the Virtual Machine Manager (VMM) database. You can change the properties of a storage pool, add a VMHostGroup to the storage pool, or remove a VMHostGroup from a storage pool.
パラメーター
-AddStoragePhysicalDisk<StoragePhysicalDisk[]>
Specifies a physical disk object or objects to add.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-AddVMHostGroup<HostGroup[]>
Adds one or more host groups to an existing host group array or private cloud.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Description<String>
States a description for the specified object.
エイリアス |
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 |
-RemoveVMHostGroup<HostGroup[]>
Removes one or more host groups from a host group array or private cloud.
エイリアス |
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 |
-StorageClassification<StorageClassification>
Specifies a storage classification object.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-StoragePool<StoragePool>
Specifies a storage pool object.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- StoragePool
例
Example 1: Change the name of a storage pool
The first command gets all storage pool objects, and then places them in an array. The command then stores the first item in the storage pool array in the $Pool variable.
The second command changes the name of the storage pool stored in the $Pool variable to New name of pool.
PS C:\> $Pool = @(Get-SCStoragePool)[0]
PS C:\> Set-SCStoragePool -StoragePool $Pool -Name "New name of pool"
Example 2: Set the classification for a storage pool
The first command gets the storage pool object with the ID of 346e17e9-d50a-480e-8dec-c41d7e2125b0, and then stores the object in the $Pool variable.
The second command gets the storage classification object named StorageClassification01, and then stores the object in the $Classification variable.
The last command associates the storage classification stored in $Classification with the storage pool stored in $Pool.
PS C:\> $Pool = Get-SCStoragePool -ID "346e17e9-d50a-480e-8dec-c41d7e2125b0"
PS C:\> $Classification = Get-SCStorageClassification -Name "StorageClassification01"
PS C:\> Set-SCStoragePool -StoragePool $Pool -StorageClassification $Classification