Start by getting devcon.exe if you don't already have it. Next work with devcon.exe to understand what it can do. Then look at the .Run method of the WshShell object to run devcon.exe with whatever command line parameters you decide you need.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]