Last active
April 24, 2018 22:19
-
-
Save mhatreabhay/b08d17f3ba94045e4639d5c06632ebf8 to your computer and use it in GitHub Desktop.
setup windows managed disk [Drive letter Y]
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
Get-Disk | ` | |
Where partitionstyle -eq 'raw' | ` | |
Initialize-Disk -PartitionStyle MBR -PassThru | ` | |
New-Partition -UseMaximumSize -DriveLetter Y | ` | |
Format-Volume -FileSystem NTFS -NewFileSystemLabel "datadisk" -Confirm:$false | |
Exit 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment