Initialize-WssDisk

Initialize-WssDisk

Initializes a disk for storage.

Syntax

Parameter Set: Default
Initialize-WssDisk [-Disk] <Disk> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Initialize-WssDisk cmdlet initializes a disk that you can use for the storage system. The cmdlet formats and creates volumes for on the disk that you specify.

Parameters

-Disk<Disk>

Specifies a Disk object. To obtain a Disk object, use the Get-WssDisk cmdlet.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

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

  • Disk

Examples

Example 1: Initialize a disk for Windows Server 2012 Essentials storage

The first command gets the Disk object that has the ID 26a21bda-a627-11d7-9931-806e6f6e6963, and stores it in the $Disks variable.

The second command initializes the disk stored in the $Disks variable.

PS C:\> $Disks = Get-WssDisk -ID "26a21bda-a627-11d7-9931-806e6f6e6963"
PS C:\> Initialize-WssDisk -Disk $Disks

Get-WssDisk

Add-WssDisksToSpacesPool