*or* has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have some minimal experience with Perl and I was asked to automate the control of device connectivity to a PC (XP OS). When you plug a USB device to the PC, the USB is being added to the PC USB controllers (you can view it in the Computer Management) and you can also Update Driver, Disable, Uninstall etc. I want to sent a command from perl script that will disable this port \ this USB. How do I do it by Perl? win32 module? I which I had an example.... Many thanks...

Replies are listed 'Best First'.
Re: Automate the control of USB
by Lu. (Hermit) on Aug 16, 2006 at 09:22 UTC
    Did you try to have a look at Device::USB? I know it has been written for Linux, but if you can install libusb-win32 on your PC, maybe it can work.
    At least, it could give you some hints as to how to do it on Windows.
A reply falls below the community's threshold of quality. You may see it by logging in.