New disk

Initialize disk from power Shell console

If you are working with an Windows Server Core or with an Windows Nano Server you have to configure your disks with powershell.

To get a list of unconfigured disks, run this:

Get-Disk | ? { $_.OperationalStatus -eq "Offline" }

To initialize the disk with number one do the following:

Initialize-Disk -Number 1 -PartitionStyle GPT

at the end format the disk.

New-Partition -DiskNumber 1 -UseMaximumSize -AssignDriveLetter

Written by Arne Tiedemann on Wednesday May 4, 2016
Permalink - Tags: Powershell, Disk

- Accidental deletion of organizational unit's »