Skip to content
Follow
Windows 🟡 Intermediate

How to Change Drive Letters in Windows 11

Richard
Written by
Richard
Jul 28, 2021 Updated Oct 10, 2026 11 min read
How to Change Drive Letters in Windows 11
How to Change Drive Letters in Windows 11

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.

Advertisement

You can change any drive letter in a few clicks with the built-in Disk Management tool, so you don’t need extra software. You need administrator privileges. If you’re on a standard account, Windows will ask 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. All four do the same job and work on both Windows 11 Home and Pro. 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.

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 on your keyboard. 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.

Advertisement

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!

Check the size and any names you've given your drives to be sure. Two drives can have similar sizes, so the name is often the safest way to tell them apart.

Change the Drive Letter

Power users can also use a quick PowerShell command. Open PowerShell as an administrator and use the Set-Partition cmdlet. 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 are 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 you want for this drive. The list only offers letters that aren't already in use, so you can't pick a clashing one by accident.

Advertisement

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 that has no recognized file system.

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 advice 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. 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. It depends on your Windows 11 version: older builds have fewer options on the storage pages, so if a page below doesn't match what you see, use Disk Management instead.

Open Settings

  1. Press Windows key + I on your keyboard to open Settings. Alternatively, click the Start button and choose the gear icon for Settings.
  2. Wait for the Settings window to open, with the list of categories on the left.
  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

The Settings app is an alternative to Disk Management, and you reach the drive settings by this path: System Storage Advanced storage settings Disks & volumes

Advertisement
  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 you want to proceed.

Click Yes if you see this prompt. If you're on a standard account, you'll need to enter an administrator password.

windows 11 storage advanced storage settings storage spaces
windows 11 storage advanced storage settings storage spaces

Select Your Drive

You will see a list of all your disks and their volumes (sections). Disks are the physical drives. Volumes are the partitions on them, and these are what carry the letters. Find the volume for the drive you want to change and click its name. If a disk's volumes aren't visible, click the disk to expand it first. Check the name and size to be sure you've got 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 begin 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

Similar to Disk Management, a small window will pop up. Click the current drive letter in the list. A drop-down opens with the letters that are free. Choose the new letter you want to use 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.

Your drive letter should now be updated, with no restart 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 gives you a more powerful way to manage 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 Command Prompt and PowerShell.

Open Windows Terminal as Administrator

  1. Press Windows key + 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 will fail with an access error.

Start diskpart

  1. In the Windows Terminal window, type diskpart and press Enter.
  2. Look at the prompt. It will change, indicating 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: Carefully 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.

Advertisement

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, the Diskpart tool 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 being used, diskpart will give you 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 correctly, type exit and press Enter to leave the diskpart tool.
  2. Close Windows Terminal.

Open File Explorer to confirm the drive shows up with its new letter. No restart 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 once you've used it a couple of times it's the quickest of the four.

Open Windows Terminal (Admin)

  1. Press Windows key + 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, much like with diskpart. Without them the commands will fail with an access error.

Identify the Current Drive Letter

  1. Before making changes, you need to know the current letter. 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've got 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 will show an error. You will need to try again with a different, available letter.

Close Windows Terminal

If the command runs without any errors, you can close Windows Terminal. Open File Explorer to check that the drive now has the new letter. To undo the change, run the same command with the two letters swapped.

Summary

Windows 11 gives you several ways to change drive letters. You can use the graphical tools, Disk Management or the Settings app, or the command-line tools, Command Prompt and PowerShell. All of them need administrator rights and none needs a restart. Always avoid changing your main Windows drive letter, and be careful with any drive that holds installed programs.

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

7 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *