
Checking whether a device is enabled or disabled
Is there a programmatic way of determining whether a device (like a
network card) is in an enabled state or a disabled state? I know I
can create a
VBScript to run devmgmt.msc and use sendkeys to
enable/disable a device but I don't know how to do a check on the
device state before that.
Please advise.
Bryce