Change loopback adapter name with script

Answered Change loopback adapter name with script

  • Wednesday, October 24, 2012 10:30 PM
     
     

    I am looking for a script that can detect the loopback adapter and rename it (so that it shows as a different name in the "network connections" gui in windows XP).

    i thought i could just use "netsh int set int name=oldname newname=newname" but it appears that the old name is not consistent on all of our computers. for example, on some computers it's "local area connection 2" and on other computers its "local area connection 3".

    i found a powershell script that will do it (in the link below) but our machines don't have powershell installed (so i don't think they can run powershell scripts).

    http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/f6a4c454-6088-4022-8f0d-d73181247856/


    Yeah Buddy!

All Replies

  • Wednesday, October 24, 2012 11:00 PM
     
     

    Are you nuts?

    The loopback adapter is a non-existent adapter that is generated each time th system is booted.  It is a fundamental component of all IP based systems.  It is always required as "loopback".  Changing its naem would cause unbelievable problems through all of IP-domainia.

    I suspect you are an agent  of Ol Quesadilla that nefarious group trying to sqoze tomns of high cholestral cheese into out networks.  This is an attack on the heart of the system.

    On the serious side:

    The network service, if enabled, generates the local loopback route.  It can be identified via the entry in a file in this location: %windir%\system32\drivers\etc  called 'HOSTS"

    YOu can add entries ofr cahnge entries in tehis file andf the loopback name will be changed at teh IP layer although many services and applications will only use internal APIs or the default IP to access teh lo0calloopbaqck adapter.

    LPC which defines all local API calls to teh OS are proxied to teh RPC service  or to the local machine via th e loopback adapter.  Altering this can destabilize the world.  Armageddon would be inevitable.  Proceed with utmost caution.

    Sample HOSTS file:

    127.0.0.1 localhost
    127.0.0.1 goobers_home
    127.0.0.1 fake_local_host
    192.168.1.102 PCVWS2
    192.168.1.102 PCVWS1
    173.220.189.163 JOENET


    ¯\_(ツ)_/¯

  • Thursday, October 25, 2012 2:28 PM
     
     

    Wrong loopback adapter. i am talking about this one.

    http://support.microsoft.com/kb/842561?wa=wsignin1.0

    By the way, you might want to type a little slower because nearly every word in your response was mistyped. I understand how that is acceptable when text messaging our friends but it makes it really hard to understand what you are talking about.


    Yeah Buddy!

  • Thursday, October 25, 2012 3:28 PM
     
     

    Just rename it like any other adapter.


    ¯\_(ツ)_/¯

  • Thursday, October 25, 2012 10:27 PM
    Moderator
     
     

    Are you nuts?

    JRV,

    The forums are based around encouragement and sharing knowledge/experience.

    Please try to be helpful without being offensive to others. 

    Also, a loopback adapter is a very different technology from the loopback address that you eluded to.

  • Thursday, October 25, 2012 10:34 PM
    Moderator
     
     Answered

    You can use NetSH to rename the interface - http://technet.microsoft.com/en-us/library/cc770948(v=ws.10).aspx#BKMK_5 

    example: netsh.exe interface set interface name = "Old Name" newname = "New Name"

    PowerShell 3: Rename-NetAdapter -Name "Old Name" -NewName "New Name" 


    Blog: http://scriptimus.wordpress.com