Set-SCStoragePool

Modifies a storage pool object in the VMM database.

Description

The Set-SCStoragePool cmdlet modifies a storage pool object in the System Center Virtual Machine Manager (VMM) database.

For more information about Set-SCStoragePool, type: "Get-Help Set-SCStoragePool -online".

Parameters

StoragePool

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a storage pool object.

AddVMHostGroup

Required? false
Accept Pipeline Input? false
Position? named
Adds one or more host groups to an existing host group array or private cloud.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

Name

Required? false
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RemoveVMHostGroup

Required? false
Accept Pipeline Input? false
Position? named
Removes one or more host groups from a host group array or private cloud.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

StorageClassification

Required? false
Accept Pipeline Input? false
Position? named
Specifies a storage classification object.

Examples

1: Change the name of a storage pool.
PS C:\> $Pool = @(Get-SCStoragePool)[0]
PS C:\> Set-SCStoragePool -StoragePool $Pool -Name "New name of pool"
The first command gets all storage pool objects and 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".
2: Set the classification for a storage 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
The first command gets the storage pool object with the ID of 346e17e9-d50a-480e-8dec-c41d7e2125b0 and stores the object in the $Pool variable.

The second command gets the storage classification object named StorageClassification01 and stores the object in the $Classification variable.

The last command associates the storage classification stored in $Classification (StorageClassification01) with the storage pool stored in $Pool.

See Also