Changing a drive letter is safest when the target is a secondary data volume, removable drive, or newly created partition that does not contain Windows or installed applications. In Windows 11 and Windows 10, use Disk Management for an interactive change or the PowerShell Set-Partition cmdlet for a precise, repeatable change. The new letter normally takes effect immediately; a Windows restart is not usually required.

Prerequisites and compatibility​

This procedure applies to:
Quick walkthrough
42ecee6193d7.webp

  • Windows 11
  • Windows 10, including installations covered by applicable ESU or LTSC servicing
  • Basic internal data partitions and most USB storage devices
  • NTFS, ReFS, FAT32, and exFAT data volumes that Windows can mount
You need:
  • An account in the local Administrators or Backup Operators group
  • The current drive letter and the desired replacement letter
  • A backup of important files
  • The BitLocker recovery key if the volume is encrypted
  • All files, applications, backup jobs, virtual machines, and command prompts using the drive closed
Record the current assignment before proceeding. For example:
  • Volume label: Archive
  • Current letter: E:
  • Desired letter: R:
Warning: Do not change the letter of the Windows volume, normally C:, or any volume containing installed applications unless you have a tested recovery plan. Programs, services, shortcuts, scheduled tasks, backup software, libraries, and scripts may continue looking for the old path.
Do not assign letters to or otherwise modify EFI System, Recovery, System Reserved, or manufacturer diagnostic partitions. These partitions can contain files required for startup and recovery, even if Disk Management appears to show them as empty.
If the volume contains ordinary documents but is referenced by applications or scripts, identify those references first. Changing E: to R:, for example, changes a file path from E:\Projects to R:\Projects; Windows does not automatically rewrite every stored path.

Change the drive letter with Disk Management​

Disk Management showing disks, partitions, and volumes with their drive letters.

Disk Management provides the safest method for a one-time change because it displays the disk number, partition layout, volume label, capacity, file system, and current drive letter together.

1. Open Disk Management​

The quickest path is the same in Windows 10 and Windows 11:
  • Right-click Start, or press Windows key + X.
  • Select Disk Management.
  • Approve the User Account Control prompt if one appears.
Alternate path for both versions:
  • Press Windows key + R.
  • Enter:
    diskmgmt.msc
  • Press Enter.
You can also open Computer Management and go to:
Computer Management > Storage > Disk Management
Expected result: Disk Management displays physical disks in the lower pane and their volumes in both the upper and lower panes.

2. Identify the correct volume​

Use at least two identifying details before making a change:
  • Current drive letter
  • Volume label
  • Total capacity
  • File system
  • Physical disk number
  • Partition position
For example, confirm that Archive (E:), formatted as NTFS with a capacity of 2 TB, is the intended volume.
Do not rely on the drive letter alone if multiple removable devices have recently been connected.

3. Confirm that the desired letter is available​

Review the letters shown in Disk Management and File Explorer. Avoid:
  • A: and B: when compatibility with older software matters
  • C:, which is normally the Windows volume
  • Letters already assigned to another partition, optical drive, card reader, virtual disk, or mapped network drive
  • Letters expected by company logon scripts or backup policies
For external and archival drives, a letter later in the alphabet, such as R:, S:, or T:, is less likely to conflict with automatically assigned removable drives.

4. Open the drive-letter controls​

  • In Disk Management, right-click the target volume.
  • Select Change Drive Letter and Paths.
Make sure you right-click the large data volume, not a small EFI, Recovery, or System Reserved partition.
Expected result: The Change Drive Letter and Paths for [volume] dialog displays the current letter.

5. Select the new letter​

Warning: Close applications, File Explorer windows, terminals, backup jobs, synchronization tools, media servers, and virtual machines that are using the volume. Selecting Yes in the next step changes the path immediately and can interrupt software that still references the old letter.
  • Select the current drive-letter entry.
  • Select Change.
  • Select Assign the following drive letter.
  • Open the drop-down list.
  • Select the desired unused letter.
  • Select OK.
  • When Windows warns that some programs relying on drive letters might not run correctly, select Yes only after confirming that the correct volume and letter are selected.
Expected result: Disk Management refreshes and shows the volume under its new letter. The volume’s files, label, format, and partition size are not changed.
If the volume currently has no letter, select Add instead of Change, choose Assign the following drive letter, and then select the desired letter.

6. Reopen affected applications​

A restart is not normally required. However:
  • Reopen File Explorer windows.
  • Restart applications that had the old path open.
  • Reconnect or reconfigure backup jobs that reference the old letter.
  • Update shortcuts, scheduled tasks, scripts, media libraries, and application settings.
  • Restart the PC if a service or application continues caching the previous path and cannot be restarted independently.

Verify the change​

File Explorer This PC view showing a data drive with its assigned drive letter.

Complete all of the following checks before considering the change successful.
  • Open File Explorer.
  • Select This PC.
  • Confirm that the volume label appears with the new letter.
  • Open the drive and test several folders and files.
  • Create and delete a temporary text file if the volume should be writable.
  • Return to Disk Management and confirm that the correct volume shows the new letter.
  • Test applications, scripts, backup tasks, and shortcuts that use the volume.
You can also verify the result in PowerShell:
Get-Volume -DriveLetter R
Replace R with the new letter. Expected output includes the drive letter, file-system label, file system, health status, free space, and total size.
For partition-level verification, run:
Get-Partition -DriveLetter R
Expected output identifies the disk number, partition number, new drive letter, offset, size, and partition type.

Alternate method: Change the letter with PowerShell​

PowerShell is useful for remote administration, scripted deployments, repeated changes, or situations where you want to verify the exact partition before modifying it.

1. Open an elevated PowerShell session​

Windows 11:
  • Right-click Start.
  • Select Terminal (Admin).
  • Select Yes at the User Account Control prompt.
  • Open a Windows PowerShell tab if Terminal starts with another shell.
Windows 10:
  • Right-click Start.
  • Select Windows PowerShell (Admin).
  • Select Yes at the User Account Control prompt.
If Windows Terminal is installed on Windows 10, Terminal (Admin) can also be used.

2. List the available volumes and partitions​

Run:
Code:
Get-Volume |
    Sort-Object DriveLetter |
    Format-Table DriveLetter, FileSystemLabel, FileSystem, HealthStatus, SizeRemaining, Size
Then inspect the specific partition by its current letter:
Get-Partition -DriveLetter E
Replace E with the current letter.
Confirm the volume label, disk number, partition number, and size before continuing. If the output does not describe the intended volume, stop and identify the correct letter.

3. Check whether the destination letter is already used​

Run:
Get-Volume -DriveLetter R -ErrorAction SilentlyContinue
Replace R with the desired letter.
  • No output generally means that no local volume currently uses that letter.
  • If a volume is returned, choose another letter or safely move that volume first.
Also check mapped file-system drives:
Get-PSDrive -PSProvider FileSystem
A network mapping or other provider may be using a letter that is not obvious in Disk Management.

4. Preview the change​

Microsoft’s Set-Partition cmdlet supports -WhatIf, which displays the proposed operation without performing it:
Set-Partition -DriveLetter E -NewDriveLetter R -WhatIf
Review the output carefully.
Warning: The next command changes the assignment immediately. Do not run it against C:, a Windows or application volume, or a partition whose identity has not been confirmed.

5. Apply the new letter​

Run:
Set-Partition -DriveLetter E -NewDriveLetter R -Confirm
Replace:
  • E with the current letter
  • R with the desired letter
Confirm the operation when prompted.
Expected result: The command completes without returning an object, and the volume becomes available under the new letter.
If the partition has no current drive letter, identify it by disk and partition number:
Get-Partition -DiskNumber 2
Then assign a letter:
Set-Partition -DiskNumber 2 -PartitionNumber 1 -NewDriveLetter R -Confirm
Use the actual disk and partition numbers returned on your PC.

6. Verify in PowerShell​

Run:
Code:
Get-Volume -DriveLetter R
Get-Partition -DriveLetter R
Test-Path R:\
A successful Test-Path result should be:
True
Open File Explorer and confirm that the label, capacity, folders, and files match the intended volume.

Troubleshooting​

“Change Drive Letter and Paths” is missing or grayed out​

Common causes include:
  • The selected space is Unallocated, not a formatted volume.
  • The partition is an EFI System or Recovery partition.
  • The account lacks administrative permissions.
  • The drive is offline, inaccessible, or not initialized.
  • The volume is locked by BitLocker.
  • You right-clicked the physical disk label, such as Disk 1, instead of the partition block.
Confirm that the target is an initialized, accessible data volume. If it is a new unallocated disk, it must be initialized, partitioned, and formatted before it can receive a normal drive letter.
Do not try to expose an EFI or Recovery partition merely to inspect its files.

The desired letter is not listed or PowerShell says it is in use​

The letter may belong to:
  • Another local volume
  • A DVD or Blu-ray drive
  • A memory-card reader
  • A mounted virtual hard disk
  • A mapped network drive
  • A disconnected but persistent network mapping
Check File Explorer and run:
Get-PSDrive -PSProvider FileSystem
For traditional network mappings, also run:
net use
Disconnect an obsolete mapping or select another unused letter. Do not remove a business network mapping unless you know how it is recreated.

PowerShell returns “Access denied”​

Close the current terminal and reopen it using Run as administrator. Confirm that the window title indicates an elevated session.
If access is still denied, check whether the volume:
  • Contains Windows or active application files
  • Is locked or offline
  • Is controlled by storage-management software
  • Is part of a failover cluster or enterprise storage environment
  • Has an active page file or other system dependency
Do not force the change by modifying the registry. Resolve the dependency or use Disk Management to confirm whether Windows permits the operation.

Set-Partition does not work with the volume​

PowerShell Storage cmdlets have limited support for legacy dynamic volumes. If Get-Volume displays the volume but Set-Partition cannot modify it, use Disk Management instead.
If the volume belongs to Storage Spaces, a failover cluster, SAN software, or third-party RAID management, follow that platform’s storage procedures rather than treating it as an ordinary local partition.

File Explorer still shows the old letter​

  • Press F5 in File Explorer.
  • Close all File Explorer windows and reopen them.
  • Open Task Manager with Ctrl + Shift + Esc.
  • Select Windows Explorer.
  • Select Restart task or Restart.
If an application still shows the old path, restart that application. Restart Windows only if the old assignment remains cached after these steps.

Applications, shortcuts, or backup jobs stopped working​

Change their configured paths from the old letter to the new one. Check:
  • Desktop and Start menu shortcuts
  • Scheduled tasks
  • Backup destinations
  • File History or synchronization jobs
  • Media-library folders
  • Game libraries
  • Virtual-machine disk paths
  • Development tools and environment variables
  • Scripts and batch files
  • Windows services configured with absolute paths
If many dependencies are broken, rollback is usually safer than editing them individually.

Roll back to the previous letter​

Before rollback, make sure the old letter has not been assigned to another drive.
Using Disk Management:
  • Right-click Start and select Disk Management.
  • Right-click the affected volume.
  • Select Change Drive Letter and Paths.
  • Select the current letter.
  • Select Change.
  • Reassign the original letter.
  • Select OK, then Yes.
Using PowerShell, if the drive was changed from E: to R:, run:
Set-Partition -DriveLetter R -NewDriveLetter E -Confirm
Verify the rollback:
Code:
Get-Volume -DriveLetter E
Get-Partition -DriveLetter E
Test-Path E:\
If an initialized, accessible data volume already has a normal drive letter but neither Disk Management nor an elevated PowerShell session can change it, stop making storage changes and escalate the issue to Microsoft Support, the PC manufacturer, or the administrator responsible for the storage platform.
 

Last edited: