Jump to content

Recommended Posts

Posted

How do I name a network connection something unattended? I would like the name to be changed from Local Area connection to something more of my choosing, such as Realtek Gig, VMware NIC, etc.

(This is in an NLited fully functional install)

Jim


Posted (edited)

No reply yet !

Using getmac.exe from sdk and reg.exe

@echo off

:: Change example by your choice - Avoid accent

set connName=example

::

set file=%random%.$$1

set k1=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}

::

getmac /nh /fo list >%file%

::

FOR /F "skip=1 tokens=1,2* delims={,}" %%a in (%file%) do set k2={%%b}

set fullkey=%k1%\%k2%\Connection

::

REG ADD %fullkey% /v Name /t reg_sz /d %connName% /f >NUL

::

del %file%

Tested on a single nic pc

HTH

Edited by Gogol
  • 3 weeks later...
Posted

You can use the netsh.exe tool, executed via a batch file like this:

netsh interface set interface name="Local Area Connection" newname= "Prod"

Posted

worked a treat tguy, thanks for that a slooking through the help i couldn't see anything obvious.

P.S; just tested yours above and worked like magic

Posted

The quickest way is to set the connection name in your winnt.sif for new installs so you don't have to change it later

[params.Adapter1]

INFID=*

ConnectionName="Type name of connection here"

params.Adapter1 is usually the network interface

parama.Adapter2 is usually the 1394 connection

you may have to experiment as it depends on how you mobo bios detects its inbuilt devices and pci cards.

If your system is already up and running the easiest (I find anyway), is to open network connection - right click on the connection you want to change and select rename.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...