Jump to content











Photo
- - - - -

Rename Hostname


  • Please log in to reply
3 replies to this topic

#1 bagfix

bagfix
  • Members
  • 3 posts
  •  
    Germany

Posted 15 June 2011 - 08:20 PM

How can i rename the hostname?

from minint-fgfjtrjd

to

minint-vnc?

thanks for the answers

#2 RoyM

RoyM

    Frequent Member

  • .script developer
  • 420 posts
  • Interests:"Booting and Owning".
  •  
    United States

Posted 15 June 2011 - 11:33 PM

http://reboot.pro/14...boot.pro/14234/

#3 bagfix

bagfix
  • Members
  • 3 posts
  •  
    Germany

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

Edited by bagfix, 16 June 2011 - 05:28 AM.


#4 RoyM

RoyM

    Frequent Member

  • .script developer
  • 420 posts
  • Interests:"Booting and Owning".
  •  
    United States

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users