Initialize and Format a New Disk with PowerShell
Turn a brand-new disk into a usable drive: initialize, partition to full size and format NTFS in three commands.
01Command
$ Initialize-Disk -Number 1
New-Partition -DiskNumber 1 -UseMaximumSize -AssignDriveLetter
Format-Volume -DriveLetter D -FileSystem NTFS02What it does
A factory-new disk shows up nowhere in Explorer until it is initialized, partitioned and formatted. PowerShell does all three: Initialize-Disk writes a GPT partition table, New-Partition with -UseMaximumSize -AssignDriveLetter carves one full-size partition and mounts it at the next free letter, and Format-Volume applies NTFS. The same steps revive a disk that Windows refuses to mount, not just brand-new hardware.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- New-Partition cmdlet | Microsoft LearnEvidence: New-Partition creates a partition; -UseMaximumSize and -AssignDriveLetter size it to the whole disk and mount it.
- Initialize-Disk cmdlet | Microsoft LearnEvidence: Initialize-Disk readies a disk for use; -PartitionStyle (GPT or MBR) sets the partition table and -Number selects the disk.
- Format-Volume cmdlet | Microsoft LearnEvidence: Format-Volume formats a volume; -FileSystem NTFS and -DriveLetter select the target.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
One PowerShell line showing drive letters, labels, filesystems and free space for every volume.
Read-only PowerShell view of each disk's model, bus type, health and partition style.
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.