Enable or Disable Disk Write Protection in Windows  

Page 1 of 6 123 ... LastLast
    Enable or Disable Disk Write Protection in Windows

    Enable or Disable Disk Write Protection in Windows

    How to Enable or Disable Write Protection for a Disk Drive in Windows
    Published by Category: Hardware & Drivers
    13 Jan 2019
    Designer Media Ltd


    How to Enable or Disable Write Protection for a Disk Drive in Windows


    Write protection (read-only) on a disk prevents the contents on the disk from being changed.

    There are many reasons for how a disk is write protected.

    This tutorial will show you different ways to enable or disable write protection for a hard drive, memory card, or USB drive for all users in Windows 7, Windows 8, and Windows 10.

    You must be signed in as an administrator to be able to do the options below.

    You will not be able to write protect the Windows drive.


     CONTENTS:

    • Option One: Enable or Disable Write Protection for USB Drive or Memory Card with Physical Switch
    • Option Two: Enable or Disable Write Access for All Removable Disks in Group Policy
    • Option Three: Enable or Disable Write Protection for Disk using Diskpart Command
    • Option Four: Enable or Disable Write Protection for USB Drives using a REG file
    • Option Five: Allow or Deny Write Access to Removable Drives not Protected by BitLocker in Group Policy
    • Option Six: Allow or Deny Write Access to Fixed Data Drives not Protected by BitLocker in Group Policy


    EXAMPLE: "The disk is write-protected." error message
    This is the usual error message a user will get when trying to format or write (ex: copy) something to a write-protected disk.
    Name:  Format_write-protected.jpg
Views: 354467
Size:  12.3 KB
    Name:  This_disk_is_write-protected.jpg
Views: 357632
Size:  39.1 KB

    EXAMPLE: Error 0x8000FFFF: Catastrophic failure
    This is an error message a user will get when trying to create a new folder on a write protected disk in Windows 10.
    Name:  error_0x8000FFFF_Catastrophic_failure.png
Views: 356861
Size:  18.7 KB






    Enable or Disable Disk Write Protection in Windows OPTION ONE Enable or Disable Disk Write Protection in Windows
    Enable or Disable Write Protection for USB Drive or Memory Card with Physical Switch


    Some USB flash drives and memory cards have a physical switch that allows you to lock or unlock write-protection for it. The location of a switch (if available) on a USB flash drive will vary.

    If locked, this will override any other option below, and the device will be write protected on all PCs you connect it to until unlocked.

    1. Examine the USB flash drive or memory card for a switch like below. If available, you can move the switch to the locked or unlocked position to enable or disable write protection for the device.

    Name:  write-protection_memory_card.jpg
Views: 362360
Size:  43.5 KB

    Name:  USB_flash_drive_write-protect_switch.jpg
Views: 359382
Size:  10.4 KB





    Enable or Disable Disk Write Protection in Windows OPTION TWO Enable or Disable Disk Write Protection in Windows
    Enable or Disable Write Access for All Removable Disks in Group Policy


    This option is only applied when removable disks are connected to the PC that the policy is set on.





    Enable or Disable Disk Write Protection in Windows OPTION THREE Enable or Disable Disk Write Protection in Windows
    Enable or Disable Write Protection for Disk using Diskpart Command


    This option is only applied when removable disks are connected to the PC that the policy is set on.

    See also: My Disk is Read-only, Help! | Ask the Core Team

    1. Open an elevated command prompt.

    2. In the elevated command prompt, type diskpart, and press Enter. (see screenshots below)

    3. In the elevated command prompt, type list disk, and press Enter. Make note of the disk # (ex: disk 1) for the disk you want to enable or disable write protection for.

    4. In the elevated command prompt, type the command below, and press Enter.

    select disk #

    Substitute # in the command above with the actual disk # from step 3.

    For example: select disk 1

    5. Do step 6 (enable) or step 7 (disable) below for what you would like to do.


     6. To Enable Write Protection for the Disk

    A) In the elevated command prompt, copy and paste the command below, press Enter, and go to step 8 below.

    attributes disk set readonly

    Click image for larger version. 

Name:	Set_Removable_Disk_Read-Only_command.jpg 
Views:	15338 
Size:	113.0 KB 
ID:	10359


     7. To Disable Write Protection for the Disk

    This is the default setting.

    A) In the elevated command prompt, copy and paste the command below, press Enter, and go to step 8 below.

    attributes disk clear readonly

    Click image for larger version. 

Name:	Clear_Removable_Disk_Read-Only_command.jpg 
Views:	10854 
Size:	119.6 KB 
ID:	10357

    8. When successfully finished, you can close the elevated command prompt if you like.






    Enable or Disable Disk Write Protection in Windows OPTION FOUR Enable or Disable Disk Write Protection in Windows
    Enable or Disable Write Protection for USB Drives using a REG file

    The downloadable .reg files below will add and modify the DWORD value in the registry key below.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

    WriteProtect DWORD

    (delete) or 0 = Disable (default)
    1 = Enable



    1. Do step 2 (enable) or step 3 (disable) below for what you would like to do.


     2. To Enable Write Protection for USB Drives

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Enable_Write_Protection_to_USB_drives.reg

    download


     3. To Disable Write Protection for USB Drives

    This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 4 below.

    Disable_Write_Protection_to_USB_drives.reg

    download


    4. Save the .reg file to your desktop.

    5. Double click/tap on the downloaded .reg file to merge it.

    6. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    7. Restart the computer to apply.

    8. You can now delete the downloaded .reg file if you like.






    Enable or Disable Disk Write Protection in Windows OPTION FIVE Enable or Disable Disk Write Protection in Windows
    Allow or Deny Write Access to Removable Drives not Protected by BitLocker in Group Policy






    Enable or Disable Disk Write Protection in Windows OPTION SIX Enable or Disable Disk Write Protection in Windows
    Allow or Deny Write Access to Fixed Data Drives not Protected by BitLocker in Group Policy


    That's it,
    Shawn


  1.    #1

    OK :)
      My ComputerSystem Spec

  2. popeye's Avatar
    Posts : 132
    Windows 8.1 Pro 64-bit
       #2

    Very nice addition to the Tutorials David and Shawn!
      My ComputerSystem Spec

  3.    #3

    I followed this procedure with my windows 10 installation usb. Disk part claimed success but I still cannot format it.

    To clarify I wish to format it so I can install the latest version of windows on the usb using the media creation tool, so I don't have to install so many updates if I ever have to reinstall windows again.

    If what I am attempting to do is simply not possible, by all means let me know.
      My ComputerSystem Spec

  4. Brink's Avatar
    Posts : 37,913
    64-bit Windows 10 Pro build 18865
    Thread Starter
       #4

    Hello Saracen, :)

    Are you getting any error messages when you try?

    Is this a USB from a retail box of Windows 10, or a USB that you have previously formatted to make a Windows 10 installation USB on? If so, then it may be permanently locked to prevent tampering with.

    If this is not a USB from a retail box of Windows 10, then you might see if running a "clean" command on the USB to make it unallocated to allow you to use afterwards.

    Disk - Clean and Clean All with Diskpart Command - Windows 7 Help Forums
      My ComputersSystem Spec

  5.    #5

    It is indeed a retail box version, I've tried the clean function using diskpart and it gave me an error.

    No go on this one I guess.

    Thanks anyhow :)
    Last edited by Saracen Rush; 08 May 2016 at 12:41. Reason: To Update
      My ComputerSystem Spec

  6. Brink's Avatar
    Posts : 37,913
    64-bit Windows 10 Pro build 18865
    Thread Starter
       #6

    You could try to do a clean command on the USB, but I believe it's hardware locked to not be able to modify it.

    If you have another USB flash drive, you could use it. They're cheap these days.
      My ComputersSystem Spec

  7.    #7

    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>
      My ComputerSystem Spec

  8. Brink's Avatar
    Posts : 37,913
    64-bit Windows 10 Pro build 18865
    Thread Starter
       #8

    Hello,

    Please provide more information about the disk along with a screenshot showing it in Disk Management. :)
      My ComputersSystem Spec


  9. Posts : 1
    Windows 10 64bit
       #9

    "attributes disk clear readonly" this command worked for me, thanks a lot :)
      My ComputerSystem Spec


 
Page 1 of 6 123 ... LastLast

Tutorial Categories

Enable or Disable Disk Write Protection in Windows Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
Performance & Maintenance Enable or Disable Hibernate in Windows 10 in Tutorials
How to Enable or Disable Hibernate in Windows 10 Hibernate is a power-saving state designed primarily for laptops, and might not be available for all PCs (PCs with InstantGo don't have the hibernate option). While sleep puts your work and...
The lock screen is the screen you see when you lock your PC (or when it locks automatically after you haven't been using it for a while). The lock screen will also show at startup, and when you are signed out and idle for one minute. You will need...
Performance & Maintenance Enable and Disable Driver Verifier in Windows 10 in Tutorials
Driver Verifier - Enable and Disable in Windows 10 Driver Verifier is a diagnostic tool built into Windows 10, it is designed to verify both native Microsoft drivers and third party drivers. Driver Verifier's verification process involves...
Hi, how can I disable Windows Defender Real-time protection but keep the Windows Defender app available and working? I've seen ways to disable Windows Defender Real-time protection in W10, however this involved disabling Windows Defender as a...
When users install a new Store or desktop app in Windows 10 and open a file type or protocol association that the app is able to open it with by default, then the user will get a "You have new apps that can open this type of file" notification. If...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 19:40.
Find Us