Block
the usage of USB flash drives but not affecting USB mouse or other peripherals
that using USB port.
In that case follow the steps.
Start ->Run ->Regedit
In Regedit fint he key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
"Type"=dword:00000001
"Start"=dword:00000003
change the value of "Start" from : dword:00000003 to : dword:00000004 to deactivate,
Meaning of "dword"
3 for enable and 4 for disable.
This will affect even without restart the PC
After this, you can't see USB even in Disk management
In that case follow the steps.
Start ->Run ->Regedit
In Regedit fint he key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR
"Type"=dword:00000001
"Start"=dword:00000003
change the value of "Start" from : dword:00000003 to : dword:00000004 to deactivate,
Meaning of "dword"
3 for enable and 4 for disable.
This will affect even without restart the PC
After this, you can't see USB even in Disk management