Run PowerShell with administrator privileges
Search -> powershell
Windows PowerShell -> Right click -> Run as administrator
List partitions with drive letters
GET-WMIOBJECT win32_logicaldisk | FORMAT-TABLE
Make a note of the drive letter that you would like remove. You will need this later to permanently remove the drive letter.
Here we are removing the letter F:
diskpartin PowerShell then press Enter
List the disks on your PC
DISKPART>and press Enter
Disk ### Status Size Free Dyn Gpt -------- ------------- ------- ------- --- --- Disk 0 Online 476 GB 10 MB * Disk 1 Online 931 GB 0 B * Disk 2 Online 3726 GB 0 B * Disk 3 Online 8 GB 0 B *
Select the disk that contains the partition for which you would like to remove the drive letter
Here we are selecting Disk 0
sel dis 0
List the partitions on the selected disk
Partition ### Type Size Offset ------------- ---------------- ------- ------- Partition 1 Recovery 300 MB 1024 KB Partition 2 System 99 MB 301 MB Partition 3 Reserved 128 MB 400 MB Partition 4 Primary 475 GB 528 MB Partition 5 Recovery 450 MB 476 GB
Select the partition that requires the removal of the drive letter
Here we are selecting the Recovery partition 5
sel par 5
Remove the drive letter for the partition
The above will remove the drive letter. Qhov rais will reassign the drive letter on reboot as the drive letter assignment will be in the registry.
If you would like to permanently remove the drive letter, then the registry needs to be modified.
IMPORTANT NOTE: Modifying the registry incorrectly can permanently damage your computer. Please backup the registry and important files before continuing.
Open the Registry Editor
Search -> regedit
Click yes for the User Account Control prompt
Navigate to the branch for drive letter assignment in the Registry Editor
Find the letter that you would like to remove from the list
Here we are removing the drive letter F:, therefore we want to delete
Right click the entry that you would like to delete -> Delete
Restart the PC to apply the changes