"harryajh" <> wrote ...
> Rather than re-enable via control panel etc... can I do it from the
> command prompt e.g something like net start "Realtek RTL8139/810x
> Family Fast Ethernet NIC"
Hi Harry
My first thought was that some variety of the "netsh" command, should do
this. But I can't work out the correct syntax (if any).
An alternative which will certainly work, but would require some small
effort on your part to set up, is to use the WMI Win32_NetworkAdapter Class
class. This class has an Enable method, which you could call in a short
VBScript. You'll find a sample scrip to enable an adapter, in the MSDN doco
for the method:
http://msdn2.microsoft.com/en-us/library/aa390385.aspx class.
Put the script in a file with a *.vbs extension, then run it at a command
prompt by typing the file name.
There may be other ways as well, but this should definitely work. Note that
you may need to open a command prompt "As Administrator" for this to work.
Hope it helps.
--
Andrew McLaren
amclar (at) optusnet dot com dot au