Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

New-WssStorageSpace

Windows Server 2012 R2 and Windows 8.1

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 (http://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.

  • 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

Community Additions

ADD
Show:
© 2016 Microsoft