Arnout blogs

Everyday solutions

Arnout blogs header image 2

Script to rename Network Connections

May 23rd, 2008 · 5 Comments

Today I needed a script to rename Network Connections on servers with Windows Server 2003, based on their ip addresses.

I chose to use vbscript with a mix of WMI and “native vbscript”.

The command line usage is:

Cscript.exe RenameNics.vbs <”Interface Name”> <ip address suffix>

Example

Cscript.exe RenameNics.vbs “”Front End” 192.168.3

The script is attached in a zip file:

RenameNics.zip

If you like the script, please leave a comment!

Like this script, consider:

convert this post to pdf.

Tags: Windows Scripting

5 responses so far ↓

  • 1 Remko // Jun 21, 2008 at 11:44 pm

    Cool script, works nicely!

  • 2 Becky // Oct 29, 2008 at 12:22 am

    Good post.

  • 3 2K3 - Name der Netzwerkverbindung "zur // Feb 11, 2009 at 7:10 pm

    [...] Schaue mal in die Links: Hey, Scripting Guy! How Can I Rename a Local Area Connection? Script to rename Network Connections [...]

  • 4 Hans // Mar 16, 2009 at 3:43 pm

    This is a very nice script…. first set all interfaces to “MyInterface” where IP = 192.168 and then use netsh to change DNS and WINS on multiple servers…. just great!

    Thanks!

  • 5 Chonn // Apr 1, 2009 at 4:39 am

    AWESOME!!!

Leave a Comment