Powershell – Set up disk volume from scratch using Initialize-Disk, Get-Disk, New-Partition and Format Volume

You may wish to script the process of setting up a disk volume. The example in this post covers initializing the disk using GPT, creating the partition using the maximum size on the disk, and then formatting the partition using NTFS. Advertisements