Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is there a way through command line to uninstall the entry under DVD/CD-ROM drives in device manager? Somehow someone applied a GPO on our top level domain and it's affected a number of things, I've resolved the other issues but when users try to access their DVD drive it says Access is Denied. Currently as a workaround if we manually go into device manager and right click and remove the DVD drive and reboot the machine it reinstalls it and then when a user tries to access it, it is fine. I'm wondering if there's a command I can push out to all machines to take care of this without having to run through that manual process on each machine.

share|improve this question

1 Answer 1

There is a tool from Microsoft called devcon.exe that can manipulate devices from the commandline like you're looking for. If you need the x64 version, which I assume you do since this is 2013, you have to jump through a couple of hoops, but it's available and can do what you need it to.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.