This script disables mounting (revokes access via the computer’s file system) of USB storage devices.
There are multiple reasons for disabling USB access on your computer… You may share the device with multiple employees. In such cases, each USB stick plugged into the computer poses a major risk; carelessness, or — heaven forbid — malicious intent could lead to the introduction of viruses as well as the theft and/or removal of important files and documents.
And it’s not just that… If you’re the type of person who spends their day working in coffee shops, disabling your USB ports allows you to sip on that soy-latte with total peace of mind — who cares if the patron beside you or the barista is an undercover secret agent, dying to get hold of your device… Disabling your computer’s USB drives just made it a whole lot harder for them, and safer for you!
The Script:
Atera does not guarantee the integrity, availability, security, virus-free, safety, lawfulness, non-infringement, rights’ status, or functionality of the scripts. The use of the shared scripts is at your own risk. Scripts are provided “AS IS”. *
reg add HKLM\SYSTEM\CurrentControlSet\Services\UsbStor /v "Start" /t REG_DWORD /d "4" /f
Technical Notes:
This script blocks mounting of USB storage in Windows. It does not prevent other USB devices (keyboard, mouse, printer, etc.) from connecting to the system and potentially running drivers associated with them.