Add-WssDisksToSpacesPool
Add-WssDisksToSpacesPool
Adds physical disks to a storage pool.
Syntax
Parameter Set: Default
Add-WssDisksToSpacesPool [-Pool] <SpacesPool> [-Disks] <ICollection<Disk>> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Add-WssDisksToSpacesPool cmdlet adds physical disks to a storage pool.
Parameters
-Disks<ICollection<Disk>>
Specifies the physical disks to add to the storage pool.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Force
Forces the command to run without asking for user confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Pool<SpacesPool>
Specifies a StoragePool object. To obtain a StoragePool object, use theGet-WssSpacesPool cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Add a physical disk to a storage pool
The first command gets the Disk object that has the ID 26a21bda-a627-11d7-9931-806e6f6e6963, and stores it in the $Disk variable.
The second command gets the storage pool that has the ID 13c41bda-a627-22d7-4631-806e6f6e6963, and stores it in the $Pool variable.
The third command adds the physical disk stored in the $Disk variable to the storage pool stored in the $Pool variable.
PS C:\> $Disk = Get-WssDisk -ID "26a21bda-a627-11d7-9931-806e6f6e6963"
PS C:\> $Pool = Get-WssSpacesPool -ID "13c41bda-a627-22d7-4631-806e6f6e6963"
PS C:\> Add-WssDisksToSpacesPool -Disks $Disk -Pool $Pool