Home All Groups Group Topic Archive Search About

Disable all unused / disconnected NICs in Windows Server 2003 ??



Author
16 Nov 2007 9:11 AM
Jeffrey Kusters
Hi,

We have implemented a fully automated deployment method for our Windows
Server 2003 based Citrix servers (using Altiris). The last step I can't quite
figure out is how to automatically disable any unused NIC's. Most of our
servers have two or more NICs and only one is connected. Unfortunately they
don't always use NIC1 so I can't simply use NETSH to disable NICs 2, 3 and so
on.

Does anyone know of a script that walks through all NICs and disables the
unused / disconnected ones??

Author
19 Nov 2007 10:52 PM
Kuma
On Nov 16, 6:11 pm, Jeffrey Kusters <Jeffrey
Kust***@discussions.microsoft.com> wrote:
> Hi,
>
> We have implemented a fully automated deployment method for our Windows
> Server 2003 based Citrix servers (using Altiris). The last step I can't quite
> figure out is how to automatically disable any unused NIC's. Most of our
> servers have two or more NICs and only one is connected. Unfortunately they
> don't always use NIC1 so I can't simply use NETSH to disable NICs 2, 3 and so
> on.
>
> Does anyone know of a script that walks through all NICs and disables the
> unused / disconnected ones??

Take a look here:
http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/339009949731

or here

http://groups.google.com/group/microsoft.public.scripting.vbscript/browse_frm/thread/9f82ef9e7bb12ff3/2b3fab1141c6c93e#2b3fab1141c6c93e

Beginning with Vista and Server 2k8 the Win32_NetworkAdapter class has
a disable method which makes life much easier.

GL
Author
20 Nov 2007 7:30 AM
Jeffrey Kusters
Thanks for the links. The script in the first link works like a charm!


Show quote
"Kuma" wrote:

> On Nov 16, 6:11 pm, Jeffrey Kusters <Jeffrey
> Kust***@discussions.microsoft.com> wrote:
> > Hi,
> >
> > We have implemented a fully automated deployment method for our Windows
> > Server 2003 based Citrix servers (using Altiris). The last step I can't quite
> > figure out is how to automatically disable any unused NIC's. Most of our
> > servers have two or more NICs and only one is connected. Unfortunately they
> > don't always use NIC1 so I can't simply use NETSH to disable NICs 2, 3 and so
> > on.
> >
> > Does anyone know of a script that walks through all NICs and disables the
> > unused / disconnected ones??
>
> Take a look here:
> http://episteme.arstechnica.com/eve/forums/a/tpc/f/12009443/m/339009949731
>
> or here
>
> http://groups.google.com/group/microsoft.public.scripting.vbscript/browse_frm/thread/9f82ef9e7bb12ff3/2b3fab1141c6c93e#2b3fab1141c6c93e
>
> Beginning with Vista and Server 2k8 the Win32_NetworkAdapter class has
> a disable method which makes life much easier.
>
> GL
>

AddThis Social Bookmark Button