Windows 10: Enable USB Write Protection

Discus and support Enable USB Write Protection in AntiVirus, Firewalls and System Security to solve the problem; As an additional security layer, you can enable write protection on Windows to prevent users from copying data to a USB drive. Code: @Echo Off & Cls... Discussion in 'AntiVirus, Firewalls and System Security' started by FreeBooter, Sep 6, 2019.

  1. Enable USB Write Protection


    As an additional security layer, you can enable write protection on Windows to prevent users from copying data to a USB drive.

    Code: @Echo Off & Cls REM --> Check for permissions Reg query "HKU\S-1-5-19\Environment" REM --> If error flag set, we do not have admin. if %errorlevel% NEQ 0 ( ECHO ************************************** ECHO Running Admin shell... Please wait... ECHO ************************************** goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" set params = "%*:"="" echo UAC.ShellExecute "cmd.exe", "/c ""%~s0"" %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" exit /B :gotAdmin Cls & Mode CON LINES=11 COLS=65 & Color 0D & Title Created By Echo. Echo. Echo. Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» Echo º Do You Want To Enable USB Write Protection (Y/N)? º Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ Echo. Echo. Set /p input= RESPONSE: If /i Not %input%==Y (Goto :_Ex) Else (Goto :_Start) :_Ex If /i Not %input%==N (Goto :EOF) Else (Goto :_RegRestore) :_Start Reg Add "HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies" /v "WriteProtect" /t REG_DWORD /d "1" /f Cls & Mode CON LINES=11 COLS=50 & Color 0D & Title Created By Echo. Echo. Echo. Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» Echo º USB WRITE PROTECTION ENABLED º Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ Echo. Echo. ping -n 8 localhost >nul Exit :_RegRestore Reg Delete "HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies" /v "WriteProtect" /f Reg Add "HKLM\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies" /f Cls & Mode CON LINES=11 COLS=50 & Color 0D & Title Created By Echo. Echo. Echo. Echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» Echo º USB WRITE PROTECTION DISABLED º Echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ Echo. Echo. ping -n 8 localhost >nul Exit[/quote] *Arrow Enable or Disable Disk Write Protection in Windows

    :)
     
    FreeBooter, Sep 6, 2019
    #1
  2. freebird_9924, Sep 6, 2019
    #2
  3. Sher Amo Win User
    USB devices getting write protected

    Hi Imdad,

    Some removable storage devices like USB flash drives or pen drive have write protection which is designed to help users prevent unexpected data loss by refusing to delete or format.

    However, if you’re stuck with a write-protected USB drive that can’t be formatted. We recommend that you follow these steps on how to erase and format a write-protected USB flash drive and pen drive using the Regedit.exe tool in Windows. To do this,
    follow the steps below:

    • In the Search box, type regedit and press Enter.
    • Navigate to the following folder:

      Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies

    Double-click on the WriteProtect value in the right-hand pane of Regedit.exe. Change the Value data from 1 to 0 and click OK to save the change. Close Regedit and restart your computer. Connect your USB flash drive or pen drive again, and you should find the
    write protection is removed and the device is no longer write protected.

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection,
    back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, refer to the following Microsoft Knowledge Base article.

    How to back up and restore the registry in Windows https://support.microsoft.com/en-us/kb/322756.

    Let us know if you need further assistance.
     
    Sher Amo, Sep 6, 2019
    #3
  4. Fernandz Win User

    Enable USB Write Protection

    How To Format A Write Protected Flash Memory ?

    ¿You already tried this one?...

    Run CMD


    1. diskpart
    2. list disk

    Then in the 3º step, put the correct number of disk in the list for the usb flash (if it's listed in disk 3, then you'll have to write select disk 3).

    2. select disk #
    3. clean
    4. create partition primary
    5. select partition 1
    6. active
    7. format fs=fat32
    8. assign
    9. exit

    with that commands you will format the flash drive in fat32, if you have a large drive you can select also "format fs=ntfs" in step 7.

    good luck!
     
    Fernandz, Sep 6, 2019
    #4
Thema:

Enable USB Write Protection

Loading...
  1. Enable USB Write Protection - Similar Threads - Enable USB Write

  2. usb: "This disk is write-protected"

    in Windows 10 Gaming
    usb: "This disk is write-protected": I hate this alot, I tried editing Registry Editor and command prompt, but nothing worked. https://answers.microsoft.com/en-us/windows/forum/all/usb-this-disk-is-write-protected/09c31158-ee9a-441a-8a2f-390932d29b1f
  3. usb: "This disk is write-protected"

    in Windows 10 Software and Apps
    usb: "This disk is write-protected": I hate this alot, I tried editing Registry Editor and command prompt, but nothing worked. https://answers.microsoft.com/en-us/windows/forum/all/usb-this-disk-is-write-protected/09c31158-ee9a-441a-8a2f-390932d29b1f
  4. usb: "This disk is write-protected"

    in Windows 10 Network and Sharing
    usb: "This disk is write-protected": I hate this alot, I tried editing Registry Editor and command prompt, but nothing worked. https://answers.microsoft.com/en-us/windows/forum/all/usb-this-disk-is-write-protected/09c31158-ee9a-441a-8a2f-390932d29b1f
  5. USB write protect error

    in Windows 10 Software and Apps
    USB write protect error: Hi, firstly sorry for my english.When I try to upload a video or a photo, I faced an error message the disk is write protected. I tried diskpart but nothing happens. Also I can't do error checking or format the usb. What should I do?...
  6. USB write protected error

    in Windows 10 Drivers and Hardware
    USB write protected error: Hi,I get the error "The disk is write protected" when I try to copy something into the USB or format it. I checked for viruses with ESET anti-virus and there were no viruses. Also, I tried the command prompt way, the regedit way but none of them worked. I also used EaseUS...
  7. How to enable or disable USB Write Protection on Windows 10

    in Windows 10 News
    How to enable or disable USB Write Protection on Windows 10: [ATTACH]USB Write access or USB Write protection is the security feature that can be enabled for any USB Data storage. The main purpose of enabling […] This article How to enable or disable USB Write Protection on Windows 10 first appeared on TheWindowsClub.com. read more...
  8. Usb Write Protected

    in Windows 10 Network and Sharing
    Usb Write Protected: I can not delete or copy anything on my usb it sasy write protected its even did same to my phones external storage https://answers.microsoft.com/en-us/windows/forum/all/usb-write-protected/93973814-ac33-4479-a0c8-b87845914fb6"
  9. Usb Write Protected

    in Windows 10 Drivers and Hardware
    Usb Write Protected: Hi there I have an issue with a usb stick I don't no how it got write protected but I cant format it or anything.i have tried the disk part with cmd and it doesn't work and the disk registry doesn't work either must I throw it away?I don't no if it has something to do...
  10. Write Protected USB

    in Windows 10 BSOD Crashes and Debugging
    Write Protected USB: Hi, Yesterday I just bought a HP 32gb flash drive. And when I tried to connect it with my laptop, immediately It shows a pop up message to Format the USB first, tried formatting it with the default method (by right clicking and selecting the format option) . then it...