Jump to content

how make access is denid for flash usb


RYU81

Recommended Posts


Maybe not exactly the same, but this is how i disallow them. 3 files the .reg the .adm and the batch to run them and deny the users group the right to the usbstor files.

usbstore.reg

---------------------------------------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR]

"Start"=dword:00000004

----------------------------------------------------------------------------------

usbstore.adm

----------------------------------------------------------------------------------

CLASS MACHINE

CATEGORY USB STORAGE

POLICY USB STORAGE DEVICES

KEYNAME "SYSTEM\CurrentControlSet\Services\USBSTOR"

EXPLAIN This policy allows the disabling of USB storage devices

PART "Startup Type" DROPDOWNLIST REQUIRED

VALUENAME "Start"

ITEMLIST

NAME "Disabled" VALUE NUMERIC 4

END ITEMLIST

END PART

END POLICY

END CATEGORY

-----------------------------------------------------------------------------------

usbblock.bat

------------------------------------------------------------------------------------

@echo off

Echo.

Echo Fixing Universal Serial Bus

Echo.

.\usbstore.reg

Echo.

Echo Applying Policy

Echo.

copy usbstore.adm c:\windows\sytem32\group policy\

Echo.

Echo Applying Security

Echo.

CACLS C:\windows\inf\usbstor.inf /D "users"

CACLS C:\windows\inf\usbstor.pnf /D "users"

-----------------------------------------------------------------------------------------------------

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...