Click here to Skip to main content
15,887,990 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi Guys,

Looking for guidance or help on below scenario:-

1) USB in machines are blocked via GPO ie any storage devices can not be used in machines.
2) Mouse/Keyboard are working as they are not storage devices.
3) Would like to allow specific USB storage device by registry or at application run time but through code only, not from GPO.

Thanks in advance.

What I have tried:

Trying to find out the way...!
Posted
Updated 2-Jul-18 5:35am

Quote:
Looking for guidance or help on below scenario:-

short answer: GPO is set for security reasons, you can bypass it if you have admin credentials.
 
Share this answer
 
The only way to do that would be if the app was running as an admin account.

You'd be doing the same registry pokes as the GPO does.

The problem with your little idea is that there is no way to allow only a single device without allowing all devices of the same type to work once your app enables access for that device type.

Oh, and you have no way of stopping GPO refresh which will just put the registry values back to what they are supposed to be regardless of what you're app did to them.
 
Share this answer
 
Group policy is setup for a reason. Most likely to stop people like you hacking corporate systems.
 
Share this answer
 

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