Jump to content

Recommended Posts

Posted

Is there a generic way in script to disable the USB ports and CDROM drive. I can disable the appropriate devices in the registry, but if the hardware changes then the tweaks don't work anymore. Can it be done at a higher level?


Posted

You can use DevCon as an alternative to Device Manager. I believe this command disables the basic (onboard) USB-controllers:

devcon disable USB\*
Edit: oh yeh, forgot the command for CDROM-drives :):
devcon disable IDE\CDROM*

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...