mf_2 Posted July 3, 2007 Posted July 3, 2007 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
glent Posted July 3, 2007 Posted July 3, 2007 http://www.petri.co.il/configure_tcp_ip_from_cmd.htmHope this helps
mf_2 Posted July 3, 2007 Author Posted July 3, 2007 Thanks a lot, now the only thing left is the computer's name.
mf_2 Posted July 3, 2007 Author Posted July 3, 2007 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% /fREG add "HKLM\SYSTEM\ControlSet001\Services\Tcpip\Parameters" /v "NV Hostname" /t REG_SZ /d %pc% /fREG add "HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName" /v ComputerName /t REG_SZ /d %pc% /fREG add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "NV Hostname" /t REG_SZ /d %pc% /fReplace %pc% with the desired computername.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now