Home
»
Discussion Forums
»
Scripts & Agent Procedures
»
Disable the use of USB Mass storage devices/Pendrives
Subscribe via RSS
Share this
Similar Posts
Disable Mass Storage (USB)
by
JohnyA
on
Nov 24, 2010
Suggested Answer
Disable Mass Storage USB -- MAC
by
Elliot Tabush
on
Dec 4, 2013
Security - Enable & Disable Mass Storage Support (USB)
by
LegacyPoster
on
May 19, 2010
USB Storage Devices
by
LegacyPoster
on
Aug 26, 2008
Disable USB Storage and CD Rom
by
Gunther
on
Apr 2, 2011
Not Answered
View More
Details
1
Reply
0
Subscribers
Posted
over 15 years ago
Scripts & Agent Procedures
Disable the use of USB Mass storage devices/Pendrives
Posted by
LegacyPoster
on
Oct 5, 2005 1:27 AM
This script will stop windows being able to user USB pen drives and mass storage devices, without the need to stop USB support in the BIOS.
Script Name: Disable USB Mass Storage
Script Description: Disables USB Mass Storage devices
IF True
THEN
Set Registry Value
Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor\Start
Parameter 2 : 4
Parameter 3 : REG_DWORD
OS Type : 0
ELSE
The script below enables USB storage again
Script Name: Enable USB Mass Storage
Script Description: Enables USB Mass Storage Devices
IF True
THEN
Set Registry Value
Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor\Start
Parameter 2 : 3
Parameter 3 : REG_DWORD
OS Type : 0
ELSE
Legacy Forum Name: Disable the use of USB Mass storage devices/Pendrives,
Legacy Posted By Username: jnuttall
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
Posted by
LegacyPoster
on
Oct 5, 2005 1:27 AM
This script works great -- is there any way to do something similiar with CD-ROMS and Floppy drives?
edit --
I realized how easy of a question this actually was.
I now have the ability to block CD-ROMS, FLOPPIES, and USB STORAGE DEVICES.
Simply change:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesUsbStorStart
to
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesCdromStart
or
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesFlpydiskStart
Works great.
Legacy Forum Name: System Administration Scripts,
Legacy Posted By Username: cscovil
You have posted to a forum that requires a moderator to approve posts before they are publicly available.