netsh and 'Interface Names'

  • Thread starter Thread starter graeme_smith77
  • Start date Start date
G

graeme_smith77

Hi all,

I need to change the Subnet Mask on a number of servers (some 2000,
some 2003 and even a few virtuals) and was wondering about doing this
via a batch script using NETSH.

Since these have been installed by various people over the years they
probably have a variety of Interface Names.
As the command line requires the Interface name I'm wondering if there
is a smart way around this.

What I'd really like to be able to do with a batch file is have a list
of netsh lines that change the Subnet mask on the Interface in use and
repond back that it was successful but I don't know if this is
feasable??

I may end up just having to change them manually?

Regards

Graeme
 
Hi all,

I need to change the Subnet Mask on a number of servers (some 2000,
some 2003 and even a few virtuals) and was wondering about doing this
via a batch script using NETSH.

Since these have been installed by various people over the years they
probably have a variety of Interface Names.
As the command line requires the Interface name I'm wondering if there
is a smart way around this.

What I'd really like to be able to do with a batch file is have a list
of netsh lines that change the Subnet mask on the Interface in use and
repond back that it was successful but I don't know if this is
feasable??

I may end up just having to change them manually?

Regards

Graeme

If your servers have a single network adapter then it should
be sufficient to use this syntax:
netsh interface ip set address local static 192.168.44.111 255.255.255.0
192.168.44.254 1
 
Back
Top