Created
December 11, 2017 21:47
-
-
Save mczerniawski/b48f6aebbf547ce7f591783e3d06c94f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$driveLetter = (get-disk | Where-Object {$_.PartitionStyle -eq 'RAW'} | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -AssignDriveLetter -UseMaximumSize ).DriveLetter | |
Format-Volume -NewFileSystemLabel 'DATA' -FileSystem 'ReFS' -DriveLetter $driveLetter -Force -confirm:$false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment