Windows 10: Disk Write Protection - Enable or Disable in Windows  

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

    Disk Write Protection - Enable or Disable in Windows

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

    Published by


    Brink's Avatar
    Administrator

    Posts: 18,940

    Show Printable Version 


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

    information   Information
    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 Vista, Windows 7, Windows 8, and Windows 10.

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

    Note   Note
    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




    EXAMPLE: "The disk is write-protected." error message
    NOTE: 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: 182976
Size:  12.3 KB
    Name:  This_disk_is_write-protected.jpg
Views: 184092
Size:  39.1 KB

    EXAMPLE: Error 0x8000FFFF: Catastrophic failure
    NOTE: 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: 184033
Size:  18.7 KB








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

    Note   Note
    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: 186832
Size:  43.5 KB

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





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

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

    Local Group Policy Editor is only available in the Windows 10 Pro, Enterprise, and Education editions.






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

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


    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 #

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

    For example: select disk 1


    5. Do step 6 or step 7 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:	6292 
Size:	113.0 KB 
ID:	10359

    7. To Disable Write Protection for the Disk
    NOTE: 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:	5503 
Size:	119.6 KB 
ID:	10357

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


    That's it,
    Shawn


  1.    14 Jan 2015 #1

    OK
      My System SpecsSystem Spec

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

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

  3.    08 May 2016 #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 System SpecsSystem Spec

  4. Brink's Avatar
    Posts : 18,940
    64-bit Windows 10 Pro build 15063
       08 May 2016 #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 System SpecsSystem Spec

  5.    08 May 2016 #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 System SpecsSystem Spec

  6. Brink's Avatar
    Posts : 18,940
    64-bit Windows 10 Pro build 15063
       08 May 2016 #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 System SpecsSystem Spec

  7.    13 Jul 2016 #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 System SpecsSystem Spec

  8. Brink's Avatar
    Posts : 18,940
    64-bit Windows 10 Pro build 15063
       14 Jul 2016 #8

    Hello,

    Please provide more information about the disk along with a screenshot showing it in Disk Management.
      My System SpecsSystem Spec


  9. Posts : 1
    Windows 10 64bit
       04 Sep 2016 #9

    "attributes disk clear readonly" this command worked for me, thanks a lot
      My System SpecsSystem Spec


 
Page 1 of 4 123 ... LastLast

Related Threads
How to Enable or Disable the Lock Screen in Windows 10 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...
Performance & Maintenance Driver Verifier - Enable and Disable 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...
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...
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...
How to Disable 'You have new apps that can open this type of file' Notification in Windows 10 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...
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:04.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums