How can i rename the hostname?
from minint-fgfjtrjd
to
minint-vnc?
thanks for the answers
Rename Hostname
Started by
bagfix
, Jun 15 2011 08:20 PM
3 replies to this topic
#1
Posted 15 June 2011 - 08:20 PM
#3
Posted 16 June 2011 - 05:21 AM
I have a REG-File,
"set_computername.reg", with the following content:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName]
@="mnmsrvc"
"ComputerName"="MININT-VNC"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName]
"ComputerName"="MININT-VNC"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tcpip\Parameters]
"Hostname"="minint-vnc"
"NV Hostname"="minint-vnc"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
@="mnmsrvc"
"ComputerName"="MININT-VNC"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
"ComputerName"="MININT-VNC"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters]
"Hostname"="minint-vnc"
"NV Hostname"="minint-vnc"
I do not know in which file I should insert the calling, respectively in which order?
-> x:\windows\regedit /s "x:\Program Files\set_computername.reg"
winpeshl.ini?
start.cmd?
startnet.cmd?
when I call the "reg file" after the start of winpe, then it works.
Thanks
"set_computername.reg", with the following content:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName]
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ComputerName]
@="mnmsrvc"
"ComputerName"="MININT-VNC"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\ComputerName\ActiveComputerName]
"ComputerName"="MININT-VNC"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tcpip\Parameters]
"Hostname"="minint-vnc"
"NV Hostname"="minint-vnc"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
@="mnmsrvc"
"ComputerName"="MININT-VNC"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
"ComputerName"="MININT-VNC"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters]
"Hostname"="minint-vnc"
"NV Hostname"="minint-vnc"
I do not know in which file I should insert the calling, respectively in which order?
-> x:\windows\regedit /s "x:\Program Files\set_computername.reg"
winpeshl.ini?
start.cmd?
startnet.cmd?
when I call the "reg file" after the start of winpe, then it works.
Thanks
Edited by bagfix, 16 June 2011 - 05:28 AM.
#4
Posted 16 June 2011 - 03:56 PM
[variables]
%ProgramTitle%=set_computername
%ProgramEXE%=set_computername.reg
%ProgramFolder%=
[Interface]
pCheckBox3="Add set_computername.reg to Autorun.cmd",1,3,312,1,146,18,True
[Process]
If,%pCheckBox3%,Equal,True,Add_Shortcut,AutoRun,,%SystemRoot%\system32\%ProgramEXE%,%ProgramTitle%
or
Hive_Load,Default
Reg_add,0x1,%reg%\Software\Microsoft\Windows\CurrentVersion\RunOnce,%ProgramTitle%,"hiderun %ProgramEXE%"
Hive_UnLoad,Default
%ProgramTitle%=set_computername
%ProgramEXE%=set_computername.reg
%ProgramFolder%=
[Interface]
pCheckBox3="Add set_computername.reg to Autorun.cmd",1,3,312,1,146,18,True
[Process]
If,%pCheckBox3%,Equal,True,Add_Shortcut,AutoRun,,%SystemRoot%\system32\%ProgramEXE%,%ProgramTitle%
or
Hive_Load,Default
Reg_add,0x1,%reg%\Software\Microsoft\Windows\CurrentVersion\RunOnce,%ProgramTitle%,"hiderun %ProgramEXE%"
Hive_UnLoad,Default
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users