How to Change a Drive Letter in Windows 10 and 11

·
6 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Windows doesn’t always assign a drive letter when you connect an external hard drive or USB flash drive, and without one, the drive won’t appear in File Explorer. Disk Management handles this in a few clicks, but DiskPart and PowerShell work too if you prefer the command line.

Change a Drive Letter via Disk Management

Disk Management is the built-in GUI for this task. Open it using any of these paths:

  • Press Windows + X and select Disk Management.
  • Press Windows + R, type diskmgmt.msc, and press Enter.
  • Open Start, search for Create and format hard disk partitions, and open the result.

You’ll need administrator rights, on a shared or work PC, that sometimes means a UAC prompt before anything loads.

  1. Locate the drive in the volume list at the top or the disk map at the bottom. External drives show as Removable under the Type column, which makes them easy to spot. Check the Size column too if you have multiple connected.
Disk Management in Windows 11 showing the volume list at top and disk map at bottom, with a removable external drive visible and labeled
  1. Right-click the volume and select Change Drive Letter and Paths….
Disk Management right-click context menu on a volume with "Change Drive Letter and Paths..." highlighted
  1. In the dialog that opens:

– If the drive already has a letter, click Change. – If it has no letter, click Add.

Change Drive Letter and Paths dialog showing the existing drive letter and the Add, Change, and Remove buttons
  1. Select Assign the following drive letter and pick an available letter from the drop-down.
Change Drive Letter dialog with the letter drop-down open, showing available drive letter options
  1. Click OK, then Yes on the confirmation prompt.

The drive should appear in File Explorer immediately under the new letter. Disk Management rarely fails for a straightforward reassignment.

Partitions to leave alone: Don’t assign or alter letters for the EFI/System Reserved partition, the Recovery partition, or your Windows OS drive (almost always C:). Changing those can stop Windows from booting.

Change a Drive Letter via DiskPart

DiskPart is the command-line approach. It’s worth knowing when Disk Management stalls or you want to script a change.

  1. Open Start, type cmd, right-click Command Prompt, and select Run as administrator.
Windows 11 Start menu search results for "cmd" with "Run as administrator" highlighted in the right-click context menu
  1. Start DiskPart and list your volumes:
diskpart
list volume
  1. Review the output. The Ltr column shows current letters; the Type column marks external drives as Removable. Note the Volume ### for the drive you want to change.
Command Prompt showing DiskPart running with the output of "list volume," including columns for Volume number, Ltr, Label, Fs, Type, Size, Status, and Info
  1. Select your volume, replace 2 with your actual volume number:
select volume 2
  1. Assign the new letter, replace D with your chosen letter:
assign letter=D

DiskPart confirms with “DiskPart successfully assigned the drive letter or mount point.” The change takes effect immediately, no reboot needed.

The same caution applies here: skip the System and EFI volumes. Volume 0 in most setups is the system partition, leave it alone.

Change a Drive Letter via PowerShell

PowerShell is the newer option, and it’s cleaner when you’re managing several drives or building a script. Open it as administrator: Start > search powershell > right-click > Run as administrator.

  1. List current volumes to identify the one you want:
Get-Volume
  1. Change the letter (this example reassigns drive E to drive D):
Set-Partition -DriveLetter E -NewDriveLetter D

No output means it worked. Run Get-Volume again to confirm. If the drive has no letter yet, run Get-Partition first to find its disk number and partition number, then call Set-Partition with -DiskNumber and -PartitionNumber instead of -DriveLetter.

Assign a Letter to a Mapped Network Drive

Network drives work differently. You set their letter when you map them, not through Disk Management.

Via File Explorer

  1. Open File Explorer.
  2. Right-click This PC and select Map network drive….
  3. Choose a drive letter from the Drive drop-down.
  4. Enter the network path (for example, \\server\share), check Reconnect at sign-in if you want it persistent, and click Finish.

To change an existing mapped drive’s letter, disconnect it first (right-click the drive under This PC > Disconnect), then remap it with the letter you want.

Use a letter near the end of the alphabet: P:, R:, or Z: are good picks. That keeps network mappings from colliding with USB flash drives or external SSDs, which tend to land in the D:–G: range automatically.

Via Command Prompt

Map a drive:

net use Z: \\server\share /persistent:yes

Remove a mapping:

net use Z: /delete

Troubleshooting: Change Drive Letter Is Greyed Out

If Change Drive Letter and Paths… is greyed out in the right-click menu, one of a few things is going on.

Disk Management showing a volume right-clicked with "Change Drive Letter and Paths..." greyed out and unclickable in the context menu

The volume isn’t formatted in FAT32 or NTFS. Drives formatted for macOS (HFS+ or APFS) or Linux (ext4) appear in Disk Management but block letter changes. You’d need to reformat, which erases all data, to a Windows-compatible file system before the option activates. If you’re working with an external SSD from a Mac environment, this is the most common reason.

The disk is set to read-only. Open an administrator Command Prompt and run:

diskpart
list disk
select disk x
attributes disk clear readonly

Replace x with your disk number from the list disk output (not the volume number from list volume). The attributes disk command clears the flag on the disk that has focus, so you select the disk here, not the volume.

The partition is a system or recovery partition. Windows intentionally blocks letter changes on EFI, System Reserved, and Recovery partitions. Don’t try to force it.

The volume is unallocated. If Disk Management shows unallocated space rather than a formatted volume, right-click and choose New Simple Volume. That creates and formats the partition, at which point you can assign a letter. A reliable cable or USB dock matters here; an unallocated external drive can also mean the drive lost power mid-connection and didn’t mount cleanly.

Apps or shortcuts broke after changing a letter. Backup software, pinned File Explorer locations, installed games, and sync tools all store their paths by drive letter. After a reassignment, you’ll need to update those references manually in each application’s settings.

Conclusion

Disk Management is the right starting point for almost everyone. It’s a solid choice for any one-off letter change and covers the common case of a drive that appears in Disk Management but not in File Explorer. DiskPart is worth keeping in your back pocket for the occasional stubborn situation where the GUI change doesn’t stick. If the option stays greyed out after ruling out read-only and file system issues, reformatting the volume as NTFS clears it in most cases. A drive that keeps dropping its assigned letter on every reboot is worth watching, as that behavior can point to a power-delivery problem with the drive itself rather than anything in Windows.