{"id":64958,"date":"2026-10-15T19:11:29","date_gmt":"2026-10-15T13:41:29","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/?p=64958"},"modified":"2026-10-15T19:11:29","modified_gmt":"2026-10-15T13:41:29","slug":"remove-write-protection-usb","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/","title":{"rendered":"How to Remove Write Protection from a USB Drive (Windows 11 and Mac)"},"content":{"rendered":"<p>&#8220;The disk is write protected.&#8221; If Windows shows that message when you try to copy, delete or format files, you can usually fix it in a few minutes. This guide shows how to <strong>remove write protection from a USB drive<\/strong> on Windows 11 and Mac, from the simple lock switch to Diskpart and the registry, and how to tell when the drive itself is failing.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-64957\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/remove-write-protection-usb.webp\" alt=\"remove write protection from a USB drive plugged into a laptop\" width=\"1200\" height=\"630\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/remove-write-protection-usb.webp 1200w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/remove-write-protection-usb-300x158.webp 300w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/remove-write-protection-usb-1024x538.webp 1024w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/remove-write-protection-usb-150x79.webp 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/remove-write-protection-usb-768x403.webp 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p><strong>Quick answer:<\/strong> First check for a lock switch on the USB drive or SD card adapter and slide it to unlocked. On Windows, open Command Prompt as administrator and run diskpart, then list disk, select disk N (your USB drive) and attributes disk clear readonly. If that fails, set WriteProtect to 0 in the registry key StorageDevicePolicies. On a Mac, NTFS drives are read-only by default, so copy your files off and reformat as exFAT. A drive that stays read-only after all this is usually worn out.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_88 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6ad0fb38a14c9\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #1a202c;color:#1a202c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #1a202c;color:#1a202c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6ad0fb38a14c9\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#Why_is_my_USB_drive_write_protected\" >Why is my USB drive write protected?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#1_Check_the_lock_switch\" >1. Check the lock switch<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#2_Remove_write_protection_with_Diskpart_Windows_11_and_10\" >2. Remove write protection with Diskpart (Windows 11 and 10)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#3_Remove_write_protection_in_the_Registry\" >3. Remove write protection in the Registry<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#4_Check_Group_Policy_Windows_Pro\" >4. Check Group Policy (Windows Pro)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#5_Scan_and_repair_the_drive\" >5. Scan and repair the drive<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#How_to_remove_write_protection_from_a_USB_drive_on_Mac\" >How to remove write protection from a USB drive on Mac<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#When_the_USB_drive_is_failing\" >When the USB drive is failing<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#FAQ\" >FAQ<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#How_do_I_remove_write_protection_from_a_USB_drive_in_Windows_11\" >How do I remove write protection from a USB drive in Windows 11?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#Can_I_format_a_write-protected_USB_drive\" >Can I format a write-protected USB drive?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#Will_removing_write_protection_delete_my_files\" >Will removing write protection delete my files?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2026\/10\/remove-write-protection-usb\/#Why_is_my_USB_drive_write_protected_on_Mac\" >Why is my USB drive write protected on Mac?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Why_is_my_USB_drive_write_protected\"><\/span>Why is my USB drive write protected?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>A physical lock switch<\/strong> on the drive, SD card or microSD adapter is set to Lock.<\/li>\n<li><strong>A read-only attribute<\/strong> is set on the disk in Windows.<\/li>\n<li><strong>A registry or Group Policy setting<\/strong> blocks writing to removable drives, common on work or school PCs.<\/li>\n<li><strong>The file system<\/strong> isn&#8217;t writable on your computer, such as an NTFS drive on a Mac.<\/li>\n<li><strong>Errors or corruption<\/strong> on the drive.<\/li>\n<li><strong>The flash memory is wearing out.<\/strong> Many USB drives switch themselves to read-only when the memory chips start to fail, to protect your data.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"1_Check_the_lock_switch\"><\/span>1. Check the lock switch<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Look along the side of the USB drive or SD card adapter for a small slider. Unplug the drive, slide it away from &#8220;Lock&#8221; and plug it back in. On SD adapters the switch is easy to knock while inserting the card, so check it even if you never touched it.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"2_Remove_write_protection_with_Diskpart_Windows_11_and_10\"><\/span>2. Remove write protection with Diskpart (Windows 11 and 10)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Plug in the USB drive and note its size in File Explorer.<\/li>\n<li>Press the Windows key, type <strong>cmd<\/strong>, right-click Command Prompt and choose <strong>Run as administrator<\/strong>.<\/li>\n<li>Type <code>diskpart<\/code> and press Enter.<\/li>\n<li>Type <code>list disk<\/code>. Find your USB drive by its size.<\/li>\n<li>Type <code>select disk 2<\/code>, replacing 2 with your USB drive&#8217;s number. <strong>Double-check the number<\/strong>; choosing the wrong disk can affect your main drive.<\/li>\n<li>Type <code>attributes disk clear readonly<\/code>. You should see &#8220;Disk attributes cleared successfully.&#8221;<\/li>\n<li>Type <code>exit<\/code>, then unplug and replug the drive and try copying a file.<\/li>\n<\/ol>\n<p>If the drive still won&#8217;t work and you don&#8217;t need its contents, you can wipe and reformat it in the same Diskpart session after selecting the disk: <code>clean<\/code>, <code>create partition primary<\/code> and <code>format fs=exfat quick<\/code>. This erases everything on the drive. Our guide to <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2013\/01\/how-to-format-usb-pen-drives\/\">formatting a USB flash drive on Windows 11 and Mac<\/a> explains the formatting options.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"3_Remove_write_protection_in_the_Registry\"><\/span>3. Remove write protection in the Registry<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A registry setting can make every USB drive read-only. Back up the registry or create a restore point before you edit it.<\/p>\n<ol>\n<li>Press <strong>Windows + R<\/strong>, type <code>regedit<\/code> and press Enter.<\/li>\n<li>Go to <code>HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\StorageDevicePolicies<\/code>.<\/li>\n<li>If you see a value named <strong>WriteProtect<\/strong>, double-click it and change its value data to <strong>0<\/strong>.<\/li>\n<li>Click OK, close Registry Editor and restart the PC.<\/li>\n<\/ol>\n<p>If the StorageDevicePolicies key doesn&#8217;t exist, this isn&#8217;t your problem; leave the registry alone and move to the next step.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"4_Check_Group_Policy_Windows_Pro\"><\/span>4. Check Group Policy (Windows Pro)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ol>\n<li>Press <strong>Windows + R<\/strong>, type <code>gpedit.msc<\/code> and press Enter.<\/li>\n<li>Open Computer Configuration &gt; Administrative Templates &gt; System &gt; <strong>Removable Storage Access<\/strong>.<\/li>\n<li>Find <strong>Removable Disks: Deny write access<\/strong>. If it says Enabled, set it to Not Configured or Disabled.<\/li>\n<li>Restart the PC.<\/li>\n<\/ol>\n<p>On a work or school computer, this policy is usually set by your IT team on purpose. Ask them rather than changing it.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5_Scan_and_repair_the_drive\"><\/span>5. Scan and repair the drive<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Run a malware scan on the drive with Windows Security (right-click the drive &gt; Scan with Microsoft Defender).<\/li>\n<li>Check for errors: right-click the drive in File Explorer &gt; Properties &gt; Tools &gt; <strong>Check<\/strong>. Our guide to <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2005\/08\/fix-format-usb-flash-drives\/\">fixing USB flash drive errors<\/a> covers more repair steps.<\/li>\n<li>If you see &#8220;Directory or file cannot be created&#8221; instead, read the fix for <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2007\/09\/how-to-fix-error-0x80070052-on-usb-flash-drives\/\">error 0x80070052 on USB flash drives<\/a>.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"How_to_remove_write_protection_from_a_USB_drive_on_Mac\"><\/span>How to remove write protection from a USB drive on Mac<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li><strong>NTFS-formatted drives:<\/strong> macOS can read NTFS (the usual Windows format) but not write to it, so the drive looks read-only. Copy your files off, then open <strong>Disk Utility<\/strong>, select the drive, click <strong>Erase<\/strong> and choose <strong>ExFAT<\/strong>, which works on both Mac and Windows.<\/li>\n<li><strong>Permissions:<\/strong> select the drive in Finder, press <strong>Command + I<\/strong>, and under Sharing &amp; Permissions tick <strong>Ignore ownership on this volume<\/strong> (click the lock to make changes).<\/li>\n<li><strong>Errors:<\/strong> in Disk Utility, select the drive and run <strong>First Aid<\/strong>.<\/li>\n<li><strong>Lock switch:<\/strong> SD card adapters used in Macs have the same lock slider.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"When_the_USB_drive_is_failing\"><\/span>When the USB drive is failing<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If the drive is still read-only after every step above, and the same thing happens on another computer, the flash memory has probably worn out. Many drives deliberately lock themselves in read-only mode at the end of their life so you can still copy your files off. Back up everything you need straight away, then replace the drive. No software can safely make a worn-out drive writable again, and tools that promise to are best avoided.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_remove_write_protection_from_a_USB_drive_in_Windows_11\"><\/span>How do I remove write protection from a USB drive in Windows 11?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Run Command Prompt as administrator, then diskpart, list disk, select disk N and attributes disk clear readonly. Check the lock switch and the WriteProtect registry value too.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Can_I_format_a_write-protected_USB_drive\"><\/span>Can I format a write-protected USB drive?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Not until you remove the write protection. Clear it with Diskpart first, then format.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Will_removing_write_protection_delete_my_files\"><\/span>Will removing write protection delete my files?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. Clearing the read-only attribute or the registry setting keeps your files. Only the clean and format commands erase the drive.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_is_my_USB_drive_write_protected_on_Mac\"><\/span>Why is my USB drive write protected on Mac?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Usually because it&#8217;s formatted as NTFS, which macOS can&#8217;t write to. Reformat it as exFAT after copying your files off.<\/p>\n<p><em>Photo by Brina Blum on Unsplash<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;The disk is write protected.&#8221; If Windows shows that message when you try to copy, delete or format files, you&#8230;<\/p>\n","protected":false},"author":4,"featured_media":64957,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[23],"tags":[49],"class_list":["post-64958","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-computers","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/64958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=64958"}],"version-history":[{"count":1,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/64958\/revisions"}],"predecessor-version":[{"id":67382,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/64958\/revisions\/67382"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/64957"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=64958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=64958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=64958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}