When you plug a brand new external hard drive or a massive USB flash drive into your Windows 11 PC, it often arrives entirely unformatted, meaning you cannot drag and drop files onto it yet. While you can use the graphical Disk Management tool to format the drive, system administrators configuring multiple drives or deploying automated server scripts require a command-line solution.
In Windows 11, the modern, robust method for wiping and formatting drives is via PowerShell using the Format-Volume cmdlet. This tool is significantly faster and more reliable than the legacy DOS format command.
In this guide, you will learn how to use PowerShell to quickly wipe and format any storage volume.
Step 1: Open PowerShell as Administrator
Because formatting a drive destroys all data on it, Windows requires you to have elevated privileges to execute the command.
- Click the Start button.
- Type PowerShell.
- Right-click on Windows PowerShell and select Run as administrator.
Step 2: Identify the Drive Letter
Before you run a format command, you must be absolutely certain you are targeting the correct drive letter. Formatting your C: drive by mistake will destroy your operating system.
To safely list all connected drives, type:
Get-Volume
Press Return. PowerShell will output a table showing the DriveLetter, FileSystem Label, and Size. Identify the letter of the external drive you wish to format (for this example, we will assume it is drive E).
Step 3: Format the Volume
The Format-Volume command requires three primary arguments to work effectively:
Format-Volume -DriveLetter E -FileSystem NTFS -NewFileSystemLabel "BackupDrive"
- -DriveLetter: The specific letter you identified in Step 2 (do not include a colon).
- -FileSystem: The architectural structure of the drive.
NTFSis the standard for Windows hard drives. If you are formatting a USB stick that needs to be read by both Windows and Mac computers, useexFATinstead. - -NewFileSystemLabel: The human-readable name you want to give the drive (e.g., “BackupDrive” or “Photos”). This must be enclosed in quotation marks.
Press Return. PowerShell will immediately execute a Quick Format. Within seconds, a green progress bar at the top of the terminal will complete, and the drive will be ready for use.
Step 4: Performing a Full Format
By default, Format-Volume performs a “Quick Format”. A Quick Format simply deletes the index file, making the drive appear empty to Windows, but the underlying data is still physically present on the disk (and can be recovered by forensic software).
If you are selling or giving away the hard drive and want to definitively wipe the sectors clean, you must force a Full Format by adding the -Full switch.
Format-Volume -DriveLetter E -FileSystem NTFS -NewFileSystemLabel "WipedDrive" -Full
Warning: A full format actually scans and rewrites every single sector on the drive. For a massive 4TB external hard drive, this process can take several hours to complete.