How To Enable or Disable Write Protection for a Disk Drive

When write protection is enabled on a disk drive, its contents cannot be modified or duplicated in any way. This is what makes write protection such a handy feature. Write protection can be enabled or disabled for any and all disk drives on all versions of the Windows Operating System. Before you continue, just to be on the safe side, create a system restore point so that if something goes wrong, you can revert to the restore point. see how (the restore guide is aimed at Windows 10) but it also works for the other versions of Windows.

How to enable or disable write protection for a removable disk drive

The following methods can be used to enable or disable write protection for a removable disk drive:

Method 1: Use a physical switch

Many removable disk drives such as MicroSD card adapters and USB flash drives come with dedicated physical switches that can be toggled to enable or disable write protection for them. These switches are most commonly located on the sides of the storage medium in question. These switches also override any write protection preferences that are set on the computer they are connected to.

2015-12-23_162754

Method 2: Enable or disable write protection for removable disk drives via the Registry Editor

You can also enable or disable write protection for ALL removable disk drives, and to do so, you will need to fiddle around with your computer’s Registry Editor. It should be keenly noted that using this method will turn write protection on or off for ALL removable disk drives – from USB flash drives to flash memory cards.

Press Windows Logo key + R to open a Run dialog. Type regedit into the Run dialog and press Enter.

2015-12-23_163219

Navigate to the following directory in the left pane of the window:

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices

2015-12-23_165937

Note: If the Removable Storage Devices key does not exist in your case, right-click on Windows, hover over new, click on Key, name it RemovableStorageDevices and press Enter

Right-click on RemovableStorageDevices, hover over New, click on Key, name it {53f5630d-b6bf-11d0-94f2-00a0c91efb8b} and press Enter.

2015-12-23_170259

Click on {53f5630d-b6bf-11d0-94f2-00a0c91efb8b} to expand it in the right pane. To enable write protection for all removable disk drives, right-click on an empty area in the right pane, hover over New, click on DWORD (32-bit) value.

2015-12-23_170628

Name the new value Deny_Write, press Enter, Right-click on the Deny_Write value, click on Modify, type 1 into the Value Data field and click on OK. To disable write protection for all removable disk drives, simply right-click on the Deny_Write value, click on Delete and click on Yes to confirm the action.

Close the Registry EditorRestart your computer, and the changes will be applied once it boots up.

2015-12-23_170855

How to enable or disable write protection for any disk drive

To enable or disable write protection on Windows 10 for any disk drive – be it a removable storage device or a disk drive on an HDD or SSD – you need to go through the following steps: (Don’t do it for your Main C:\ Drive). This will result in locking up your drive and since it is being used, while you are on the computer (it may not work) these methods are recommended only for external, or secondary drives. If you want to protect your data, you can either encrypt it or use a password on logon.

Right-click on the Start Menu button to open the WinX Menu Click on Command Prompt (Admin) in the WinX Menu. OR Click Start and Type cmd then right click cmd and choose Run As Administrator

Type diskpart into the elevated Command Prompt and press Enter.

Type list disk into the elevated Command Prompt and press Enter.

The Command Prompt will now display a list of all disks connected to your computer. Make note of the Disk ### of the disk you want to enable/disable write protection for. You can use the size of the disks to determine which one you want to enable/disable write protection for.

Type select disk # into the elevated Command Prompt, substituting # with the Disk ### (such as 1) of the disk you want to enable/disable write protection for, and press Enter.

To enable write protection for the selected disk, type in attributes disk set readonly and press Enter. To disable write protection for the selected disk, type in attributes disk clear readonly and press Enter.

Once the command has been executed, write protection will have been enabled or disabled on the selected disk. You can now close the elevated Command Prompt.

write protection disk

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.
Back to top button

Expert Tip

How To Enable or Disable Write Protection for a Disk Drive

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested