Export (0) Print
Expand All
Expand Minimize

New-WssStorageSpace

Windows Server 2012 R2 and Windows 8.1

Updated: December 18, 2013

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

New-WssStorageSpace

Creates a two-way mirrored storage space.

Syntax

Parameter Set: Default
New-WssStorageSpace [-Disk] <ICollection<Disk>> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The New-WssStorageSpace cmdlet creates a two-way mirrored storage space on physical disks that you specify.

Parameters

-Disk<ICollection<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.


Aliases

none

Required?

true

Position?

1

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

-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.

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.

  • Microsoft.WindowsServerSolutions.Storage.Drive

Examples

Example 1: Create a storage space

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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft