New-WssStorageSpace
Creates a two-way mirrored storage space.
Syntax
New-WssStorageSpace
[-Force]
[-Disk] <System.Collections.Generic.ICollection`1[Microsoft.WindowsServerSolutions.Storage.Disk]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The New-WssStorageSpace cmdlet creates a two-way mirrored storage space on physical disks that you specify.
Examples
Example 1: Create a storage space
PS C:\> $Disks = Get-WssPoolableDisk
PS C:\> New-WssStorageSpace -Disk $Disks
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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Disk
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.
Type: | ICollection<T>[Microsoft.WindowsServerSolutions.Storage.Disk] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Force
Forces the command to run without asking for user confirmation.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Microsoft.WindowsServerSolutions.Storage.Drive
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for