New-WssStorageSpace
Creates a two-way mirrored storage space.
Parameter Set: Default
New-WssStorageSpace [-Disk] <ICollection<Disk>> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
The New-WssStorageSpace cmdlet creates a two-way mirrored storage space on physical disks that you specify.
Specifies a collection of Disk objects. The cmdlet creates a storage space on the disks that you specify. To obtain Disk objects, use the Get-WssPoolableDisk cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
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).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
- Microsoft.WindowsServerSolutions.Storage.Drive
The first command uses the Get-WssPoolableDisk cmdlet to get the available poolable disks, and stores them in the $Disks variable.
The second command creates a two-way mirrored storage space on the collection of disks stored in the $Disks variable.
PS C:\> $Disks = Get-WssPoolableDisk
PS C:\> New-WssStorageSpace -Disk $Disks