Jump to content

Recommended Posts

Posted

Hello,

For my unattended DVD, I want to call the IP configuration window for the computer's only LAN connecgtion in order to let the user specify an IP address. What is the command for that? So far, I have found "ncpa.cpl", but this only opens the overview where it shows all the network connections.

Also, what is the command to call the window where I can specify a computer name?

Or can I write these values directly into the registry? If so, the location for that would be fine too because then I would simply write a batch file which asks for the IP and the computer name and writes it into the registry later.

I hope somebody can help me with that ...

Best regards,

mf_2


Posted

I solved the problem!!

Here's what I wrote in the batch file:

REG add "HKLM\SYSTEM\ControlSet001\Control\ComputerName\ComputerName" /v ComputerName /t REG_SZ /d %pc% /f

REG add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v "NV Hostname" /t REG_SZ /d %pc% /f

REG add "HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName" /v ComputerName /t REG_SZ /d %pc% /f

REG add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t REG_SZ /d %pc% /f

Replace %pc% with the desired computername.

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...