How to Set or Remove Volume Read-Only or Write-Protect on Windows 11, 10, 8, or 7?

Being a Windows user, you might have come across many features and tools that Microsoft has rolled out with time in order to enhance the user experience. A similar feature is that you can use the volume as the read-only mode which is what we are going to discuss here in this risewindows article.

Why do you need to set a Volume as Read-Only Mode?

Before getting into the steps, let us understand why you need to set the Volume to Read-only Mode. This feature comes in handy in case you share your computer with an external source, USB flash drive, or to a friend or colleague. It is recommended you set your drive to the read-only format and then share it with the other parties so your important data remains safe. Making your storage device read-only protects your data, and even a virus will not affect it. even though others can open and read it if shared by you. You are going to learn the following:-

  1. How to Set a Volume Read-Only or Write Protect in Windows 11 / 10 / 8 / 7?
  2. How to Remove Read-Only or Write Protect Mode from a Volume in Windows 11 / 10 / 8 / 7?

How to Set a Volume Read-Only or Write-Protect on Windows 11 / 10 / 8 / 7?

Use the following steps to set a volume as read-only on Windows computer:-

Step 1: Go to the elevated Command Prompt on your computer.

You can do so by going to the Run dialog box by simultaneously Windows Logo[keybt]/ + [keybt]R. Now, type cmd and then press Ctrl + Shift + Enter. The command prompt will now run as an administrator.

Click Yesif User Account Control (UAC) dialog box prompts.

Step 2: Type the following in the Command Prompt and press Enter:-

diskpart

Step 3: Now, type the following in the DISKPART prompt and press Enter:-

list volume

After you complete the above steps, all the externally attached volumes will now be listed on your computer.

Step 4: Write-down the volume number you to write protect. After you’ve done it, type the following and press Enter:-

select volume volume-number

Note: Now refer to the details that you have noted before and replace the volume number with the one that you want to write-protect. For instance, we are going to make write protect or read-only to Volume 2. Hence, my command will be “select volume 2.”

Step 5: Now, type the following and press Enter:-

attributes volume set readonly

Now a message will appear on your DISKPART that says “Volume attributes set successfully.”

The above steps will help you write protect your selected disk.

How to Remove Read-Only or Write Protect Mode from a Volume on Windows 11 / 10 / 8 / 7?

Use the following steps to remove read-only or write-protection from a volume on Windows computer:-

Step 1: Go to the elevated Command Prompt on your computer.

You can do so by going to the Run dialog box by simultaneously Windows Logo[keybt]/ + [keybt]R. Now, type cmd and then press Ctrl + Shift + Enter. The command prompt will now run as an administrator.

Click Yesif User Account Control (UAC) dialog box prompts.

Step 2: Type the following in the Command Prompt and press Enter:-

diskpart

Step 3: Now, type the following in the DISKPART prompt and press Enter:-

list volume

After you complete the above steps, all the externally attached volumes will now be listed on your computer.

Note: You can go ahead and write protect with the help of the disk command. However, you will not be able to protect external volumes using these commands.

Step 4: Write-down the volume number you don’t want to be write protected. After you’ve done it, type the following and press Enter:-

select volume volume-number

Note: Now refer to the details that you have noted before and replace the volume number with the one that you want to write-protect. For instance, we are going to make write protect or read-only to Volume 2. Hence, my command will be “select volume 2.”

Step 5: Type the following and press Enter on your keyboard:-

attributes volume clear readonly

The above steps will help you go back to the previous settings and remove the write-protected setting from the volumes.

That is it.

You guys are amazing; keep reading, learning and growing.

 

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: