Initialize additional Disk on Server Core

…to get the number of the new disk enter:

 

Get-Disk

 

image

 

Get-Disk –Number 1 | Set-Disk –IsOffline $false

Get-Disk –Number 1 | Set-Disk –IsReadOnly $false

Get-Disk –Number 1 | Initialize-Disk –PartitionStyle GPT

Get-Disk –Number 1 | New-Volume –FriendlyName “Data” –FileSystem ReFS –DriveLetter “D”

 

…if you want to change the drive letter of other drives before:

 

diskpart

select volume x    (list volume –> to get volumes with driveletters)

assign letter=y

exit