How to assign permanent letters to drives on Windows 10

You can assign drive letters manually, and in this guide, we show you how on Windows 10.

assign drive letter via cmd

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.

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.

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:

  • 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 : diskpart
  • Type the following command to list all the available volumes and press Enter : list volume
  • 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 : assign letter=Z 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.

Alternatively, you can also use PowerShell to change a drive letter on Windows 10 using these steps:

  • 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 : Get-Disk
  • 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

Get the Windows Central Newsletter

All the latest news, reviews, and guides for Windows and Xbox diehards.

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.

  • 2 Helldivers 2 players are sitting AFK to avoid server capacity queues, but Arrowhead is readying the boot
  • 3 This new Bethesda collection includes SEVEN great Fallout games on PC, and it's... Actually an awesome deal?
  • 4 The possibilities are (almost) endless with this Verizon Fios deal that gets you a $300 gift card
  • 5 Windows Central Podcast #340: Windows 11 version 24H2 confirmed!

assign drive letter via cmd

StackHowTo

  • How To Assign Letter To Drive In CMD

I n this tutorial, we are going to see how to assign a drive letter in CMD. To assign a letter to a drive such as an external hard drive or a USB flash drive, there is a tool called Diskpart that makes drive letter assignment faster.

In order to assign a drive letter, we will use Diskpart command prompt which also allows you to create a partition, delete a partition, and format a partition, etc. Well, how to assign a drive letter with Diskpart?  

How To Assign Letter To A Drive In CMD

assign drive letter via cmd

  • Types of Ethernet Cable
  • How to Install CAB File in Windows 10 using Command Line
  • How to Change Multiple File Extensions at Once in Windows 10 Using PowerShell
  • How to Make Taskbar Buttons Smaller in Windows 10
  • How to Run AutoHotKey Script on Startup Windows 10
  • How to Remap Keyboard Keys in Windows 10
  • How to Search Files by Size in File Explorer on Windows 10
  • How to Check Internet Data Usage in Windows 10
  • How to Change Folder Background Color in Windows 10
  • How to Turn off Location on Laptop Windows 10
  • How to Disable Sleep Option from Windows 10 Start Menu
  • How to Wake Up Computer From Sleep Mode in Windows 10 with Mouse
  • How to Wake Up Computer From Sleep Mode in Windows 10 with Keyboard
  • Batch File To Display Popup Message in Windows 10
  • How to Display Popup Reminder in Windows 10
  • How to See PC Startup and Shutdown History in Windows 10
  • How to Record Your Screen with VLC on Windows 7/8/10
  • How to Change Paging File Size in Windows 10
  • How to Display Full Path in Title Bar of File Explorer on Windows 10
  • How to Cancel Shutdown on Windows 10
  • How to Schedule Auto Shutdown in Windows 10
  • How to Schedule a Scan in Windows Defender
  • How to Calculate Total Duration of Multiple Video Clips in Windows 10
  • How to Fix Drag and Drop Problems in Windows 10
  • How to Disable Power Throttling in Windows 10
  • How to Run Program as Administrator Without Password Prompt in windows 10
  • How to Limit Windows Defender CPU Usage
  • How to Check if Windows 10 is Activated
  • How to Fix Right Click on Desktop Not Working in Windows 10
  • Image Resizer on Right-click for Windows 10
  • How to Change Computer Name in Windows 10
  • How to Change Account Picture in Windows 10
  • How to Zoom in and out in CMD and PowerShell
  • How to Lock Screen After Inactivity on Windows 10
  • How to Sync Computer Time With Internet in Windows 10

Command To Check Open Ports in Windows

  • How to Keep a Window Always On Top on Windows 10
  • How to Increase Font Size in Windows 10
  • How to Change Cursor Color in Windows 10
  • How to Change Cursor Size in Windows 10
  • How to Change Default PDF viewer on Windows 10
  • How to Disable Security Questions in Windows 10
  • How to Pin Specific Settings to the Start Menu in Windows 10
  • How to Format USB Device When FAT32 Option is Not Available
  • How to Automatically Open a Web Page at a Specific Time
  • How to Restart explorer.exe in Windows 10 Using CMD
  • How to Restart Explorer.exe in Windows 10 [2 Methods]
  • How to Add Program Shortcut to Start Menu in Windows 10
  • Hibernate Option Not Showing In Windows 10
  • How To Delete Previous Version of Windows in Windows 10
  • How to Add Print Option in Right-Click Menu
  • How to Delay Startup Programs in Windows 10/8/7
  • How to Disable Task Manager on Windows 10
  • How to Turn on Network Discovery in Windows 10
  • How to Check if Virtualization is Enabled in Windows 10
  • How to Password Protect a Zip File on Windows 10
  • How To Change User Folder Name in Windows 10
  • How to Restore Drivers in Windows 10
  • How to Backup Drivers using PowerShell Command in Windows 10
  • How to Add Store Apps to Startup in Windows 10
  • How to Enable Fingerprint in Windows 10
  • How to Enable Autocorrect and Predictive Text in Windows 10
  • How To Open a Second File Explorer Window in Windows 10
  • How to Block Websites On Your Computer
  • Check Disk Command in Windows 10
  • How to Activate a Window by Hovering Over it with the Mouse in Windows 10
  • How to Control Volume for Individual Programs in Windows 10
  • How to Schedule Restart in Windows 10
  • How to Change Microsoft Store Region in Windows 10
  • How to Hide the Clock From Windows 10 Taskbar
  • How to Enable Number Pad on Keyboard Windows 10
  • How to Turn Off Taskbar Thumbnail Previews in Windows 10
  • How Can I See All Drives in CMD
  • How to Show All Drives in Windows 10 File Explorer
  • Windows 10 Privacy Settings to Turn Off
  • How to Change Desktop Icons in Windows 10
  • How to Force a Program to Open in Full Screen in Windows 10
  • How to Delete Temporary Files in Windows 10
  • How to Enable Startup Sound in Windows 10
  • How to Reset All Default Apps in Windows 10
  • How to Change Default Action on Connecting a USB Device Windows 10
  • How to Remove Old Drivers From Windows 10
  • Where is the Drivers Folder in Windows 10
  • How to Reset Windows Update in Windows 10
  • How to Format USB Using CMD on Windows 10
  • How To Check WiFi Signal Strength on Windows 10 Using CMD
  • How to Remove “Show Desktop” Button on Windows 10
  • How to Enable Remote Desktop on Windows 10
  • How To Open File Explorer To “This PC”
  • How to Stop the Screen From Turning Off on Windows 10
  • How to Change Default Folder Name in Windows 10
  • How to Display Day of Week in Windows 10 Taskbar
  • How To Display Windows 10 Start Menu in Full Screen
  • How to Create a New Library in Windows 10
  • How to Reset the Settings App in Windows 10
  • How To Disable Startup Programs in Windows 10
  • How to Enable Registry Backup in Windows 10
  • How to Remove Password at Windows 10 Startup
  • How to Reset Windows 10 To Factory Settings
  • How To Enable or Disable Night Light in Windows 10
  • How to Add Clocks to Start Menu on Windows 10
  • How to Disable Bing Web Search Results in Windows 10 Start Menu
  • How to check Bluetooth battery level on Windows 10
  • How To Set Static IP Address in Windows 10 using CMD
  • How To Find Out If a Program is 32 or 64-bit Windows 10
  • How To Check Bios Firmware Version in Windows 10
  • How To Activate Windows 10
  • How to enter UEFI (BIOS) on Windows 10
  • How to Boot From a USB Drive on Windows 10
  • How to Reinstall Microsoft Store in Windows 10
  • How to Enable Ultimate Performance Mode in Windows 10
  • How to Stop Apps From Running in the Background on Windows 10
  • How to Change Another User’s Password in Windows 10
  • How to Delete Local User Account using PowerShell in Windows 10
  • How to Create Local User Account using PowerShell in Windows 10
  • How to Disable User Account Control (UAC) in Windows 10
  • How to Block Inappropriate Websites on Windows 10
  • How to Set Up a Child Account in Windows 10?
  • How to Download Windows 10 ISO file (32 bits and 64 bits)
  • How to Change the Default Save Location in Windows 10
  • How to Add Open Command Prompt Here to right-click Menu in Windows 10
  • Add Open PowerShell Window Here as Administrator in Windows 10
  • How to Mount ISO Images on Windows 10
  • How to Clear DNS Cache on Windows 10
  • How to Change DNS Server in Windows 10
  • How to Change Temp Folder Location in Windows 10
  • How to Reduce the Size of the Search Bar in Windows 10
  • How to Force Close a Program on Windows Without Task Manager
  • How to Force Close a Program with Task Manager
  • How to Speed Up Windows 10 Startup
  • How to Enable Sandbox in Windows 10
  • How to Disable Automatic Installation of Suggested Apps in Windows 10
  • No Sounds on Windows 10? Here’s How to Fix It
  • No Audio Output Device Is Installed in Windows 10 Fix
  • Where is the Location of Startup Folder in Windows 10?

How to Create a Windows 10 Bootable USB

  • How To Run Computer Performance Test in Windows 10
  • How To Tell If Your Computer Is 32 Or 64-bit Windows 10
  • How to Remove Recycle Bin From Desktop on Windows 10
  • How to Show My Computer, Recycle Bin Icon on Windows 10
  • How To Enable Screen Saver In Windows 10
  • How to Enable or Disable Updates For Other Microsoft Products on Windows 10
  • How to Disable Windows 10 Startup Delay
  • How To Open Emoji Keyboard on Windows 10
  • How to Turn On File and Printer Sharing in Windows 10
  • How To Optimize Windows 10 For Gaming
  • How to Add Shortcuts to the “Send to” Menu in Windows 10
  • How to Change the Screen Refresh Rate of Your Monitor in Windows 10
  • How to Make a Program Run on Startup in Windows 10
  • How to Turn Off SmartScreen in Windows 10
  • How to Disable Telemetry in Windows 10
  • How to Disable Windows 10 Tracking
  • How to Disable Windows 10 Data Collection
  • How to Free Up Disk Space in Windows 10
  • Fast Way to Delete a Large Folder in Windows 10
  • How to Create a Printer Shortcut on Desktop Windows 10
  • How to Change Audio Output Device Per Application on Windows 10
  • How to Format a Hard Drive or SSD in Windows 10
  • How to Switch Between Windows in Windows 10 using Keyboard
  • How to Download and Install Windows Media Player for Windows 10
  • How to Create a Shortcut on Desktop Windows 10
  • How to Block reopening of Programs on startup Windows 10
  • How To Limit Windows Update Bandwidth in Windows 10
  • How to remove the 3D Objects folder from This PC in Windows 10
  • How to Remove Old User Account Pictures in Windows 10
  • How to Delete the Hibernation File hiberfil.sys
  • How to Show Seconds in System Clock in Windows 10
  • How to Open Files and Folders with Single Click in Windows 10
  • How to Reset Your Microsoft Account Password for Windows 10
  • How to Fix Corrupted Files in Windows 10
  • How To Export And Import Start Menu Layout In Windows 10
  • How to Stop Automatic Restart After Updating Windows 10
  • How to Remove Ads From the Start Menu in Windows 10
  • How to Create a Homegroup Network in Windows 10
  • How to Disable ads in File Explorer in Windows 10
  • How To Fix gpedit.msc Group Policy Editor Missing in Windows 10
  • How to Change the Network Connection Priority in Windows 10
  • How to Watch Videos While Working on Other Tasks on Windows 10 Computer
  • How to Create a System Repair Disk in Windows 10
  • How to Customize the Taskbar in Windows 10
  • How to Change Taskbar Icons in Windows 10
  • How to Show the Control Panel in File Explorer on Windows 10
  • How to Uninstall Updates in Windows 10
  • How to reset all Local Group Policy on Windows 10
  • How To Turn Windows 10 Computer Into a Wi-Fi Hotspot
  • How to Reset Network Settings in Windows 10 Using CMD
  • How to Disable the Game Bar in Windows 10
  • How to Clear Windows 10 Update Cache
  • How to Create an Invisible Folder without Any Name in Windows 10
  • How to Add Open With to Right-click Menu in Windows 10
  • How to Change Default Apps on Windows 10
  • How to Prevent Copying Files From USB to PC
  • How to Find Your WiFi Password on Windows 10
  • How to Hide Your Name and Email Address on Windows Login
  • How to Speed Up File Transfer in Windows 10
  • How to Remove Power or Shutdown Button from Lock Screen in Windows 10
  • How to Start Windows 10 in Safe Mode
  • How to Stop Lock Screen ads in Windows 10
  • How to Enable Guest Account in Windows 10 using CMD
  • How to Restore Windows 10 Image Backup From Hard Drive
  • How to Create a System Image in Windows 10
  • How to Disable Automatic Update on Windows 10
  • How to Stop Programs From Automatically Updating in Windows 10

How to Take a Screenshot on Windows 10

  • Windows 10: Start Menu And Taskbar Not Working
  • How to Rebuild a Broken Icon Cache in Windows 10
  • How to Turn Off Windows Security Notifications in Windows 10
  • How to Preview a File Without Opening it in Windows 10
  • How to Permanently Disable Windows Defender on Windows 10
  • How to Disable the Action Center in Windows 10
  • How To Reinstall Microsoft Edge In Windows 10
  • How to Uninstall Microsoft Edge in Windows 10
  • How to Change Start Menu and Taskbar Color in Windows 10
  • How to Get Windows 7 Start Menu on Windows 10 with Classic Shell
  • Why the Start Menu is Slow to Open in Windows 10
  • How to Change Login Screen Background on Windows 10
  • How to Restore Windows Photo Viewer in Windows 10
  • How to Fix Screen Flickering in Windows 10
  • How to Remove Windows 10’s Built-in Apps
  • How to Fix Black Screen on Windows 10
  • How to Remove Search Bar From Taskbar on Windows 10
  • How to Disable Windows 10 Peer-to-Peer Updates
  • How to Downgrade to Windows 7 From Windows 10
  • How to Fix Windows 10 Start Menu And Cortana Not Working
  • How to Backup and Restore Registry in Windows 10
  • How to Change the Default Installation Location on Windows Using Regedit
  • How to Force Restart Windows 10 with Keyboard
  • How to Remove Shortcut Arrow from Desktop Icons on Windows 10
  • How to Find Computer Specs on Windows 10
  • How To Move Your Libraries To Another Drive in Windows 10
  • How to Enable Numlock at Windows Startup
  • How to Change CMD Color in Windows 10
  • How To Increase Font Size In CMD
  • How To Get MAC Address In CMD
  • How to Open File Explorer Using CMD on Windows 10
  • How To Run Batch File On Windows Startup
  • How To Run EXE From A Batch File
  • How To Run A Python Script From A Batch File
  • How to Run PowerShell Script From A Batch File
  • How to Run Multiple Batch Files From One Batch File
  • Batch File To Copy All Files From One Folder To Another
  • How To Compare Strings In Batch Files
  • How To Concatenate Variables In Windows Batch File
  • How To Clear A Variable In A Batch File
  • For Loop Counting From 1 To N in a Batch File
  • How to Run Batch File Automatically Every X Minutes
  • Batch File To Get and Set System Date
  • Batch File To Set Default Programs in Windows 10
  • Batch File To Get Computer Name
  • Batch File To Get Current Directory
  • Batch File To Get Input From User
  • Batch File To Get IP Address
  • Batch File To Get MAC Address
  • How to Add a Registry Key in a Batch File
  • Batch File To Create Local User Accounts
  • Batch File To Create a Text File
  • Batch File To Create a Folder
  • Batch File To Create Folders From a List
  • Batch File To Write Ping Results To a Text File
  • Batch File To Write Variable To a Text File
  • Batch File To Write To a Text File
  • Batch File To Read XML File
  • Batch File To Read CSV / XLS
  • Batch File To Read Text File Line By Line into A Variable
  • Batch File To List Folder Names
  • Batch File To List Folders and Subfolders
  • Batch File To List Filenames in a Specified Folder
  • Batch File to List All Files in a Folder and Subfolders
  • How to Check Internet Connection using Batch File
  • How to Check the Size of a File in a Windows Batch Script
  • How To Check Batch File Error
  • Batch File To Check If Folder Exists
  • How to Check If a Path is File or Directory using Batch
  • Batch File To Delete Folders Older Than N Days
  • Batch File To Delete All Files in Folder Older Than N Days
  • Batch File To Delete All Files In Folder
  • Batch File To Delete A File If Exists
  • Batch File To Check If Multiple Files Exist
  • Batch File To Check If File Exists
  • Batch File Commands List With Examples
  • 8 Batch File Commands You Should Know
  • How to Create a Batch File in Windows
  • How to Run Batch File in CMD
  • How to Run EXE File in CMD
  • How to Change the MAC Address on Windows 10
  • How to Create a Website Shortcut on Desktop In Windows 10
  • 29 Run Commands in Windows You Should Know
  • How to Ping IP Address in CMD
  • How to Get IP Address Using Ipconfig in CMD
  • How to Delete Folder Using CMD in Windows 10
  • CMD Commands List You Should Know
  • How to Change Lock Screen in Windows 10
  • How to Show My Computer Icon on Desktop in Windows 10
  • How to Change Compatibility Mode in Windows 10
  • How to Uninstall Internet Explorer in Windows 10
  • How to Add or Change Desktop Theme in Windows 10
  • How to Disable Transparency Effects in Windows 10
  • How to Delete and Uninstall Fonts in Windows 10
  • How to Install New Fonts in Windows 10
  • How to Disable Lock Screen on Windows 10 Using Registry
  • How to Customize Action Center in Windows 10
  • How to Disable Cortana in Windows 10 using Registry
  • Battery Icon Missing From Taskbar in Windows 10 [Solved]
  • How to Change Desktop Background in Windows 10
  • How to Increase Battery Life of Windows 10 Laptop
  • How to Turn off Notifications in Windows 10
  • How to Create Keyboard Shortcuts in Windows 10
  • How to Change Desktop Icon Size in Windows 10
  • How to Turn On Dark Mode on Opera
  • How to Turn On Dark Mode on Mozilla Firefox
  • How to Turn On Dark Mode on Google Chrome
  • How to Turn On Dark Mode on Microsoft Edge
  • How to Enable Dark Mode in Windows 10
  • How to Increase Mouse Sensitivity in Windows 10
  • How to Find Which Programs are Slowing Down Your Boot Time in Windows 10
  • How to Defrag the Hard Drive in Windows 10
  • How to Copy and Paste Into Command Prompt in Windows 10
  • How to Enable the On-Screen Keyboard in Windows 10
  • How to Check Laptop Battery Health in Windows 10
  • How to Use Offline Maps in Windows 10
  • How to Calibrate Your Monitor in Windows 10
  • How to Enable God Mode in Windows 10
  • How to Increase Processor Speed in Windows 10
  • How to Pin a Folder to Taskbar in Windows 10
  • How to Pin a Website to Taskbar in Windows 10
  • How to Switch Between Desktops in Windows 10
  • How to Make Windows 10 Boot Faster
  • How to Stop Windows 10 From Sleeping
  • How to Set an Alarm Clock on Windows 10
  • How to Go Directly to Desktop in Windows 10
  • How to Create a New Folder on Windows 10
  • How to Reduce Blue Light on Computer Screen on Windows 10
  • How to Turn on Speech Recognition in Windows 10
  • How to Sync My Settings in Windows 10
  • How to Change the Screen Resolution on Windows 10
  • How to Create a New User on Windows 10
  • How to Turn Off Tablet Mode in Windows 10
  • How to Uninstall a Program on Windows 10
  • How To Change Password In Windows 10
  • Top Keyboard Shortcuts in Windows 10
  • How to Speed Up Windows 10 Shutdown
  • How to Change Default Browser in Windows 10
  • How to Disable the Lock Screen in Windows 10
  • How to disable User Account Control in Windows 10
  • How to Hide File Extensions in Windows 10
  • How to Show Hidden Files and File Extensions in Windows 10
  • How to Create a Restore Point with System Protection Enabled in Windows 10
  • How to Delete Browsing History on Firefox in Windows 10
  • How to Delete Browsing History on Microsoft Edge in Windows 10
  • How to Delete Browsing History on Google Chrome in Windows 10

You May Also Like

how-to-take-a-screenshot-on-windows-10

Leave a Reply Cancel reply

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

Save my name, email, and website in this browser for the next time I comment.

Sign up for our daily newsletter

  • Privacy Policy
  • Advertise with Us

How to Remove and Assign Drive Letters in Windows with Diskpart

Vamsi Krishna

Diskpart is one of the most powerful Windows command line utilities which first appeared in Windows XP. Diskpart is mainly used by Windows administrators to manage tasks like partition management, formatting, creating, re-sizing and getting a detailed information regarding the hard disk or other removable disks attached to the computer. Even though you have a built-in GUI application called Disk Management utility in Windows, Diskpart is much more flexible and works well in a server environment where you need to set up some advanced features like RAID.

Note: This post isn’t intended for beginners, and doing something wrong while using Diskpart utility may cause drive failures and data losses, so make sure that you have a good backup before continuing. You have been warned.

Assign Drive Letter Using Diskpart

Assigning a new drive letter to a partition or removable device using Diskpart is really easy. First, search for the command prompt in the Start menu, right click on it and select the option “Run as administrator.” If you are using Windows 8, press “Win + X” to open the power user menu and select the option “Command Prompt (Admin).”

diskpart-launch-cmd-as-admin

The above action will open the command prompt window with administrative rights. Here enter the following command to start the Diskpart utility.

diskpart-cmd-diskpart

The next step is to list all the volumes in your computer so that you can clearly see all the volume numbers and drive letters of your hard disk partitions and any other removable devices. Use the command below to list all the volumes.

diskpart-list-volume

Once the Diskpart utility lists all the volumes, take a note of the volume number of the drive you want to assign a new drive letter. In my case, I’m trying to assign a new drive letter to the drive I:\ , so my volume number is 7 . Now execute the following command to select the volume while replacing the # symbol with an actual volume number.

diskpart-select-volume

Once the volume is selected, use the following command to assign a new drive letter. Don’t forget to replace the letter “V” with the drive letter you want to assign.

diskpart-assign-letter

That’s all there is to do; you have successfully changed or re-assigned a new drive letter to a partition or a removable drive in Windows. In fact, if you open the Windows explorer, you can see that the change is reflected immediately.

diskpart-drive-letter-changed

Remove Drive Letter using Diskpart

Before moving any further, removing or un-assigning drive letter will effectively hide the drive or partition from plain sight, i.e. you cannot see that drive in the Windows explorer. To remove a drive letter, follow the above steps 1 through 4 and then use the below command to remove the drive letter of a drive or partition. Don’t forget to replace the letter “I” with the actual drive letter.

diskpart-remove-letter

As soon as you have done that, Diskpart will remove the drive letter for that volume. If you list the volumes again, you will see that the drive you just interacted with will have no drive letter next to it.

diskpart-letter-removed

Moreover, if you navigate to the Windows explorer, you will see that the drive which got un-assigned isn’t listed anymore. But again, always be careful while you are messing around with Diskpart utility; it may cause irrecoverable data loss if used incorrectly.

Hopefully that helps, and do comment below if you face any problems while following the steps or to simply share your thoughts.

Our latest tutorials delivered straight to your inbox

Vamsi Krishna

Vamsi is a tech and WordPress geek who enjoys writing how-to guides and messing with his computer and software in general. When not writing for MTE, he writes for he shares tips, tricks, and lifehacks on his own blog Stugon.

Ms Paint Not Working Windows Featured Image

The Best Windows Disk Partition Manager and PC Optimizer

assign drive letter via cmd

  • DiskPart Command Line Utility >

[Free Guide]: Use Diskpart Assign Drive Letter in Windows 11, 10, 8, 7

This post will show you how to use Diskpart assign drive letter in Windows 11, 10, 8, 7. In addition, another free GUI software will be introduced to assign or remove the drive letters.

Cherry

By Cherry / Updated on November 9, 2023

twitter

│ Use Diskpart to assign drive letter

│ assign drive letter via disk management, faqs about how to use diskpart to assign drive letter, why use diskpart to assign a drive letter.

As we all know, Windows assigns drive letters to all available drives on your computer, such as internal hard drives, optical drives, SD cards, and external USB drives. A drive letter is an alphabetical identifier for a volume, and each drive letter can be used once on a computer.

But sometimes, users want to change the original drive letter to another drive letter. Or due to some operation, the drive letter will not be available and the user needs to assign a new drive letter. So a computer-experienced user might assign drive letter by Diskpart, as this is the faster way. The purpose of this article is to provide you with some methods for assigning a drive letter , including Diskpart, Disk Management, and another easier way.

Step-by-step: Assign drive letter by Windows built-in tools

Windows OS users know they have two amazing tools for managing disks and partitions - Disk Management and Diskpart.

The Disk Management tool in Windows provides you with an easy-to-use graphical interface to manage your disks with a single mouse click. And Diskpart is a command-line tool that allows you to quickly manage your disks or partitions from the command prompt. The next section will show you how to use Disk Management and Diskpart to assign drive letters.

Diskpart is a Windows built-in tool that you can use to manage your hard drive, like format disk partition, create partition, delete partition , etc. Well, how to use Command Prompt Diskpart assign drive letter? The following parts may help you a lot.

Step 1. Press "Windows + R". Then, type "diskpart" and press Enter.

Step 2. Type in "list volume" and press Enter. Now, you can see all volumes on PC.

Step 3. Type in "select volume 7" and press Enter(here take volume 7 as an example).

Step 4. Finally, type in“assign letter=F” and press Enter.

If you want to remove the drive letter, type “remove letter=X”(X is the drive letter you want to remove).

Actually, you may assign a drive letter when you create a new one. For that, you need to create partition first. After creating a partition, type “assign letter=?” to that partition. Or, if there is some volume hidden, it will not have the drive letter, to unhide it, you need to assign a drive letter for it. 

In addition to Diskpart, Disk Management may be another good choice to assign drive letter.

Step 1. Press “Win + R” to open the “Run” window and type diskmgmt.msc in the box.

Step 2. Right-click the drive you want to assign, and select change Drive Letter and Paths in the pop-up window.

change drive letter and path

Step 3. Click Change to summon the next window.

change

Notice: If you want to remove the drive letter of your partition, you can select "Remove" and follow the instructions step by step.

Step 4. After that, you should choose the new drive letter from the drop list, and then, click OK.

assign new letter

Now, do you understand how to use Disk Management and Diskpart assign drive letter?

Although it's convenient for most people, you need to be aware that sometimes you can't assign drive letter successfully, because Disk Management and Diskpart only support assigning drive letter with FAT or NTFS. When the drive's file system is another type, you can format it to NTFS or FAT, or use another method to assign a drive letter.

Diskpart assign drive letter alternative

Disk Management and Diskpart are not perfect because they have limitations. Fortunately, there is an easier way to make up for their shortcomings perfectly.

AOMEI Partition Assistant Standard is a completely free third-party partition manager. It supports users to assign drive letters through a more friendly interface, which can be done with just a few clicks, much simpler than Diskpart. Also, it can assign drive letter on any file system. More importantly, it has more complete functions and allows you to manage disks flexibly.

Step 1. Launch AOMEI Partition Assistant, it will show you all storage devices in the main interface. you can see the removable drive doesn't have a drive letter. If you want to assign a drive letter for the drive, here you need to right click it, select Advanced-> Change Drive Letter.

Assign Drive Letter

Step 2. Then, select a drive letter for the drive.

Choose New Drive Letter

Step 3. Click Apply to submit the task.

Apply Assign Drive Letter

Now, do you know how to use Diskpart assign drive letter? If you are a user who has a computer background, Diskpart may be the quickest method to assign the drive letter. However, if you are normal user, AOMEI Partition Assistant Standard is the correct choice.  After you upgrade to AOMEI Partition Assistant Professional , there are more advanced features you can try, such as allocating free space from one drive to C, and Move the installed app from one drive to another.

Last but not least, although the system drive letter can be changed, do not do it because that would make the system unable to boot.

Can I remove a drive letter assignment using Diskpart? Yes, you can remove a drive letter assignment by using the "remove" command. For example, "remove letter=E" will remove the E drive letter from the selected volume.

Are there any restrictions on the drive letters I can assign using Diskpart? Drive letters A and B are traditionally reserved for floppy disk drives. You can assign any available drive letter from C to Z to a partition or volume, provided it's not already in use.

Do I need to be careful when using Diskpart to avoid data loss? Yes, you should be cautious when using Diskpart, especially if you're deleting partitions or making significant changes to disk configurations. Make sure you select the correct volume and drive letter to avoid accidental data loss.

Can I assign drive letter on a hidden drive? Yes, you can. Be very cautious when assigning a drive letter to a hidden drive or volume, as it might contain system or recovery files.

Press the Windows key, type "cmd" or "Command Prompt," right-click it, and choose "Run as administrator". In the Command Prompt window, type "diskpart" and press Enter. This will open the Diskpart utility. To see a list of all volumes, including hidden ones, type list volume and press Enter. Use the "select volume" command to choose the hidden volume. Replace "X" with the volume number or letter. A ssign a drive letter to the selected hidden volume, use the "assign letter=Y" command. Once you've successfully assigned the drive letter, you can exit Diskpart.

Cherry

Related Articles

How to permanently assign drive letter with ease.

A permanent drive letter prevents us from being confused with multiple USB drives. Then, how to permanently assign drive letter with ease? This post offers three effective ways to make it.

Drive Letter Not Available-Why and How to Solve It?

Can’t assign drive letter in Disk Management because a certain drive letter is not available? Follow this article to solve it efficiently.

How to Change Partition Type ID Easily? (2 Ways Included)

Are you in need of changing partition type ID in Windows? Read this article thoroughly to get two efficient methods to modify partition type ID.

Free Download to Try AOMEI Partition Assistant Now

MiniTool

How to Change Drive Letter with CMD Windows 10

Diskpart is a command-line tool in Windows system that allows you to manage your disks and partitions. This post introduces how to change drive letter with CMD in Windows 10, namely, by using Diskpart CMD tool. MiniTool software provides users a free disk partition manager, data recovery software, system backup and restore software, etc.

If you want, you can change drive letter for a drive with CMD (Command Prompt) in Windows 10. This post includes detailed guides for how to use Diskpart command-line tool to change driver letter in CMD.

How to Change Drive Letter with CMD in Windows 10

Diskpart is a Windows built-in CMD tool that lets you easily manage hard drive and change drive letter. To change or assign drive letter in CMD, you can firstly open Diskpart utility in Command Prompt. Check the steps below.

Step 1. Open CMD in Windows 10

You can press Windows + R , type cmd , and press Ctrl + Shift + Enter to open elevated Command Prompt .

Step 2. Open Diskpart tool

In Command Prompt window, you can type diskpart command, and press Enter . This will open the Diskpart command-line utility.

Step 3. Change drive letter CMD

Next you can type the command line below to change drive letter in Command Prompt in Windows 10. Remember to press Enter after typing each command line.

  • list volume (this command will list all available volumes detected by your computer)
  • select volume * (replace “*” with the exact volume number of the target partition)
  • assign letter=* (replace “*” with the preferred drive letter like “F”)

Windows change drive letter

After you change or assign a drive letter for a drive or device, Windows will display the same letter automatically next time you reconnect the device to your computer.

If you want to remove the drive letter of a specific drive, you can type remove letter=* command and press Enter . Still, replace “*” with the exact drive letter of the target drive.

How to Change Drive Letter Using PowerShell

Some Windows 10 users might find that Command Prompt is missing from Win + X menu , and instead, it shows Windows PowerShell. Windows PowerShell can do most things that Command Prompt does. Alternatively, you can also use Windows PowerShell to change drive letter in Windows 10.

Step 1. Press Windows + X , and choose Windows PowerShell (Admin) to run Windows PowerShell utility as administrator.

Step 2. Next type get-disk command and press Enter to list all available drives the computer detected.

Step 3. Then you can type the command: Get-Partition -DiskNumber 1 | Set-Partition -NewDriveLetter F , and press Enter to assign a new drive letter. You should change “*” with the actual disk number of target drive, and replace “F” with the new drive letter you’d like to assign to the drive.

change drive letter PowerShell

MiniTool Partition Wizard – Professional Free Disk Partition Manager

Instead of using CMD or PowerShell to change drive letter for a drive in Windows 10, you can also utilize third-party free disk partition manager like MiniTool Partition Wizard to easily change drive letter and manage disk partitions on Windows 10.

MiniTool Partition Wizard let you easily create/delete/extend/resize/format/wipe partitions, convert partitions formats, migrate OS, clone disk, test hard drive speed , analyze hard drive space usage, check and fix disk errors , and more.

change drive letter with MiniTool Partition Wizard

By following the detailed guides above, you can easily change drive letter with CMD (Command Prompt), PowerShell or MiniTool Partitioon Wizard on Windows 10.

About The Author

Position: Columnist

  • All about AI
  • Google Bard
  • Inflection AI Pi Chatbot
  • Anthropic Claude
  • Generative AI
  • AI Image Generation
  • AI Regulation
  • AI Research
  • Large Language Models (LLM)
  • Surface Pro
  • Surface Laptop
  • Surface Book
  • Surface Duo
  • Surface Neo
  • Surface Studio
  • Surface Hub
  • Surface Pen
  • Surface Headphones
  • Surface Earbuds
  • About WinBuzzer
  • Follow Us: PUSH, Feeds, Social
  • Write for Us
  • Cookie Policy and Privacy Policy
  • Terms of Service

How to Assign / Change Drive Letter in Windows 10

We show you how to change the drive letter in CMD, DIsk Management, PowerShell, and Registry editor in Windows 10.

https://winbuzzer.com/2020/08/07/bitlocker-for-windows-10-how-to-use-encryption-for-system-disk-partitions-or-any-other-drive-xcxwbt/

  • 1 How to Change Drive Letter in Windows 10 via Disk Management
  • 2 How to Change Drive Letter in CMD using a DISKPART Disk Management Command
  • 3 How to Change Drive Letter in Windows 10 with a PowerShell Disk Management Command
  • 4 How to Change / Assign a Drive Letter via the Registry Editor

Windows 10 helpfully assigns drive letters to disks as they're added, but they aren't always the most logical choices. While we all know that C: is the system drive, it doesn't make quite as much sense to have D: as your games drive or E: as your media drive. Luckily it's quite easy to change a drive letter in Windows 10, and we're going to walk you through the process today.

How does Windows 10 drive letter assignment work?

For the most part, Windows 10 automatically assigns letters to drives as they're connected, in alphabetical order. However, there are a few exceptions to this rule that may leave some users confused.

As mentioned earlier, C: is always reserved for the system drive, but A: and B: are reserved too, for rarely used floppy drives. Because of Windows automatic assignment, you may have also noticed that Windows changes the drive letter of your USB stick if you've connected another before it.

If you want letters that are easier to identify in bios or don't want your USB letters jumping around, it's quite easy to permanently change a drive letter in Windows 10 to something of your choosing. We're going to cover a few different ways today, including how to change the drive letter in CMD.

How to Change Drive Letter in Windows 10 via Disk Management

The most user-friendly way to assign drive letters in Windows is through the Disk Management interface, which is relatively easy to use.

Start - Disk Management

How to Change Drive Letter in CMD using a DISKPART Disk Management Command

Though it's not quite as user-friendly, it can be much faster to change a drive letter with Command Prompt.

Windows 10 - Open Elevated Command Prompt

How to Change Drive Letter in Windows 10 with a PowerShell Disk Management Command

Those more familiar with PowerShell can use this method instead to achieve the same result.

Windows 10 - Open PowerShell as Admin

How to Change / Assign a Drive Letter via the Registry Editor

Alternatively, if none of the above methods worked or you're just feeling brave, you can modify the drive letter via the registry. Just be sure to read our safe registry editing guide first.

Windows 10 - Open Registry Editor

If you enjoyed this guide, you may want to consider enabling or disabling disk caching or turning on BitLocker for your newly customized drives.

  • Assign drive letter
  • assign drive letter windows 10
  • Change boot drive letter Windows 10
  • Change drive letter windows 10
  • change usb drive letter Windows 10
  • DIsc Management
  • Disk management command
  • how to change drive letter Windows 10
  • powershell change drive letter
  • win 10 change drive letter

Recent News

assign drive letter via cmd

Microsoft Edge Releases Patch for Data Import Glitch Amidst Unauthorized Data...

assign drive letter via cmd

Microsoft Announces Retirement of Azure IoT Central Service by 2027

assign drive letter via cmd

Microsoft Loop Enhances User Experience with Figma Integration

assign drive letter via cmd

Microsoft 365 Announces End of Life for Publisher by 2026

Subscribe to WinBuzzer on Google News

assign drive letter via cmd

site logo

How to Change a Drive Letter in Windows

Sometimes when you plug in a USB device, it doesn't show up

Author avatar

A task you will most likely have to perform a few times in Windows is changing the drive letter for an external hard drive, mapped network drive , or DVD drive. Sometimes when you plug in a USB flash drive, it doesn’t automatically get a drive letter assigned to it and it may not show up on your computer.

In those types of cases, you have to change the drive letter for the device and it will normally pop right up. In this article, I’ll show you how to change the drive letter for these devices using the GUI and also via the command prompt.

Change Drive Letter via Disk Management

You can open disk management on a Windows PC by either right-clicking on the Computer or This PC icon on the desktop and choosing Manage or by clicking on Start and typing in diskmgmt.msc .

How to Change a Drive Letter in Windows image 1

You’ll see a list of volumes at the top and the disks and partitions at the bottom. Any partition that has a drive letter will be shown in the white area. If you connected a USB drive and you see it listed, but it doesn’t have a drive letter, you can now assign one.

To assign or change the drive letter for a disk or partition, simply right-click on it and choose Change Drive Letter and Paths .

How to Change a Drive Letter in Windows image 2

A window will pop up with the current drive letter, if there is one, and a couple of options. Here you want to click on Change .

How to Change a Drive Letter in Windows image 3

Next, you will choose the new drive letter from the dropdown list. You can pick from the letters A to Z.

How to Change a Drive Letter in Windows image 4

That’s about it. Click OK to close out all the dialogs and the drive should now show up in Windows with the new drive letter. If you’re having issues using the GUI interface or you simply feel more comfortable using the command prompt, read the instructions below on how to use diskpart.

Use DiskPart to Assign Drive Letter

If you need to change or assign a drive letter via the command prompt, you have to use the diskpart command. I’ve written a bit on how to use diskpart , which is really useful for many disk management tasks.

To get started, open an administrator command prompt in Windows by clicking on Start, typing in CMD and then right-clicking and choosing Run as Administrator .

How to Change a Drive Letter in Windows image 5

Now type in the following commands, each followed by the Enter key.

Above, you’ll replace x with the volume number in the list that corresponds to the drive you want to change and with the letter you want to assign to the drive. Here are the commands I ran for an external USB drive:

How to Change a Drive Letter in Windows image 6

You’ll also notice that under the Type column, external drives will show up as Removable . That’s a good way to check before you select a volume. You can also figure out which drive is correct by looking at the size and also looking at the Info column. Volume 0 in my case is the system partition, so I wouldn’t want to mess with that by accident.

Overall, it’s a fairly simple process and hopefully you won’t run into any problems. There are times, however, when things don’t work properly. Below are some possible reasons.

Troubleshoot Can’t Change Drive Letter in Windows

One problem that I have seen is that the Change Drive Letter option is simply greyed out. This can occur for a few reasons. One of the main reasons is the volume is not formatted in FAT or NTFS format. For example, if you are attaching a disk from a Mac computer, you will not be able to change the drive letter unless you format the drive into a compatible format.

Another reason is if the drive is set to read-only. If so, you’ll have to Google the steps to change the drive to allow read/write access.

How to Change a Drive Letter in Windows image 7

Also, if you don’t need any of the data on the volume in question, a simple solution is to delete the volume, which is normally never greyed out. Once you delete the volume, you can right-click again and create a new simple volume. Now you will be able to change the drive letter.

Make sure to read my other tips on how to hide drive in Windows and how to map a folder to a drive letter in Windows. If you have any questions, feel free to comment. Enjoy!

' src=

Founder of Help Desk Geek and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time. He has over 15 years of industry experience in IT and holds several technical certifications. Read Aseem's Full Bio

Read More Posts:

assign drive letter via cmd

Leave a Reply

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

More Recovery Products

  • Partition Manager     Partition Master Personal disk manager   Partition Master Enterprise Business disk optimizer   Edition Comparison Partition Master Versions Comparison   Disk Copy Hard drive cloning utility Partition Master Free Partition Master Pro

Centralized Solutions

MSPs Service

Screen Capture

Video Toolkit

Audio Tools

Transfer Products

File Management

iOS Utilities

More Products

  • Support     Support Center Guides, License, Contact   Download Download installer   Chat Support Chat with a Technician   Pre-Sales Inquiry Chat with a Sales Rep   Premium Service Solve fast and more

EaseUS Partition Master

3 Simple Ways to Assign a Drive Letter in Windows 10/8/7

How to assign a drive letter in Windows 10/8/7? This post covers three ways to assign a drive letter by using Disk Management, a partition manager, and Diskpart in CMD.

 Windows 11/10/8/7  100% Secure

assign drive letter via cmd

Total downloads

Page content

About the Author

Hot topics in 2023.

assign drive letter via cmd

What Is a Drive Letter

A drive letter is an alphabetic character identifying a physical computer disk or drive partition. Windows will assign an accessible drive letter by default, to any storage device. It starts from A to Z, going through all the alphabet. Windows will assign an accessible drive letter by default, to any storage device.

The system reserves the drive letters A: and B: for the floppy drive and portable media, such as tape drives. Even if your computer doesn't have these drivers installed. But you can still assign such letters manually if you wish. On computers with hard drives, the default drive letter is always C:. The CD-ROM or other disc drive is the last drive letter (e.g., D:). It's because C: is the first drive letter available on a hard disk. The drive letter C: can only be assigned to the drive on which Windows or MS-DOS is installed.

Windows will always be the drive letter C:,  even if you have several operating systems running. Most modern desktops and laptops now have hard drives and disc drives, like DVD drives, but not floppy disks. Even in this case, the C: drive is assigned to the hard drive, and the D: drive is assigned to the DVD drive.

Windows assigns the last drive letter to flash drives, smartphones, and other drives. For example, if the last drive letter was F:, and you plug a new drive, it is allocated as a G: drive until you unplug it. If you install more drives or create new partitions, they are allocated to drive letters other than C:, like D:, E:, F:, G:, and so on. Instead of the drive letter given by Windows, you may alter it to any other accessible drive letter.

How Assigned Drive Letters Work

You can alter the drive letter assigned by Windows. In the case you alter a drive's drive letter, the registry saves it per drive and volume ID. This does not permanently assign a drive letter to the device. The drive letter on your PC may change if you unplug the device or if you alter it.

If you use many USB drives, you may have observed that the drive letter changes each time you attach one. When non-assigned drives are attached, the letters D and onwards are assigned in turn. If the assigned drive is not attached, Windows will assign its drive letter to another drive. If you connect the drive with the given drive letter later, it will be assigned the next available letter.

Windows gives you several options for changing the drive letter of your computer. With this guide, you'll learn how to assign drive letters using three different tools. We will use Disk Management, EaseUS Partition Master, and Windows Command Prompt.

Extended Reading: Drive Letter Not Available

Assign a Drive Letter on Windows 10 with Disk Management

The Disk Management utility that comes with Windows lets you manage your disks. Change drive letters , create new partitions, delete existing partitions, and more.

Follow the steps below to change the drive letter.

Step 1. You will need to open Disk Management with administrator privileges. Right-click on the Start button, then choose Disk Management.

open disk management

Step 2. In the Disk Management window, right-click the volume you want to change or add a drive letter. Then click "Change Drive Letter and Paths".

choose change drive letter

Step 3. Pick "Change" to alter the drive letter. Or pick "Add" to add a drive letter for drives without one.

assign drive letter

Step 4. Choose a new drive letter, click "OK". The Disk Management will warn you that some programs might not run properly. Just close the window by clicking "Yes" to confirm.

disk management assign letter

Assign and Change Drive Letter with EaseUS Partition Manager

Your team is working on a project and you need to copy some files to a USB drive. But you have no idea what is the drive letter of the USB of your team. Most people have dealt with this issue before. As an easy solution, you can assign a drive letter to each driver using EaseUS Partition Master .

Users can manage disks with EaseUS Partition Manager without needing to go through a lengthy process. This program also provides advanced features such as  resize/move partition to solve low disk space issues, merge partitions, clone disk , create/delete/format partition, wipe data, disk/partition conversion, etc.

Now, free download this easy partition tool to assign drive letters with simple clicks.

Step 1.  Run EaseUS Partition Master, right-click the target partition, and choose "Change Drive Letter".

Step 2.  In the new window, click the down arrow and choose a drive letter for the partition from the drop-down menu, then click "OK".

Step 3.  Click the "Execute 1 Task(s)" button in the top-left corner, check the changes, and click "Apply" to change the drive letter of the selected partition.

Assign a Drive Letter Windows 10 Using Command Prompt

Windows Command Prompt can be used to assign drive letters to any directory on a computer. It especially benefits users with many storage devices connected to their computers. Below, we will show step-by-step how to change a drive letter with the command prompt.

Step 1. Access the elevated command prompt. Press Windows + S to run the search box. Type cmd . When the command prompt appears, right-click and select "Run as administrator".

open cmd

Step 2. Type diskpart at the command prompt. Press Enter.

command prompt type diskpart

Step 3. Type list volume , then press Enter.

command prompt  type list volume

Step 4. Pay attention to the volume number of the drive you want to change the letter. Type select volume . Substitute volume number by the number of the volume inside the <>.

select volume

Step 5. Type assign letter . Substitute the new drive letter with the new letter for the drive inside the <>. Done. After finishing, you can close the command prompt.

assign letter

You can assign different letters for your drivers in various ways. For example, with Windows Disk Management, and from the command prompt. But EaseUS partition manager gives you total control over your hard drive.

EaseUS Partition Master will assign a drive letter to any drive or partition and much more. Besides changing drive letters, you can also delete, split and wipe partitions. All without having to restart your PC several times or risk losing data. These features allow avoiding complicated procedures when working with multiple partitions.

How Can We Help You

assign drive letter via cmd

Updated by Tracy King 

Tracy became a member of the EaseUS content team in 2013. Being a technical writer for over 10 years, she is enthusiastic about sharing tips to assist readers in resolving complex issues in disk management, file transfer, PC & Mac performance optimization, etc., like an expert.

Read full bio

assign drive letter via cmd

Written by Cedric 

Cedric Grantham is a senior editor and data recovery specialist of EaseUS. He mainly writes articles and how-to tips about data recovery on PC and Mac. He has handled 10,000+ data recovery cases and is good at data recovery of NTFS, FAT (FAT32 and ExFAT) file systems, and RAID structure reorganization.

Product Reviews

 Product Reviews

I love that the changes you make with EaseUS Partition Master Free aren't immediately applied to the disks. It makes it way easier to play out what will happen after you've made all the changes. I also think the overall look and feel of EaseUS Partition Master Free makes whatever you're doing with your computer's partitions easy.

Partition Master Free can Resize, Move, Merge, Migrate, and Copy disks or partitions; convert to local, change label, defragment, check and explore partition; and much more. A premium upgrade adds free tech support and the ability to resize dynamic volumes.

It won't hot image your drives or align them, but since it's coupled with a partition manager, it allows you do perform many tasks at once, instead of just cloning drives. You can move partitions around, resize them, defragment, and more, along with the other tools you'd expect from a cloning tool.

Related Articles

How to Split Partitions with EaseUS Partition Master?

author icon

How to Test NVMe I/O Speed on Windows and Mac? [2024 Checklist]

author icon

Blue Screen of Death Is Changing to Black, How to Fix Windows 11 Black Screen of Death

author icon

How to Upgrade Xbox One X to SSD - Guide with Pictures

author icon

Fix 100% disk usage

partition hard drive in Windows 10

Partition Windows 10

Format USB in CMD

Format USB Using CMD

Convert MBR to GPT

Convert MBR to GPT

Combime partitions

Combine/Merge Partitions

Fix Windows can not be installed to this disk

Selected Disk is GPT

C drive is out of space

C Drive Is Full

Transfer Windows 11/10 to new drive

Transfer Windows 11 to New Drive

Get EaseUS Partition Master

Your best companion for disk partitioning, MBR to GPT/GPT to MBR conversion,even OS migration

assign drive letter via cmd

Copyright ©   EaseUS. All rights reserved.

How-To Geek

How to change a drive letter on windows 10 or windows 11.

You can change your drive letters in Windows 10 and 11 using the Disk Management utility.

Quick Links

What changing a drive letter does, how to change a drive letter, how to fix programs broken by changing a drive letter.

Changing the letter of a drive is easy on Windows 10 and Windows 11, but you should do it as soon as you add the drive to prevent future hassles. Find out how to change a drive letter here.

Windows assigns drive letters alphabetically --- starting with C --- when they're initialized. If you want to change a drive letter, you should do it before you install anything on the drive. Changing a drive letter after programs are installed could break them since there will be references to an installation location that is no longer there.

Windows has gotten pretty smart about updating shortcuts so that programs work after changing a drive letter. Most of your applications' shortcuts will probably be automatically corrected. Unfortunately, Windows isn't as good about updating file associations. You'll have to manually set the default apps associated with files to fix file associations if they were broken by changing the drive letter.

It is possible to change the boot drive letter to something else, but we don't recommend it. Changing C:\ to another letter is likely to result in severe issues, like a PC that cannot boot into Windows at all. Even if it were able to boot, there would be a huge number of programs that would not be able to run.

Technically speaking, while they are commonly called drive letters, each letter actually refers to a partition on a disk. If you have multiple partitions on a single disk, you will need to assign a letter to each partition to make them all accessible. If a disk has just a single partition, it will just have a single letter pointing to that partition. (However, you do not have to assign a letter to each partition. Partitions without drive letters will not appear in File Explorer and elsewhere.)

Changing a drive letter is pretty simple. Click the Start button, type "Disk Management" in the search bar, and then hit Enter.

The program name displayed in the search will not be Disk Management. It will be "Create and format hard disk partitions."

Start menu search showing disk manager result is not called disk manager

You could also hit Windows+X or right-click the Start button, and then click "Disk Management."

Click

Identify the drive you'd like to change in the Disk Management Window. In this example, we'll change the letter of the D:\ drive to J:\. You can right-click the drive on the text list, or on the menu below. Either works.

Right click the drive in the list, or right click the drive on the menu at the bottom.

Select "Change Drive Letter and Paths" in the right-click menu that appears.

Click

In the window that pops up, click "Change."

Click

Select whatever letter you want from the drop-down menu. Then click "Ok."

Select letter from drop down menu, then click

Two popups will warn you about changing your drive letter. Click "Yes" on both of them, and then restart your computer.

Once Windows has restarted, the drive letter should be changed.

Arrow pointing to change drive letter.

There are a few ways you can fix a program broken by changing the drive letter.

Fix The Shortcut

If you're lucky, the only thing that is broken is the shortcut. Fix a shortcut by right-clicking the shortcut on your desktop, and then click Properties.

Click

You need to change the target of the shortcut to the new drive letter.

For example, if GIMP was previously installed at " D :\GIMP 2\bin\gimp-2.10.exe," and you changed the D drive to J, change the target of the shortcut to " J :\GIMP 2\bin\gimp-2.10.exe."

Finalize the change by clicking "Apply" and then "Ok."

Edit the shortcut. Then click

Reinstall the Program

Reinstalling the program will generate new entries in the registry, so everything on the computer will know where to look for the program. Some installers won't like reinstalling directly over existing files, so you may need to rename or delete the old installation first.

Change the Drive Letter Back

If you changed the drive letter of a drive with a lot of programs installed, it might be easier to change the drive letter back. Changing the drive letter back should automatically fix any programs and file associations that were broken.

Edit the Registry

You can break programs, or even Windows itself, by editing the registry. Be careful, and learn about how to edit the registry before you try it. Make sure you backup the Windows registry first. You should not attempt this method unless you have no other options.

Windows, and a lot of programs, track where programs are installed via the Windows registry. It is possible to manually adjust the registry to fix broken programs. Keep in mind that there could be dozens of registry entries you need to edit. A program like GIMP can have registry entries for the context menu, for the "Open With" menu, for any file associations, and for the location of its executables. Other programs may only have a few entries related to where it is installed.

If you're not deterred, here's how you do it.

First, you need to know where the program was previously installed. In this case, the program was installed to the "D:\GIMP 2" folder, and the executables were found the "D:\GIMP 2\bin" sub-folder. It is now located at "J:\GIMP 2" instead.

We need to update the registry to reflect the change in location. Click the Start button, type "regedit" into the search bar, right-click Regedit, and click "Run as administrator."

Click

In Regedit, hit Ctrl+F to bring up a search window. Type in the old location for the program you're trying to fix --- "D:\GIMP 2" for our example --- then click "Find Next."

Click

Once Regedit has found something with "D:\GIMP 2" as part of a path, it'll show it to you. Here is an example from the GIMP search.

Some of the GIMP search results found in the registry.

To actually change them, double click the name of the registry entry you want to modify. Then change the drive letter to J, or whatever you chose. If you didn't otherwise move the folder, leave the rest of the path alone. Then click "Ok."

Change the drive letter in Value Data.

You'll need to repeat this multiple times. To find the next result using your search term, you can hit the F3 key. There will be a popup once you've found all of the entries.

Changing drive letters can be a simple way to customize your PC. Do it before you install anything on the drive, however. You'll prevent any problems before they occur, and probably save yourself quite a bit of troubleshooting.

At the edge of tweaking

Advertisement

Change the drive letter in the command prompt

  • Open an elevated command prompt .
  • Type diskpart .

Windows 10 Diskpart List Volume

You are done.

Change the drive letter in PowerShell

  • Open an elevated PowerShell instance .

Windows 10 PowerShell Get Partition

For example, the command can look as follows:

PowerShell Assign Drive Letter

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!

Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram , Twitter , and YouTube . View all posts by Sergey Tkachenko

One thought on “How to Change Drive Letter in Windows 10”

Really thank you this steps very helpful

Leave a Reply Cancel reply

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

transparent

Privacy Overview

css.php

How to change drive letter on Windows 11

Here are four ways to assign a different letter to a drive on Windows 11.

Avatar for Mauro Huculak

On Windows 11 , a “drive letter” is automatically assigned to each internal storage, USB drive, DVD drive, and map network drive to identify the volume and make it available on File Explorer or other applications. However, you can change the drive letter to anything you want without deleting the data on the storage. For instance, if you want a drive to use a specific letter related to the content, or the system tries to assign a letter already in use, preventing the storage from appearing on File Explorer and apps.

Whatever the reason, on Windows 11, you can assign a different drive letter in at least four ways using the Settings app, Disk Management, Command Prompt, and PowerShell.

A drive letter (or device letter) can be any character from the English alphabet. However, you cannot use the “C:” because it’s reserved for the main storage that contains the installation. Also, “A:” and “B:” are reserved letters that used to be assigned automatically to floppy drives.

This guide will teach you how to assign a new drive letter on Windows 11.

Change drive letter on Windows 11

  • Change drive letter from Disk Management on Windows 11

Change drive letter from Command Prompt on Windows 11

Change drive letter from powershell on windows 11.

To change the drive letter on Windows 11, use these steps:

Open Settings on Windows 11.

Click on System .

Click the Storage tab.

Under the “Storage management” section, click the “Advanced storage settings” option.

Click on Disks & volumes .

Open Disks & volumes

Select the drive with the volume with the letter to change.

Select the volume and click the Properties button.

Open driver properties

Click the “Change drive letter” button.

Change drive letter

Select the new drive letter for the device connected to Windows 11.

Assign drive letter on Windows 11

Click the OK button.

Once you complete the steps, the system will change the drive’s letter on Windows 11.

Change drive letter from Disk Management

To change the drive letter with Disk Management, use these steps:

Open Start .

Search for Create and format disk partitions and click the top result to open the Disk Management tool.

Right-click the volume and select the “Change Drive Letter and Paths” option.

Change drive letter and paths

Click the Change button.

Disk Management change drive letter

Select the “Assign the following drive letter” option.

Choose a different letter for the drive.

Disk Management assign new drive letter

Click the OK button again.

After completing the steps, the drive will appear in File Explorer with the new letter.

To add a new drive letter with Command Prompt, use these steps:

Search for Command Prompt , right-click the result, and select the Run as administrator option.

Type the following command to launch diskpart and press Enter :

Type the following command to list the volumes and press Enter :

Type the following command to select the volume (drive) to change the letter and press Enter :

In the command, change “2” for the number corresponding to the storage you want to change the letter.

Type the following command to change the drive letter on Windows 11 and press Enter :

In the command, change “H” for the letter you want to use with the drive.

DiskPart change drive letter

Once you complete the steps, the diskpart tool will assign the new letter to the storage.

To change a Windows 11 drive letter with PowerShell, use these steps:

Search for PowerShell , right-click the result, and select the Run as administrator option.

Type the following command to identify the hard drive to change the letter and press Enter :

Type the following command to assign or change the drive letter to internal or external and press Enter :

In the above command, change “0” with the disk number of the drive you want to format and “F:” with the letter you wish to assign to the storage.

PowerShell change drive letter

After completing the steps, the drive will have a new letter assignment. If the drive was previously missing, it will appear in File Explorer.

Avatar for Mauro Huculak

Mauro Huculak is a Windows expert and the Editor-in-Chief who started Pureinfotech in 2010 as an independent online publication. He is also been a Windows Central contributor for nearly a decade. Mauro has over 12 years of experience writing comprehensive guides and creating professional videos about Windows, software, and related technologies, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter) , YouTube , LinkedIn and About.me .

  • How to upgrade Windows 7 to Windows 10 using clean install process
  • How to reset Settings app on Windows 10

We hate spam as much as you! Unsubscribe any time Powered by follow.it ( Privacy ), our Privacy .

  • Test Automation
  • Performance Testing
  • Cyber Security Testing
  • ETL Testing
  • Multilingual NLP Assurance
  • Mobile App and Web Testing
  • IV&V and Regulatory Assurance
  • PoS Testing
  • Accessibility Testing
  • Service Virtualization
  • XR Assurance
  • Digital Assurance
  • Cloud Migration Testing
  • IoT Assurance
  • Drone Assurance
  • Storm Readiness Testing
  • Real-Time Systems
  • Test Environment Management
  • Testing of AI
  • Other ERP Packages
  • Google Cloud
  • AI Data Services
  • Mobile and Web Dev
  • DevOps Transformation
  • Serverless Cloud Native Development
  • Cloud Transformation and Migration Strategy
  • API Integration Services
  • Business AI
  • Modeling Optimization
  • Data Governance Services
  • Learning Platform Development
  • Video Encoding, Streaming and Player Development
  • Instructional Design
  • Content Remediation Services
  • Medical Devices
  • Retail & Consumer Goods
  • Banking & Financial Services
  • Capital Markets
  • Media & Entertainment
  • Managed Testing Services
  • Managed Crowd Testing
  • Project-Based Testing
  • Strategic Consultancy
  • Global Delivery
  • Risk-Based Testing
  • Test.Predictor
  • Test.Consolidator
  • Keysight Technologies
  • White Papers
  • Case Studies
  • Podcast: The Testing Show
  • Technical Hub
  • Categories & Tags
  • Leadership Team
  • Diversity & Inclusion

How to assign a drive a letter using Diskpart

Industries top insights, delivered to your inbox.

Introduction:

Windows volume drive letters can be altered from the command line using Diskpart.

Requirements:

Access to the Windows command line.

From your taskbar, start a search for

Enter the command:

Example output:

but replace “2” with the desired volume number. Enter the command:

but replace the “q” with any desired letter that is not already being used by another volume.

More Information:

within  diskpart  for more information.

New call-to-action

Other Technical Hub

Introduction: CSV files, or comma-separated-files, are used for storing data. They are a very commonly used text file format. Requirements:…

Introduction: Most SQL tables are non-temporary. Temporary tables can be used as well for convenience, or special purposes. Requirements: An…

Introduction: Relational Databases using SQL (Structured Query Language) may have a need for certain operations to be performed, or triggered,…

Want to talk with a test automation expert?

assign drive letter via cmd

How to Activate Missed Call Alert on Airtel Kenya

Safaricom 5g vs airtel kenya 5g: how do they compare which should you get, airtel voice bundle expiry: the truth behind the disappearing voice bundles, kabokisi emerges as champion in mtn uganda's momo hackathon 2023, from mifi woes to fiber wonders: how covid 19 unleashed uganda's unlimited home internet revolution, 10 practical settings to boost your pixel smartphone experience, 10 settings you should change on your redmi smartphone, [updated] redmi note 13 series in kenya: here's pricing and availability, m-pesa tightens security: no more transfers to unregistered accounts, best password managers for android in 2024, redmi buds 5: what's new with these budget tws, disable video and audio ad autoplay on firestick, setup and personalize roku remote shortcuts on roku remote pro, these are the best bluetooth speaker under ksh 10,000 to buy in kenya in 2024, oraimo bass go boom wants to give you premium party sound on a budget, mtn momo users can now access savings and loan service via *165*5# menu, how to pay engineers board of kenya subscription fee in 2024, here are the updated m-pesa transaction charges in 2024, m-pesa customer care: here's how to get in touch, ura introduces ussd code *285# for tax payments and tin services, enable continuous recording to microsd card on wyze cams, firefox relay⁩ is your answer to spam mail and a messy inbox, google chrome gets ai features to help organise tabs, generate themes and write better, how to run windows programs or .exe files using wine on chromebook, how to enable or disable autoscrolling in final cut pro, whatsapp cracks the whip on unofficial forks: time to ditch gbwhatapp and fmwhatsapp, watch twitter or x videos on your tv, how to create songs using ai through microsoft copilot, trying out the new ai art generator in canva, send yourself files on whatsapp, what really happened to wyze camera security incident according to wyze, how to maximise the battery life of your pixel watch, anker soundcore p20i true wireless earbuds: bass-boosted budget buds, why apple is temporarily stopping the sales of select apple watches.

assign drive letter via cmd

  • Privacy Policy
  • Terms of Use

assign drive letter via cmd

How to Format a Drive Using Command Prompt and DiskPart

assign drive letter via cmd

Have you ever encountered a situation where you need to format a drive but the traditional methods seem to fail? Fear not, as in this guide, we will explore an alternative way to format a drive using Command Prompt and DiskPart. While it may sound intimidating, this method offers more control and flexibility, allowing you to perform advanced formatting options. So, let’s dive in and discover how to format a drive using these powerful command-line tools.

Understanding Command Prompt and DiskPart

Before we proceed with the formatting process, it’s essential to understand the tools we’ll be using. Command Prompt is a command-line interpreter that allows you to interact with your computer by typing commands. It provides a way to execute various tasks, such as managing files, running programs, and configuring system settings.

DiskPart, on the other hand, is a command-line disk partitioning utility that enables you to manage storage devices, including formatting drives, creating partitions, and assigning drive letters.

Related: How to format USB drive or Memory card on Chromebook

When using Command Prompt and DiskPart, it’s important to exercise caution as any incorrect commands or operations can lead to data loss. Make sure to double-check your commands and back up any important data before proceeding.

Now that we have a basic understanding of the tools involved, let’s move on to the next section to learn how to format a drive using Command Prompt and DiskPart.

Formatting a Drive Step-by-Step

Step 1: open command prompt.

To begin, open Command Prompt by pressing the Windows key + R, typing “cmd” in the Run dialog box, and hitting Enter. This will launch the Command Prompt window.

Step 2: Launch DiskPart

In the Command Prompt window, type “diskpart” and press Enter. This will start the DiskPart utility, and you’ll see a new prompt that says “DISKPART>” .

assign drive letter via cmd

Step 3: List Available Disks

Type “list disk” in the DiskPart prompt and press Enter. This command will display a list of all the disks connected to your computer.

assign drive letter via cmd

Related: How to Correctly Format a USB Drive for Your TV

Step 4: Select the Drive to Format

Identify the disk number of the drive you want to format from the list. For example, if you want to format disk 1, type “select disk 1” and press Enter. Be sure to select the correct drive(flash) by checking its storage, you can insert & re-insert to be sure.

assign drive letter via cmd

If you list again ( list disk ), it will have an asterisk before it; list disk

assign drive letter via cmd

Step 5: Clean the Drive

Once you’ve selected the disk to format, type “clean” and press Enter. This command will remove all partitions and volumes on the selected drive, effectively wiping its content.

assign drive letter via cmd

Step 6: Create a New Partition

Next, type “create partition primary” and press Enter. This command will create a new primary partition on the drive. This allows us to be able to store data or information on the drive.

assign drive letter via cmd

Step 7: Format the Partition

To format the newly created partition, type “format fs=ntfs” and press Enter. You can replace “ntfs” with “fat32” or any other desired file system, depending on your requirements. This will take some good time since we are not using the faster option;

Step 8: Assign a Drive Letter

To assign a drive letter to the formatted partition, type “assign letter=X” (replace “X” with your desired drive letter) and press Enter. This will make the drive accessible through the assigned letter in File Explorer.

Step 9: Exit DiskPart

Finally, to exit DiskPart, type “exit” and press Enter. You can now close the Command Prompt window.

Wrapping Up

Formatting a drive using Command Prompt and DiskPart may seem complex at first, but once you understand the process, it becomes a powerful tool for managing your storage devices. Remember to exercise caution and double-check your commands to avoid any unintended data loss. Do let us know in the command section if you have found this article helpful.

LIKE WHAT YOU ARE READING?

Sign up to our newsletter for expert advice and tips of how to get the most out of your tech gadgets.

Subscribing to our newsletter indicates your consent to our Terms of Use and Privacy Policy . You may unsubscribe from the newsletters at any time.

Related Stories

assign drive letter via cmd

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Change a drive letter

  • 4 contributors
Applies To: Windows 11, Windows 10, Windows Server 2022, Windows Server 2019, and Windows Server 2016

If you want to change a drive letter assigned to a drive, or you have a drive that doesn't yet have a drive letter, use Disk Management to change it. You can also mount the drive in an empty folder so that it appears as a folder. For more information, see Mount a drive in a folder .

If you change the drive letter of a drive that already contains Windows or apps, apps might have trouble running or finding the drive. We suggest not changing the drive letter of a drive that already contains Windows or apps.

The following steps show how to change the drive letter.

Open Disk Management with administrator permissions.

In Disk Management, select and hold (or right-click) the volume on which you want to change or add a drive letter and select Change Drive Letter and Paths .

Screenshot showing the Disk Management window with the Change Drive Letter and Paths feature selected.

If you don't see the Change Drive Letter and Paths option or it's grayed out, the volume either isn't ready to receive a drive letter or it's unallocated and needs to be initialized . It might also be that the drive isn't accessible, which is the case with EFI system partitions and recovery partitions. If you've confirmed that your volume is formatted with a drive letter that you can access but you're still unable to change it, that's beyond the scope of this article. We suggest contacting Microsoft Support or the manufacturer of your PC for more help.

To change the drive letter, select Change . To add a drive letter if the drive doesn't already have one, select Add .

Screenshot of the Change Drive Letter and Paths dialog.

Select the new drive letter and choose OK . Then select Yes when prompted about how programs that rely on the drive letter might not run correctly.

Screenshot of the Change Drive Letter or Path dialog that shows how to assign a new drive letter.

Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see: https://aka.ms/ContentUserFeedback .

Submit and view feedback for

Additional resources

assign drive letter via cmd

  • Search the community and support articles
  • Windows Vista
  • Search Community member

Ask a new question

How to automatically assign a drive letter by using the Diskpart.exe command on VISTA based computer

Report abuse.

Inactive profile

Welcome to the Microsoft Windows Vista Communities site.

Driver letter assignment in Windows Vista…

You can use Diskpart to assign driver letters, but it can be complex and cumbersome for the average user.

I’d recommend that you use Disk Management if you would like to assign a driver letter to a given device or volume. Disk Management has an advantage over Diskpart , for the average user, as it is run from a GUI (Graphic User Interface) versus the Command Prompt .

I’ve included instructions outlining how to use Disk Management to change a driver letter. However should you still want to use Diskpart I recommend you review the information found here .

Jared - Support Engineer - MSFT

Was this reply helpful? Yes No

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

Thanks for your feedback.

Replies (2) 

Question info.

  • Norsk Bokmål
  • Ελληνικά
  • Русский
  • עברית
  • العربية
  • ไทย
  • 한국어
  • 中文(简体)
  • 中文(繁體)
  • 日本語

IMAGES

  1. How to Assign and Remove Drive Letter with Diskpart in Windows 10 or 11?

    assign drive letter via cmd

  2. How to Change Drive Letter on Windows 10 Computer? (2022)

    assign drive letter via cmd

  3. Assign Drive Letter Using CMD

    assign drive letter via cmd

  4. How To Assign Letter To Drive In CMD

    assign drive letter via cmd

  5. How to assign permanent letters to drives in Windows

    assign drive letter via cmd

  6. Assign Drive Letter Windows 10

    assign drive letter via cmd

VIDEO

  1. How to Change Drive Letter in Windows 11

  2. How to Change Drive Letter in Windows 11/10

  3. CMD command change letter color how?

  4. How To Change My PC Drive Letter And Paths D,E,F,G,H

  5. CHANGE DRIVE LETTER

  6. How to format and/or assign drive letters using Disk Management in Windows 7

COMMENTS

  1. Manually assigning a drive letter using CMD/Diskpart

    Open up a command prompt (CMD/PowerShell). Type "diskpart" to start up diskpart. You will see the prompt change to "DISKPART>". Type "list vol" to list all available volumes. You can identify the drive by size and file system. Additionally, the volume doesn't currently have a drive letter. Select the volume using "sel vol <number>".

  2. How to Use the Diskpart Utility to Assign and Remove Drive Letters

    You'll need to start by opening an administrator mode command prompt -- type cmd into the search box, and then right-click and choose Run as administrator, or use the CTRL + SHIFT + ENTER keyboard shortcut. Once there, run the diskpart command, and then type in the following to list out the volumes on your system. list volume

  3. How to assign permanent letters to drives on Windows 10

    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...

  4. How To Assign Letter To Drive In CMD

    Step 1: There are two ways to open the command line. Click on the Start menu, type CMD in the search box, then right-click on it and select Run as administrator. Or press WIN + R, type CMD, and press Enter. Type diskpart in CMD to start it. Step 2: Type list volume and press Enter. Step 3: Type Select volume n and press Enter.

  5. How to Remove and Assign Drive Letters in Windows with Diskpart

    First, search for the command prompt in the Start menu, right click on it and select the option "Run as administrator." If you are using Windows 8, press "Win + X" to open the power user menu and select the option "Command Prompt (Admin)." The above action will open the command prompt window with administrative rights.

  6. [Free Guide]: Use Diskpart Assign Drive Letter in Windows 11, 10, 8, 7

    Step 1. Press "Windows + R". Then, type "diskpart" and press Enter. Step 2. Type in "list volume" and press Enter. Now, you can see all volumes on PC. Step 3. Type in "select volume 7" and press Enter (here take volume 7 as an example). Step 4. Finally, type in"assign letter=F" and press Enter.

  7. How to Change Drive Letter with CMD Windows 10

    To change or assign drive letter in CMD, you can firstly open Diskpart utility in Command Prompt. Check the steps below. Step 1. Open CMD in Windows 10 You can press Windows + R, type cmd, and press Ctrl + Shift + Enter to open elevated Command Prompt. Step 2. Open Diskpart tool

  8. Assign Drive Letters to Folders in Windows

    Method 1: Use the subst DOS Command Method 2: Use the psubst Utility Method 3: Use a Graphical Tool For this example, we will assign a drive letter for the following folder: C:\Users\Lori Kaufman\Documents\My Work. Open the Start menu and enter " cmd.exe " (without the quotes) in the Search programs and files box.

  9. How to Assign / Change Drive Letter in Windows 10

    1 How to Change Drive Letter in Windows 10 via Disk Management 2 How to Change Drive Letter in CMD using a DISKPART Disk Management Command 3 How to Change Drive Letter in Windows...

  10. How to Change a Drive Letter in Windows

    To assign or change the drive letter for a disk or partition, simply right-click on it and choose Change Drive Letter and Paths. A window will pop up with the current drive letter, if there is one, and a couple of options. Here you want to click on Change. Next, you will choose the new drive letter from the dropdown list.

  11. 3 Simple Ways to Assign a Drive Letter in Windows 10/8/7

    This post covers three ways to assign a drive letter by using Disk Management, a partition manager, and Diskpart in CMD. Free Download Windows 11/10/8/7 100% Secure Updated by Tracy King on Nov 23, 2023 Written by Cedric What Is a Drive Letter A drive letter is an alphabetic character identifying a physical computer disk or drive partition.

  12. How to Change a Drive Letter on Windows 10 or Windows 11

    Click the Start button, type "Disk Management" in the search bar, and then hit Enter. The program name displayed in the search will not be Disk Management. It will be "Create and format hard disk partitions." You could also hit Windows+X or right-click the Start button, and then click "Disk Management."

  13. Change and Assign Drive Letter in Windows 10

    1 Press the Win + R keys to open Run, type diskmgmt.msc into Run, and click/tap on OK to open Disk Management. 2 Right click or press and hold on the drive (ex: "F") you want to add or change the drive letter, and click/tap on Change Drive Letter and Paths. (see screenshot below) 3 Click/tap on the Change button. (see screenshot below)

  14. How to Manually Assigning A Drive Letter Using CMD / Diskpart

    This Tutorial Helps to How to Manually Assigning A Drive Letter Using CMD / Diskpart00:00 Intro00:09 Open Command Prompt00:20 Enter Diskpart Command00:50 Ass...

  15. How to Change Drive Letter in Windows 10

    Let's review them. To change the drive letter in Windows 10, do the following. Press the Win + X keys together. In the menu, select Disk Management. In Disk Management, right-click on the partition whose drive letter you would like to change. Select Change Drive Letter and Paths in the context menu.

  16. How to change drive letter on Windows 11

    Select the "Assign the following drive letter" option. Choose a different letter for the drive. Click the OK button. Click the OK button again. After completing the steps, the drive will appear in File Explorer with the new letter. Change drive letter from Command Prompt on Windows 11. To add a new drive letter with Command Prompt, use ...

  17. Assign a mount point folder path to a drive.

    Using the assign command, you can change the drive letter associated with a removable drive. You can't assign drive letters to boot volumes, or volumes that contain the paging file. Also, you can't assign a drive letter to an Original Equipment Manufacturer (OEM) partition, EFI system partition, or any GPT partition other than a basic data ...

  18. How to assign a drive a letter using Diskpart

    Enter the command: select volume 2. but replace "2" with the desired volume number. Enter the command: assign letter=q. but replace the "q" with any desired letter that is not already being used by another volume.

  19. How to Format a Drive Using Command Prompt and DiskPart

    Step 8: Assign a Drive Letter. To assign a drive letter to the formatted partition, type "assign letter=X" (replace "X" with your desired drive letter) and press Enter. This will make the drive accessible through the assigned letter in File Explorer. Step 9: Exit DiskPart. Finally, to exit DiskPart, type "exit" and press Enter. You ...

  20. Change a drive letter

    In Disk Management, select and hold (or right-click) the volume on which you want to change or add a drive letter and select Change Drive Letter and Paths. Tip If you don't see the Change Drive Letter and Paths option or it's grayed out, the volume either isn't ready to receive a drive letter or it's unallocated and needs to be initialized.

  21. How To Manually Assign Or Change A Drive Letter Using Command Prompt

    How to change drive letter using cmd/Diskpart on Windows 10/11Type "diskpart"Type "list vol"Select the volume using "sel vol number"Assign the drive letter u...

  22. How To Manually Assign a Drive Letter using CMD in Windows 11

    Here in this quick video tutorial, I will show you guys how to manually assign a drive letter using your CMD(Command Prompt) Windows 11.Note: This video has ...

  23. How to automatically assign a drive letter by using the Diskpart.exe

    Using Disk Management to change drive letter assignment… 1. Click Start, right-click Computer, and select Manage. 2. Click on Continue or provide Administrator privileges if prompted. 3. In the left pane click on Disk Management which is located under the Storage category. 4. If you wish to change the drive letter assignment for a removable storage device or volume: