way to enable/disable NIC via script or ??? 
Author Message
 way to enable/disable NIC via script or ???

Does anyone know of a way to script the disabling and enabling of a NIC?

The goal is to use a ping to detect the connection state and if the ping
yields no response then to disable and enable the NIC, then restart the
firewall service.

thanks for any help you can give!



Tue, 16 Nov 2004 07:26:11 GMT  
 way to enable/disable NIC via script or ???

Quote:

> Does anyone know of a way to script the disabling and enabling of a NIC?

> The goal is to use a ping to detect the connection state and if the ping
> yields no response then to disable and enable the NIC, then restart the
> firewall service.

devcon.exe maybe?

Take a look at this thread:


Subject: Enable/disable network adapter
Newsgroups: microsoft.public.win2000.cmdprompt.admin
Date: 2002-02-28 11:43:59 PST
http://groups.google.com/groups?hl=en&th=5c30bf627c5883ae&rnum=12

For more information about devcon.exe (W2K/XP DDK)



Subject: Re: Command-line equivalent to Device Manager's "Scan for hardware
changes"
Newsgroups: microsoft.public.win2000.cmdprompt.admin,
microsoft.public.win2000.general, microsoft.public.win2000.hardware,
microsoft.public.win32.programmer.tools, microsoft.public.win32.programmer.ui,
microsoft.public.win32.programmer.wmi
Date: 2002-01-07 02:00:08 PST
http://groups.google.com/groups?hl=en&selm=ebVUeG2lBHA.1964%40tkmsftn...

- and -

this MS Knowledge Base article:
http://support.microsoft.com/support/kb/articles/q311/2/72.asp

--
torgeir



Tue, 16 Nov 2004 08:01:04 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. way to enable/disable NIC via script or ???

2. way to enable/disable NIC via script or ???

3. Disabling a users NIC via script

4. Disable/Enable a NIC in Windows 2000

5. enable / disable tasks via script

6. How to disable-Enable Local area Connection via script

7. Enabling/Disabling IE Scripting via WSH

8. Enable/Disable an NIC using VB.bet

9. Disable/Enable a NIC in Win2000

10. Disable/Enable a NIC in Windows 2000

11. Disable/Enable a NIC in Windows 2000

12. Enable and Disable NIC

 

 
Powered by phpBB® Forum Software