Welcome to our series of tutorials on the Microsoft Windows 10 that help you understand the features of the upcoming Windows 10.
This tutorial will show you how to use Microsoft Diskpart feature to enable or disable write protection on a hard drive for all users in Windows 10.
This method will also work for older versions of Windows like Vista, Windows 7 and Windows 8.
Write protection (read-only) on a disk prevents anyone from intentionally or accidentally changing its contents. This effectively means you cannot use the drive in any sort of meaningful way.
Open up the elevated command prompt (command prompt with administrator privileges)
- Type diskpart and press Enter.
- Type list disk and press Enter.
- Note the number next to the disc you want to enable or disable write protection for. It would read like this disk 1
- Now type select disk # where # is the number you noted in step above
- To enable write protection for the disk type: attributes disk set readonly
- To disable write protection for the disk type: attributes disk clear readonly
NOTE: You can’t write protect the Windows drive.