Scenario: You added new Hard Drives into your Windows Servers and you wish to quickly partition these disks to be used as mount points. You can use the commands below to script it.
Commands: We will be using DiskPart in order to accomplish this.
1. Open DiskPart:
From a command prompt or powershell, type in diskpart and press enter. A new DiskPart window should open up.
2. Determine the Disk Numbers of the newly installed disks:
3. Use the Disk Number and use the commands below. We are going to use Disk Number 3 as the newly installed disk. You can copy all the commands below at once and paste the commands into the DiskPart command window.
Select Disk 3
Create Partition Primary
Select partition 1
format quick fs=ntfs Label=”MountPoint1″