Home  >  Article  >  How to remove a drive letter on Windows 11

How to remove a drive letter on Windows 11

PHPz
PHPzforward
2023-04-13 15:49:132037browse

How to remove a drive letter on Windows 11

Windows 11 automatically assigns a drive letter to every connected device—including network drives. However, if you don't change the drive letter, you may need to remove the drive letter on Windows 11. Maybe you want to hide the drive from users on your system, or maybe Windows mistakenly assigned a drive letter to a hidden boot partition.

There are a few different ways to do this. You can use the Settings app, Disk Management, or PowerShell. We'll start by deleting the drive letter through Settings.

To remove a drive letter through settings on Windows 11:

  1. Press the Windows keyStart "Start ” menu and click “Settings” . How to remove a drive letter on Windows 11
  2. Click System in the left column and Storage on the right. How to remove a drive letter on Windows 11
  3. Scroll down to the Storage Management section and expand the Advanced Storage Settings option.
  4. Click Disks and Volumes. How to remove a drive letter on Windows 11
  5. Find the drive with the drive letter you want to delete and click the "Properties " button. How to remove a drive letter on Windows 11
  6. Click the Change Drive Letter button. How to remove a drive letter on Windows 11
  7. Change the drive letter to No option from the drop-down menu and click OK. How to remove a drive letter on Windows 11

How to use Disk Management to remove a drive letter on Windows 11

If you don’t want to use Settings to remove a drive letter, you can use the familiar Disk Management utility .

To remove a drive letter using Disk Management:

  1. Open the Start menu.
  2. Type Disk Management and click Create and Format Hard Drive Partition under Best Match. How to remove a drive letter on Windows 11
  3. Right-click the volume whose drive letter you want to remove and select Change drive letter and path from the menu. How to remove a drive letter on Windows 11
  4. Select the drive letter and click the Delete button.
  5. Click OK on the verification message. How to remove a drive letter on Windows 11

How to remove a drive letter using Windows PowerShell

If you prefer to manage your system through Terminal commands, you can use PowerShell to remove a drive letter.

To remove a drive letter on Windows 11 using PowerShell:

  1. Press the Windows key to open the Start menu.
  2. Type PowerShell and click the Run as administrator option on the right. How to remove a drive letter on Windows 11
  3. Type the following command to identify the hard drive.
    1. Get-Disk
  4. Next, enter the following command to identify the partition whose drive letter you want to remove.
    Get-Disk 1 | Get-Partition

    Note: Change the number in the command to the disk number you want to remove the letters from.

  5. Enter the following command to change the disk number and partition containing the drive you obtained from the Get-Disk command.
    Remove-PartitionAccessPath -DiskNumber 1 -PartitionNumber 1 -Accesspath D:

    How to remove a drive letter on Windows 11

#After running the last command, PowerShell will remove the drive letter from the drive you selected and make it inaccessible.

The above is the detailed content of How to remove a drive letter on Windows 11. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete