Initialize-WssDisk
Initializes a disk for sbs_sbs8_2 storage.
Syntax
Initialize-WssDisk
[-Disk] <Disk>
[-Force]
[-Confirm]
[-WhatIf]
Description
The Initialize-WssDisk cmdlet initializes a disk that you can use for the sbs_sbs8_1 storage system. The cmdlet formats and creates volumes for sbs_sbs8_2 on the disk that you specify.
Examples
Example 1: Initialize a disk for Windows Server 2012 Essentials storage
PS C:\>$Disks = Get-WssDisk -ID "26a21bda-a627-11d7-9931-806e6f6e6963" PS C:\> Initialize-WssDisk -Disk $Disks
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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Disk
Specifies a Disk object. To obtain a Disk object, use the Get-WssDisk cmdlet.
Type: | Disk |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Disk