Make USB Storage Device / Flash / Removable Read Only and protect it from Viruses


This small application will make your USB Flash Drive or any other Storage device read only for all other computers,
* Your USB Flash Drive will work on other computers like CD or DVD.

Yet! you can still be able to use it at your computer as normal :)

( with no need to run my application again )

The useful of this feature is to avoid get  your files  infected with viruses, When you need to use your USB Storage at Friends or collage computers.


The Application also create a folder called “Public” on your USB flash drive, in case you want to copy a file or something from other computers, then you  can copy it to the “Public” folder.
( You can rename the “Public” folder to any name you like. )

Download “USB Storage Protector” 1ACOTp – Downloaded 13098 times –

This tool required Microsoft Framework .NET you can get it from Here


    1. it worked so good on windows 10. Have you tried to plug the USB formatted in another computer? It’s so good

  1. i can’t download this software please help me .
    my e-mail id ( please help me another link.

  2. :( no able to download getting below error on browser


  3. Great piece of software arab…well done! Would you be interested in making me a customized version of it if I pay for your time?

      1. I have a question though…when I check your file on it reports 3 viruses. Have you checked the file yourself?

        1. Yes I did, with Those anti virus only “Ikarus, Symantec and TrendMicro-HouseCall”,
          I think it’s false positive, due the result is 3 out of 60, and those anti virus are not that popular among users.

          Total Virus

          Have a good day.

          1. Yeah, you are probably correct.

            Would it be possible for you to make me a customized version that creates three public folders rather than just one?

  4. Dear brother
    it used to work good but now most of the viruses are able to corrupt my usb
    despite using your tool please look into the matter.

  5. respected sir,
    i am looking for this solution please provide me your software link on this id

    thanks in advanced :)

    1. Because I can not download from that link, and the usb data prompt need to protect on the public computer.

  6. I want to revert!
    First time, it works. But after reboot, My PC goes to mess.
    All USB disk connected, shows “No media” error.
    Please help me, I want to undo!

    :: win7-64 bits (korean)

    1. hello, the revert option is to format your usb.

      more over my software make no changes at all to any Settings of your windows. it is just apply it to the USB.

      1. Thank’s for your reply!
        It seem’s like HW problem.
        It was sloved by ulpluging my laptop sevral minutes.

      2. Hi, it doesnt work for me. I tried on win7 and 10 . I can still write to the drive on other machines.

          1. Must be my machine, tried on another machine and it works great. Thanks for a great app.

    2. Trying to format an USB with the tool in Windows 10 Pro 64-bit. It asked me to install .NET Framework 3.5, but my system already have .NET 4.0. Do I also need to install the .NET 3.5?

      1. You Should install the .net tool for windows 10 from my website, or by enable the feature from Windows control panel

  7. Kindly sir if i want to make a tool like “how to make a laptop battery life” or a program of pliagiarism which check this university assignment is cheated from other, which programming language required and what type of coding is required for that purpose. kindly sir, give me solid answer about programming languages you used in different tools is it visual basic, java, sql or dot net. Kindly sir reply me.

    1. All my tools, and softwares are built using C# , Visual studio 2013.

      You are welcome

  8. Hello,

    I am searching for the information to change permission level to the usb device. Can you please help me where can learn this type of information that you are using in your program to change user permission to the drive. It will really appreciated if you will help me.

    Thanks in advance.

  9. hi.. i am using your software for quite a while and it works very fine. i am wondering if you could give me the code so i can modify it for my common use. if not, it is ok and i still thank you for uploading this for free.

    1. The Application will automatically convert the USB stick to NTFS file format, if the boot support NTFS format, Then Yes it will work.

  10. Sir I have developed an application for sale
    I wand to create USB as a dongle.
    Which can be accessed only by the user name & password given by me for one specific computer.
    need some assistance…pl

    Than_Q in advance..

  11. i can’t download this software please help me .
    my e-mail id ( please help me another link.

  12. Salam.
    I would like to thank you for the time and effort taken to write this software, I tried it on Windows 7 (x32) and 8.1 (x64), but unfortunately, it did not work with me!
    It shows the message:
    Can’t set USB Storage Device
    An error has been occurred.
    After that, the USB disk became unreadable in other computer, only after formatting again.
    Thank u again.

  13. Hi
    I protected USB with your program.
    Works perfect.
    Bat from that point my other computer where I check protected USB
    showing all other USB or SD cards as write protected ?

  14. Hi,
    I really like the program, and it’s working great.
    Just missing the otpion to unprotect.
    Are you still planning some updates?


  15. Dear Brother, I installed ur sofware and used it. but my memory card not show my mobile

  16. Question,
    If I use Bitlocker on my USB Flash drive and protect the flash drive, will the flash drive work on my media player? Will I still be able to watch the files I have on the flash drive via my Media Player?

  17. I left a detailed message and question a couple of days ago and it is now gone! I got no reply. It initially said “waiting for review by administrator” and then it disappeared. What happened to my message / question???

    1. I was unable to approve your comments, because the internet is still cut off at my city Aleppo- Syria.
      I approve all your comments now, and I will get back to you soon.

      Sorry for this inconvenient

  18. I need a method to put several folders onto an 8 GB Flash Drive, each folder containing 5-10 documents, videos, PDFs, etc. I then want to scan the drive for viruses, then “lock” the drive so the files can be read or copied, but the end-user cannot add files to the drive. My objective is to keep the end-users from turning the drive into something for personal use and adding files that could contain a virus. Multiple people at each business that I hand these out will use the drive to copy the files to their laptops. Is your program designed to support what I’m trying to do? Thank you!

    1. I think my Program Does what you asked for.

      -Put the flash drive on your pc
      – protect it with my app default settings.
      – copy your files
      – Done
      You can test it on the end user pc to see the result

  19. Any chance for command line options:
    USBprotect.exe /L T:
    I just want to use it in batch file (named L2USB), that transfer my customized Windows XP Light to USB, so I wanted to automate the process more, of course after the user provide the desired drive letter by himself.

    And by the way I have found a way for un-protecting specific folders temporarily, I don’t know how you made this great tool, and not to reverse its action.
    If interested, please let me know (of course I won’t post this solution to the public)

  20. Dear Brother, I installed ur s/ware on my usb and used it on a few infected systems for a few days but it was unharmed but suddenly today i used it on one pc and copied a film from it and as i plugged it onto another one to access my files in Public folder it showed my usb as blank. I plugged it to a linux pc and it was infected by a VIRUS that hides all the data to a single unnamed hidden folder (Public folder and its contents in this case). There were also folders (virus) i.e Public.exe etc. I searched my usb for .exe, .db, .inf, .ini. lnk but it only showed folders with .exe with them so i deleted them.
    Please look into this matter and guide me.
    Fe Amanillah

    1. Thank you for using my software,
      And I am sorry for this inconvenient matter,

      If you could provide me with the Virus or Trojan name, I could do more research and make my software more secure.

      Have a good day.

  21. It gives me an error,

    Can’t set USB Storage Device
    An error has been occurred.

    What can be?

  22. This is smart, Mr Smart Arab sir, i searched the net east & west, north & south for a very long time for this kind of software & finally i found it here, it simply perfect, thank you.

  23. my laptop cd drive is not working. i want to format my laptop. i tried format using pen drive. but it is not booting from usb flash drive or external hard disk also. i think it will boot from cd/dvd only. so can i use my pen drive to act like a cd rom as u said by using your software, so that i can boot my laptop from it? please reply soon.

    1. Hello Sir.
      My Application has nothing to do to make your flash drive bootable.

      Just copy the entire contents of the Windows 7 or 8 DVD to your USB flash drive, and it will be bootable.

      To be able to boot from a USB CD Drive (or any external peripheral using the USB port for that matter) it is important that your motherboard has built-in support for this function.

  24. Thanks Arab. I could do it withing short time after posting that msg. it is really nice apps. please post more and more upgrade and new apps like that. Thank you again dear.

  25. I am trying to protect my 4 GB pen drive read only format but it is taking too long more than 30 mins. i am really bored for doing it. please help. there is no way to do quick protection?

    1. Hello Mr.Hasan

      Sorry for this inconvenient Normally this would not happen.

      Please try to connect your USB flash on another port.

      Thank you for using my software.

  26. Hi,
    Really a fantastic piece of work !! I found this application very useful for personal use.
    Can this be used for commercial purpose ? Any license issues ?

  27. Hi Smart Arab,
    thanks for this great app.
    btw, it doesn’t work under other os, i still can modify the hdd content under Mac & Linux. is there anyway to stop this?

    thank you

  28. Thanks for this amazing program, it works perfectly..

    I have few queries/requests, to be sure about protection of data..
    1. Does this registry (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies) setting removes protection provided by your program?
    2. Is it possible to prevent drive from formatting?

    Thanks again.

  29. I just tried using your software, it works in the sense that I won’t let me delete the files from another computer, but I can transfer the files to another computer. Is there anyway of stopping that?

    1. The purpose of my program is to protect your USB drive from other computers viruses, And there is no way to deny the transfer of the files to other computers.

      On the other hand, if you want to lock your USB drive completely for private files you can use the BitLocker which come with windows 7 Ultimate, Or Windows 8, 8.1 Pro.

      Thank you for using my software.

  30. nice…’s work…………..

    can any one tell me how to create a new bootable drive in primary harddisk……………

  31. Pingback: /3644
  32. So you want to explain the technical things that you did behind it?

    From the look of it, you are tweaking it with some NTFS permissions, but what?

    Also, can’t the other person just format your pen drive on their comp to make it completely usable again?

    1. There is no unprotected button on the application, so formating it is the only way to restore your USB flash to it’s normal state.

  33. * I am using Win xp, I checked dot net framework is 3.5, and even check that the usb thumb drive (8Gb) can be format to NTFS. But I every times I tried to used your application, I get a error message, I tried ignore and let your program run for an hour or more but nothing happen! Below is the error message I get…Help

    unhandled exception has occurred in your application. If you click continue, the application will ignore this error and attempt…
    Invalid class
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Management.ManagementException: Invalid class
    at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
    at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
    at ..(String driveLetter, String fileSystem, Boolean quickFormat, Int32 clusterSize, String label, Boolean enableCompression)
    at ..(Object , EventArgs )
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************
    Assembly Version:
    Win32 Version: 2.0.50727.3655 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    Assembly Version:
    Win32 Version: 1.1
    CodeBase: file:///D:/Utility/USB%20Storage%20Protector%201.1.exe
    Assembly Version:
    Win32 Version: 2.0.50727.3645 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/
    Assembly Version:
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/
    Assembly Version:
    Win32 Version: 2.0.50727.3644 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/
    Assembly Version:
    Win32 Version: 1.1
    CodeBase: file:///D:/Utility/USB%20Storage%20Protector%201.1.exe
    Assembly Version:
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the section.
    The application must also be compiled with debugging

    For example:

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    1. To be honest I really didn’t try my application on Windows XP !
      I will give it a try and inform you.

  34. Thank you very much for this great application! It works as charm! I will keep waiting for new update that will add option for unprotecting. As for those who have problem with antivirus deleting files – put them in *.rar archive, and no antivirus will delete it. :)

    Best Regards
    Miroslav Bicanski

  35. Awesome and thank you!
    Is there by chance anyway for you Mr. Smart-Arab to add the ability to prevent copying files? If so, this would be an amazing security tool.

  36. Hello Arab,
    I reformatted my portable hard disk with your tool and now it works as you mentioned. But I have another concern. Yes, I can not copy or delete content from the hard disk, but McAfee CAN DO IT. McAfee deleted some cracks which were on the root. Do you have any fix for that? And I have a suggestion, if you never mind. It seems like you use computer SID for this access permissions. Suppose I formatted the source computer (Which used to create this secure disk). Now the source computer SID is different, it means owner does not have write permission for his own drive as well right? Anyway your tool is the best tool I found so far. I hope you will continue this project. Good Luck!

    Best Regards,
    Yasitha Bogamuwa.

    1. Hi,
      I am happy that my tool works on your hard disk, :)

      For Anti-Virus Until now there is no solution for this problem, because the anti-virus software,
      had a complete permissions over windows.

      For the SID, I am working on something to solve this problem.
      until now the only solution ( after formating your computer ) is to copy your hard disk to save place and reapply protection.
      Which is not very effective. ( I know )

      Thank you for your feed back.

  37. Hello Arab,
    Yes, I have tried it with USB 2.0 as well, but no luck. In Sri Lanka, now we are passing mid night and I’m so sleepy. I will check this with my brother’s hard disk on tomorrow and update you. Have a great day, Thank you!

    Yasitha Bogamuwa.

  38. Hello Arab,
    Thank you for your quick reply. Yes, this time I tried with my 16GB Transcend pen drive as well. With 16GB pen drive, it worked as you mentioned. I can not copy/modify content either on root or sub folders. But for my 320GB external hard disk, things are different. I can still copy/modify the content inside sub folders. 16GB pen drive is USB 2.0 and 320GB portable hard disk is USB 3.0, hope it will not be a problem. If you want, I can send you some screen recordings as well, it may help you to solve the things. Please drop me an email if you want any snaps. Thanks again!

    Yasitha Bogamuwa.

    1. This is really Strange,
      I will test this on my hard disk, and inform you.

      Could you try to connect your external hard drive on the USB 2.0 port ?

      Thank you, for your feedback, I Appreciated it very much.

  39. Hello Arab,
    I am being used your tool for my 320 external hard disk. Really it is amazing. But have a little concern. Your tool ONLY prevent modifying the content which are placed on the root. Suppose I have a Folder called SOFTWARE (Then there are only two folders on the root; PUBLIC and SOFTWARE). Yes, as you mentioned I can not copy or modify the content which are placed on the root, but the content INSIDE the software folder still under risk. I can modify the content there. I hope you get my point. Is there anyway to prevent it? Thanks!

    Best Regards,
    Yasitha Bogamuwa.

    1. This is Strange, The application must protect all folders and subfolders of your HDD, except the “PUBLIC” folder.

      Could you try something for me, and Protect your external hard, then copy a very simple folder and test it.

      And I will make the same thing Just to be sure, Thank you.

    2. Hi, I test the Application on My USB 8 GB and it’s work as it’s supposed, it protect root\folders\subfolders\and files…
      Waiting for your reply.

      Thank you.

  40. HI Arab

    My USB are FAT32
    i’m useing HBCD 10.2

    i tried to run Norton Ghost 11.5.1 from it and it fails
    and all the apps on that CD
    the error say ” QCDROM.SYS Loading Faild ” and after that alot of files can’t load and it stop loading anything

    put the mini win XP working from the same HBCD version
    ur app is working very good on the other pc’s on my Flash Drive

    1. If you use my Application to Protect your USB Drive, it will automatically convert it to NTFS.( it can’t be FAT32 )
      Moreover: I don’t think that this error has anything to do with my Application, Consider your saying that Flash drive works good on other PC’s.

      To be sure :
      Try to boot your USB without using my Application, and see if any thing changes.

  41. Hi Arab
    your app is great and i like it too much

    but i need your help

    I have Protect My Flash Drive and installed Hiren’s Boot on it .. and it working
    but when i try to run any programs from Hiren’s over DOS .. it fails .. it can’t load some files and stop working ..
    i tried to move HBCD folder that contain Hiren’s data to the public folder .. but the same error
    what can i do to fix that

    and thanks for the app

    1. May be Some of your DOS applications, required FAT32 USB Drive, not NTFS!
      But My Application won’t work, with FAT32 file system.

      Can you provide me with HBCD programs names and version, so I can test them and confirm my answer.

      Thank you.

  42. So far so good. Amongst 10 different software tools (i’ve came across) for same or similar achievement, this one works most elegant. Suggestions: Add few simple options like whether i want to add Public Folder, and some of the already mentioned stuff of what’s possible… I am working as PC – Technician on terrain for years now, and this little but powerful tool helps me a lot. Keep up with this great project. Best regards from Serbia, Europe.

    1. Thank You Sir, I will add a Few more Options, in the future version.
      Thank you again, for your useful and kind comment.

    1. You have to protect you USB Flash with my application First, Then make it Bootable.

  43. I want to secure my data of USB drive from viruses. How to make USB disk write protected/Read only after saving data in disk? waiting for reply

    1. My Application works only this way ….
      1- Format and Protect your USB Drive with my Application.
      2- Copy the Data to your USB Drive .

      MY Application only apply the protection on the other computers “But NOT on your Computer Where you are using my Application”.

  44. How to “unprotect” the device. I tried all the ways suggested in the internet and forums but none of them has yet worked.
    Could you please mention how to do it and remove the write protection.

    1. If you protect your USB With my Applications, then simply format it to remove the protection.

      If your USB flash is protected and act like CD-ROM, and you can’t format it, then probably, it’s hardware fault and windows can’t fix it.

  45. you have good software, but someone format the drive its not protect against it can you do write protect usb for any system

  46. how about if i want to make my flash drive into a windows installer with Windows 7 USB/DVD Download Tool?
    should i protect it first or windows first?

  47. Dear sir,
    Thank u so much for your replies for my queries.
    Hopefully awaiting your next update for the application as discussed.

  48. I will test this out soon. I think this program is really great and if it works like it seems like it will, then you have my gratitude and I will definitely recommend you to others.

  49. Hi,
    Good Day……….!
    My name is Savan H BHuva
    Their is One BUG in Application
    the bug is when we delete the public folder from other computer after wright protected pen drive
    at the same time we can legible to copy contends to other computer with the same pen drive

    Savan H Bhuva

    1. Hello Savan,
      1- I will fix the program so you will not be able to delete the public folder when using the flash on other computer.
      2- The Contains of Protected flash drive ( folders , files , etc ) can’t be delete from other computers, but you can copy them to other computers ? is that what you are trying to say ?

  50. Dear Arab
    I could run your program to protect the pendrive. But I could also able to write outside public folder. It ask for administrator password. Will it work same way on other computer?

    1. What windows version (7,XP ) are you using ?
      Are you using Domain Network ?
      I don’t think that other computers will ask for administrator password.
      ( NO body report that before, and I didn’t experience such a thing )

      Please if you can Test it on other computer and see the results.
      Thank you

  51. sir,
    i am not able to understand what is
    Due mechanism of inheritance.
    kindly explain
    thank u

    1. I will try to update my application and add Option for the public folder.

      “mechanism of inheritance” = if public folder is protected, so it’s contains will be protected. ( hope you get it )

  52. Sir,
    I was able to delete the Public folder in another computer and could not create any new folder on the flash drive in the other computer.
    I formatted my flash drive with ur soft in my PC.
    I added my files on the flash drive in my PC
    i tested it on another Pc which had avast antivirus installed
    i was surprised a file(crack file) was deleted by the avast antivirus
    how to protect this
    Please help

    1. You can delete the public folder on other computers, ( There is no way you can deny that )
      I will try to update my software and Option for this! ( Allow to delete Public Folder ) ( Hope I can do this )

      The Anti-Viruses software, can remove files from Protected USB Flash Drive,
      As “OS” Windows allow those software to use special resources, which allow them to do a special operations, that other programs can’t.

  53. thank u so much for your replies
    It works great and way to go dear
    One small help –
    The public folder created can be deleted in other computers
    Since the public folder can be deleted in other computer, no other folder can be created for data to write on the flash drive
    Can the contents of the public folder can be read/write and not the folder
    kindly help

    1. No it’s impossible :(, Due mechanism of inheritance.

      As the “Public” folder represent the parent of it’s content.

  54. Thank u sir for your kind reply
    i shall speak to u again with some more queries

  55. Can u help in creating an utility to password protect the USB flash drive
    Kindly help
    thanks once again

    1. you can Use Bitlocker to protect your USB flash Drive with a password, Which is a part of Windows 7 and Windows 8.

  56. Sir,
    Can the protection be done without formatting the flash drive.
    Pls help and kindly add the unprotect command in your utility
    thanks once again

  57. I have made a bootable USB flash drive and copied the contents of Hiren Boot cd 15.2.

    I now want to make this flash drive Read Only with access to Write only to the “PUBLIC” folder.

    Can it be done please ?

    1. You have to Protect Your Flash First With My Application, Then Make it Bootable, ( There is no other way )

      As My Application required to format your Flash drive in order to protect it, thus you will lose your boot.

      Things you need to know :
      *My Application, Will not protect your Flash on your Computer, It will protect it only on others computer
      So you can do what ever you want with it as long as it is plugged in your computer.

      *The protection will remain active until you format it.

      If you are using “Grub4Dos Installer”, Which is included in “Hiren’s Boot CD”,
      Then it Will work like charm, as This “Gurb4Dos Installer” Didn’t format the flash drive in order to make it bootable.

      Hope this help.

  58. good Ap. i have a different requirement. can you make an App which will tag the USB device to a particular system? means that device must be accessed only from a specific system not all others.
    can that be done?

    1. Yes, It can be done.

      But for easier solution you can use BitLocker Which it Comes with windows 7.

  59. Hi, arab, i am wonder how u make work it in only with one pc, can u share source for understending how it work and for example? Best regards!

  60. Hi. Once a drive has been protected with your software, what is the quick method to unprotect it?

    1. Hi, David.

      This is a very good Question, Tell now the only way to unprotected your flash drive is to copy your file to a save place and format it.

      I think I will update my software and add The “Unprotect” feature to it.

  61. Dear,
    Thanks for your up-gradation. The version 1.1 works fine on any storage device. It helps me to secure my data. May Allah bless you. Dear brother thanks a lot. Thank you again.

  62. The program has been update to version 1.1,
    You can download it again to get the new version.

    Thank you.

    1. Yes.

      You can rename “Public” folder to anything you like!

      And you can only rename it, from your computer.

    1. Hi,
      I have made this program before windows 8 see’s the light,
      I will test it. and inform you.

      if it does not work I will upgrade it for you.

      have a good day

    2. Yes, it is work on windows 8.
      But you have to be sure that Dot net FarmeWork version 2.0 is installed.

  63. Dear,
    Thanks your program. Its working on any pen/flash drive but it does not work on USB portable hard disk 1 TB. Please send me a software like this that will work on USB portable hard disk 1TB.

    1. I recently bought “WD 1TB USB3 HardDisk”, I will test my program on it, and Inform you.

      if it does not work I will upgrade it for you.

      have a good day

    2. I have update my Application to version 1.1, it’s now work with any Hard Drive or USB,
      Please Download the new Version.

      Thank you.

        1. May be adfly us blocking at your country, please drop me an email to send you the direct link.

Leave a Reply

Your email address will not be published.