Skip to content
Windows 🟑 Intermediate

How to Change Drive Letters in Windows 11

Richard
Written by
Richard
Updated 11 min read
How to Change Drive Letters in Windows 11
How to Change Drive Letters in Windows 11
Before you start
  • 4 ways to do it
  • Needs administrator rights

Drive letters are the single letters like C:, D: or E: that Windows assigns to your storage drives. They decide how hard drives, SSDs and USB sticks show up in File Explorer. Changing a letter keeps your storage organized and stops shortcuts from breaking when you plug in extra drives.

The built-in Disk Management tool changes any drive letter in a few clicks, so you don’t need extra software. You need administrator privileges, and on a standard account Windows asks for an admin password. Nothing here is permanent: to undo a change, repeat the same steps and pick the old letter again, as long as nothing else has taken it in the meantime.

⚑ Quick Answer

Open Disk Management by pressing Win+X and selecting Disk Management. Right-click the volume, choose Change Drive Letter and Paths, click Change, then pick a new letter from the drop-down and click OK. The change applies right away, with no restart needed, and you need administrator rights. Close any open File Explorer windows showing the drive first.

Advertisement

How to Change a Drive Letter in Windows 11

This guide covers four methods: Disk Management, the Settings app, Command Prompt with a command-line disk tool, and PowerShell. A fifth, Registry Editor, comes at the end as a last resort. The four main methods do the same job and work on the Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2). Pick whichever you’re most comfortable with.

Whichever method you use, close any program that is using the drive first, including File Explorer windows showing it. Windows can refuse the change if files on the drive are open.

Advertisement

Method 1Using Disk Management

Disk Management is the most common way to change a drive letter. It is the Windows tool for managing all your storage devices: internal drives, external drives and USB sticks. It shows every disk and volume, including ones that don’t have a letter yet.

Open Disk Management

  1. Press Win+X. The Power User menu opens above the Start button.
  2. Click Disk Management in the list. The Disk Management window opens, with a list of volumes at the top and a graphical view of your disks below it.

If you don’t see it in the menu, type “Disk Management” in the Windows search bar and select Create and format hard disk partitions. That is the same tool under a different name.

Find Your Drive

Before you change anything, find the exact drive you want to work with. Look at the volume list at the top of the window, or the disk map at the bottom. Each volume shows its letter, name, file system and size.

πŸ’‘TipMake sure you select the correct drive. Two drives can have similar sizes, so the name you gave each drive is often the safest way to tell them apart.
Advertisement

Change the Drive Letter

If you prefer a command, open PowerShell as an administrator and use the Set-Partition cmdlet (a built-in PowerShell command). Type Get-Partition -DriveLetter | Set-Partition -NewDriveLetter and replace the blank placeholders with your actual drive letters. Put the current letter after -DriveLetter and the new one after -NewDriveLetter. The PowerShell section further down walks through this in more detail.

Change drive letter and paths window in Windows 11 Disk Management.
Change drive letter and paths window in Windows 11 Disk Management.

Assign a New Letter

  1. Right-click the Start button and choose Disk Management.
  2. Right-click the volume you want to change, either in the list at the top or in the graphical view at the bottom.
  3. Click Change Drive Letter and Paths. A small window opens showing the drive’s current letter.
  4. Click Change. The Drive Letter Assignment window opens. (Add and Remove sit next to it. Use Change to swap the letter.)
  5. Make sure Assign the following drive letter is selected.

The Drive Letter Assignment window shows a drop-down list. Click the current drive letter to open the list of available letters, then select the new letter for this drive. The list only offers letters that aren’t in use, so you can’t pick a clashing one by accident.

If Change Drive Letter and Paths is greyed out, the volume is probably the system or boot volume (usually C:). Windows doesn’t let you change those from here. It can also be greyed out for a volume with no recognized file system.

Advertisement

Confirm Your Choice

  1. Click OK after choosing the new letter. Windows shows a warning that some programs that rely on drive letters might not run correctly.
  2. If you’re sure, click Yes to apply the new letter. The volume list updates right away.

Be careful with this prompt. Changing the letter of your main C drive, or of any partition with installed apps, can stop those programs from working until you reinstall them or repair their paths. Programs, shortcuts and scheduled tasks that point to the old letter will not find their files.

Assign the following drive letter dialog box in Windows 11.
Assign the following drive letter dialog box in Windows 11.

Changing the drive letter of your main Windows installation, typically C:, or of any drive holding installed programs can cause problems. Programs may fail to start, and shortcuts and backup jobs may stop working. This applies to Windows 11 and earlier versions of Windows.

The safe cases are data drives, external drives and USB sticks that don’t hold installed software. If a drive does hold programs, move it to a new letter only if you’re prepared to fix the programs afterwards. Otherwise, leave it alone.

Advertisement

Done!

That’s it! The drive letter should now be updated. You don’t need to restart or sign out. Close Disk Management and open File Explorer to check that the drive appears under the new letter.

If you still see the old letter, press F5 in File Explorer to refresh. If any shortcuts or apps stop working, change the letter back using the same steps.

Method 2Using Windows 11 Settings

Windows 11 also lets you change drive letters from the Settings app. It does the same job as Disk Management, with a cleaner layout. The storage pages vary by Windows 11 version, and older builds have fewer options. If a page below doesn’t match what you see, use Disk Management instead.

Open Settings

  1. Press Win+I to open Settings. Alternatively, click the Start button and choose the gear icon.
  2. Wait for the Settings window to open, with the list of categories on the left.
Advertisement
  1. In the Settings window, click System in the left menu.
  2. Click Storage on the right side. You’ll see a bar showing how much space is used, followed by a list of storage categories.

Access Advanced Storage Settings

You reach the drive settings by this path: System Storage Advanced storage settings Disks & volumes.

  1. Scroll down on the Storage page and click Advanced storage settings to expand it.
  2. Click Disks & volumes. You’ll see a list of every disk connected to the PC.
πŸ“NoteDepending on your Windows 11 version, User Account Control (UAC) might ask you to confirm. Click Yes if you see this prompt. On a standard account, you’ll need to enter an administrator password.
Advertisement
windows 11 storage advanced storage settings storage spaces
windows 11 storage advanced storage settings storage spaces

Select Your Drive

The list shows all your disks and their volumes (sections). Disks are the physical drives. Volumes are the partitions on them, and these carry the letters. If a disk’s volumes aren’t visible, click the disk to expand it first. Then click the name of the volume you want to change, and check its name and size to be sure it’s the right one.

Change the Drive Letter

  1. Click Properties on the volume’s page if the details aren’t already showing.
  2. Find the Change drive letter button on the properties page and click it to start assigning a new letter to the selected drive.

If the button is missing or greyed out, the volume is probably your system drive or another volume Windows is using. Use a different drive, or leave that one as it is.

Changing drive letters via Windows 11 Settings menu interface.
Changing drive letters via Windows 11 Settings menu interface.

Assign a New Letter

As in Disk Management, a small window pops up. Click the current drive letter in the list. A drop-down opens with the letters that are free. Choose the new letter from those options.

Advertisement

Confirm and Finish

  1. Click OK after choosing the new letter. A warning appears about possible issues with programs that rely on the old letter.
  2. If you are sure, click Yes to confirm.
  3. Close the Settings window.

You should now have the new drive letter in place, with no restart or sign-out needed. Open File Explorer to confirm. To undo the change, repeat the same steps and pick the original letter.

Method 3Using the Command Prompt (diskpart)

Command Prompt manages disks and partitions directly, using a disk tool that runs inside the terminal window. It’s useful when you prefer typing over clicking, or when the graphical tools don’t behave. You can run the same commands in Windows Terminal, which hosts both Command Prompt and PowerShell.

Open Windows Terminal as Administrator

  1. Press Win+X.
  2. Choose Windows Terminal (Admin). On some newer builds the entry is called Terminal (Admin).
  3. Click Yes if User Account Control asks for permission.

Administrator rights are required to make changes with diskpart. Without them, the commands fail with an access error.

Start diskpart

  1. In the Windows Terminal window, type diskpart and press Enter.
  2. Look at the prompt. It changes to show you are now in the diskpart tool.

List Volumes

  1. Type “list volume” and press Enter. This command shows all drives and their partitions.
  2. Read the list. It includes the volume number, the current drive letter, the label and the size of each volume.

Tip: Note the “Volume ###” number for the drive you want to change. For example, your D: drive might be Volume 2. Use the label and size columns to confirm you have the right one. Volume numbers can change after you plug in or remove drives, so don’t rely on an old list.

Select the Volume

  1. Tell diskpart which volume to work with. Type select volume <volume number>, and replace <volume number> with the number you noted earlier.
  2. For example, if your drive was Volume 2, type select volume 2 and press Enter.
  3. Check the response. The tool should confirm that the volume you chose is now the selected volume.

Assign the New Letter

With your volume selected, Diskpart can assign the new letter.

  1. Type “assign letter=” followed by your chosen letter and press Enter.
  2. Look for a message saying the drive letter was assigned successfully.

If the letter you chose is already in use, diskpart gives an error. In that case, list the volumes again to see which letters are taken, pick a different available letter, and run the assign command again.

Exit diskpart

  1. Once the letter is assigned, type exit and press Enter to leave the diskpart tool.
  2. Close Windows Terminal.

That’s it. Open File Explorer to confirm the drive shows up with its new letter. No restart or sign-out is needed.

Method 4Using PowerShell (Set-Partition)

PowerShell has a built-in command that changes a partition’s drive letter in one line. It’s a more advanced method, but after a couple of uses it’s the quickest of the four.

Open Windows Terminal (Admin)

  1. Press Win+X and choose Windows Terminal (Admin).
  2. Click Yes if User Account Control asks for permission.
  3. Check which shell is running. If the terminal opened Command Prompt, use the drop-down arrow in the tab bar and select Windows PowerShell.

Administrator rights are required, as with diskpart. Without them the commands fail with an access error.

Identify the Current Drive Letter

  1. Find the current letter first. Type Get-Partition and press Enter.
  2. Look through the list for the drive you want to change and note its current “DriveLetter”. Use the size column to make sure you have the right partition.

Change the Drive Letter

Now use the Set-Partition command. The format is like this:

⬛PowerShell
Get-Partition -DriveLetter <current drive letter> | Set-Partition -NewDriveLetter <new drive letter>

Replace <current drive letter> with the letter the drive currently has (like D) and <new drive letter> with the letter you want to assign (like F). Type only the letter itself, without a colon.

For example, to change drive D to drive F, type the following:

⬛PowerShell
Get-Partition -DriveLetter D | Set-Partition -NewDriveLetter F
  1. Press Enter after typing the command.
  2. Wait for the prompt to come back. If PowerShell prints nothing and returns to the prompt, the command worked.

Tip: If the new drive letter is already in use, PowerShell shows an error. Try again with a different, available letter.

Close Windows Terminal

That’s it. If the command ran without errors, close Windows Terminal and open File Explorer to check that the drive has the new letter. To undo the change, run the same command with the two letters swapped.

Registry Editor is a fifth, last-resort method. It changes the drive letter by editing the setting directly in the registry (the database where Windows stores its configuration), so a wrong edit can cause problems. Use it only if the other four methods fail.

  1. Open Registry Editor, for example by searching for it in the Start menu.
  2. If another drive currently holds the letter you want, change that drive’s letter first. Windows won’t give one letter to two drives.
  3. Edit the entry for your drive so it uses the new letter.
  4. Close Registry Editor when you finish.

You should now have the drive under its new letter. Open File Explorer to confirm.

Summary

If a change didn’t take effect, check that the drive isn’t your system volume and that no program is still using it. To go back, assign the old letter again with the same method, provided nothing else has taken it. Next, if a program stops finding its files after a change, repair its paths or reinstall it, since programs that point to the old letter won’t follow the drive.

Have a question about this guide?

Answered by AI from this guide. Good questions may be added to this page β€” please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

No comments yet β€” be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked * How we handle comments