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.
To fix various Windows 10/11 problems, we recommend Outbyte PC Repair:
This software will repair common computer errors, protect you from file loss, malware damage, hardware failure, and optimise your computer for peak performance. In three simple steps, you can resolve PC issues and remove virus damage:
- Download Outbyte PC Repair Software
- Click Start Scan to detect Windows 10/11 issues that may be causing PC issues.
- Click Repair All to fix issues with your computer's security and performance.
This month, Outbyte has been downloaded by 23,167 readers.
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.
[thrive_2step id=’39736′][/thrive_2step]
Can’t believe it still needs to use dos prompt to complete this simple task. Should just set it in the property of the hard disk.
I couldn’t do it with my protected USB drive in windows 10
These options are not available in windows 10, the example used here was for windows 7 btw.
Does not work in Win 10, disc is still write protected, could it be how you exit diskpart ? There were no instructions on this, I just clicked on the x in top right corner.
Does not work:
Copyright (C) 1999-2013 Microsoft Corporation.
On computer: XXXXXLP002
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
——– ————- ——- ——- — —
Disk 0 Online 931 GB 842 MB *
Disk 1 Online 29 GB 0 B
Disk 2 No Media 0 B 0 B
Disk 3 Online 1862 GB 0 B
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART> attributes disk
Current Read-only State : Yes
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
DISKPART> attributes disk clear readonly
Disk attributes cleared successfully.
DISKPART> attributes disk
Current Read-only State : Yes
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No
DISKPART>
doesn’t work on windows 10