Sometimes one just has to add new storage to a Windows installation. And in some cases like adding physical storage there are a few simple steps like below.
Values like disk number you can get from the disk handling GUI in Windows (right-click Windows).
1) Initialize disk
Initialize-Disk -Number 2 -PartitionStyle GPT
2) Create partition
New-Partition -DiskNumber 2 -UseMaximumSize -DriveLetter S
3) Format volume
Format-Volume -DriveLetter S -FileSystem NTFS -NewFileSystemLabel Spare -Full:$false -UseLargeFRS
If you are adding more than 8 TB or know that the storage mostly is for a few large disks the add the CmdLet parameter -AllocationUnitSize 64KB
. Add the CmdLet parameter -UseLargeFRS
to use large File Record Segment (FRS) when files are created, altered and deleted often.
If the storage unit is reused from another Windows installation, then the unit can be wiped like this
Clear-Disk -Number 2 -RemoveData
If the disk holds one or more OEM recovery partition the add the CmdLet parameter -RemoveOEM
.