In one of my project, i have a requirement that i need to strict specific users accessing CD drive, Floppy drive, internet, and USB drives throuch which he can copy some important files. I have created user and now i have to apply these permissions.
Please throw some pointers in this area. Thanks in advance.
How to restrict user not to access any external device
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Jan 15, 2010, 7:50 PM EST
1. Download Devcon file at http://support.microsoft.com/kb/311272 and add it to your project folder.
2. Code:
using System.Diagnostics; ... //create Prcess start info object with devcon.exe ProcessStartInfo PSI = new ProcessStartInfo(@"C:/Devcon/i386/devcon.exe"); // disable an USB CDROM PSI.Arguments = @"disable *USB*CDROM*"; Process.Start(PSI); //enable USB CDROM PSI.Arguments = @"enable *USB*CDROM*"; Process.Start(PSI); ...// if you have specific devive ID or type such as Flash, Ipod, Samsung ....
// you can replace it in "CDROM" expression
It works without Administor permission 'cause .Net "trust" devcon.exe