Using VBscript how can I disable a network card?
The net card is configured with a static IP, so I cannot use netsh interface
set interface...

Thanks in advance

Re: How to disable net card by Dave

Dave
Mon May 02 18:01:52 CDT 2005

Might just use netsh to assign it an unreachable IP address.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"hernia" wrote:
| Using VBscript how can I disable a network card?
| The net card is configured with a static IP, so I cannot use netsh
interface
| set interface...
|
| Thanks in advance



Re: How to disable net card by Torgeir

Torgeir
Tue May 03 11:20:22 CDT 2005

hernia wrote:

> Using VBscript how can I disable a network card?
> The net card is configured with a static IP, so I cannot use netsh interface
> set interface...
>
> Thanks in advance
Hi

With VBScript and Shell.Application (Win2k and WinXP), you can
disable/enable the network connection:

From: Michael Harris
Subject: Re: How to disable-Enable Local area Connection via script
Newsgroups: microsoft.public.scripting.vbscript
Date: 2002-03-25 11:36:10 PST
http://groups.google.com/groups?threadm=OcFYOQD1BHA.2848%40tkmsftngp05



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx