Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
How to programatically restrict access to USB (removable) driver? More exactly, I need to write a program that sets the password on the USB driver. Can someone explain how to start or bring an example?
Posted

Yes, and that's quite complicated...
First, there is no way of setting a password on a device driver.(except if you write the device driver yourself, or you install a filter driver on top of the USB driver or disk driver)
Second, editing the local policies or group policies programmatically is not for the faint of heart...
http://www.codeproject.com/Questions/74596/programming-in-gpedit-msc.aspx[^]
 
Share this answer
 
v2
Access to USB devices is controlled in the system policy.
Computer->Administrative Templates->System->Device installation restrictions.
use gpedit.msc to set these policies at the local level, in a domain setting, ask the administrator to update the Group Policy hierarchy.

Saurabh.Garg:
OP specifically asked how to control access programmatically.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900