On Windows 10, when connecting a removable storage device or an internal hard drive, the system detects and assigns a drive letter automatically to make it usable. However, when reconnecting an external drive (such as a USB flash drive or SD or microSD cards), the system can end up assigning a different letter, which can be annoying.
If you want to see the same drive letter on a particular device, you can manually assign a permanent letter to any drive connected to your computer, and on Windows 10, you can do this in at least three different ways, using Disk Management, Command Prompt, or PowerShell.
Using this approach will prevent Windows 10 from assigning a new letter or trying to set a letter already in use, which can cause conflicts. Also, it helps to select a drive letter that makes more sense to you.
In this Windows 10 guide, we walk you through several methods to manually assign a permanent letter to a drive, as long as you're connecting the drive to the same device and the letter isn't already in use.
- How to assign a drive letter using Disk Management
- How to assign a drive letter using Command Prompt
- How to assign a drive letter using PowerShell
How to assign a drive letter using Disk Management
To manage drive letters with the Disk Management tool, use these steps:
- Open Start.
- Search for Create and format hard disk partitions and click the top result to open the Disk Management experience.
Right-click the drive and select the Change Drive Letter and Paths option.
Click the Change button.
- Select the Assign the following drive letter option.
Use the drop-down menu to assign a new drive letter.
Quick tip: To avoid the system trying to assign the same letter to another drive, it's a good idea to start adding letters in backward order. For instance, instead of using D, E or F, it better to start with Z, Y or X when assigning a new letter.
- Click the OK button.
- Click the OK button again.
Once you complete these steps, the drive will permanently retain the assigned letter, even after reconnecting it. However, if you connect the drive to another device, it may receive a different letter.
How to assign a drive letter using Command Prompt
While the easiest way to assign a new drive letter is to use Disk Management, you can also use DiskPart in Command Prompt to perform the same task.
To assign a drive letter using Command Prompt, use these steps:
- Open Start.
- Search for Command Prompt, right-click the result, and then select the Run as administrator option.
Type the following command to start DiskPart and press Enter:
Type the following command to list all the available volumes and press Enter:
Type the following command to select the volume (drive) to assign a new letter and press Enter:
select volume 3
In the command, make sure to change "3" to the number that represents the drive on your device.
Type the following command to assign a new drive letter, and press Enter:
The command assigns the letter "Z" to the drive assuming it's available. However, you need to make sure to change the letter for the one that you want to use.
After completing these steps, similar to Disk Management, every time you reconnect the storage to the same device, Windows 10 should assign the same letter automatically.
How to assign a drive letter using PowerShell
Alternatively, you can also use PowerShell to change a drive letter on Windows 10 using these steps:
- Open Start.
- Search for PowerShell, right-click the result, and then select the Run as administrator option.
Type the following command to list the available drives and press Enter:
Type the following command to assign a permanent letter to the drive and press Enter:
Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter Z
In the command, make sure to change "1" to the number that represents the drive that you want to modify, and change "Z" for the new letter that you want to use.
Once you complete the steps, the drive will be accessible through File Explorer using the letter that you assigned, and Windows 10 won't try to change it.
Updated March 7, 2019: We revised this guide to make sure it's current with the latest version of Windows 10.
More Windows 10 resources
For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:
- Windows 10 on Windows Central – All you need to know
- Windows 10 help, tips, and tricks
- Windows 10 forums on Windows Central
Update 6: Microsoft wants all of TikTok, but Trump's order may interfere
The Financial Times reports that as part of negotiations, Microsoft is now inquiring whether it can buy all of TikTok, instead of just the business in the US., Canada, Australia, and New Zealand. This new plan would include India and Europe (and excluding China).
Surface Duo and double Dans take over this week's Android Central podcast
Need even more Surface Duo in your life? Check out the latest Android Central podcast, in which Daniel Rubino and Daniel Bader (double the Dans!) discuss Surface Duo, Microsoft's Samsung love affair, and Project xCloud.
This is the best Windows 10 tablet you can buy right now
There are many Windows 10 tablets on the market, but it's hard to sort through the rubbish. Here's our picks for the best Windows 10 tablets you can buy right now. At the top of our list is the Surface Pro X, which we think is the best due to its ARM processor, large display, and thin form factor while still packing good battery life and excellent performance.
Should your next computer be a mini PC? These are your best options.
Windows PCs come in all shapes and sizes, and whatever your needs there's a computer out there to suit you. Here are the best to choose from if you're looking for a new mini PC.