Jump to content











Photo
- - - - -

WINPE boot iso's and customize PC name


  • Please log in to reply
4 replies to this topic

#1 ITdude

ITdude
  • Members
  • 4 posts
  •  
    Netherlands

Posted 14 March 2017 - 06:50 PM

Hi,

 

I have created a thin client image USB using the HP software ThinUpdate.

This starts up in a WinPE 10 environment.

 

the only downside is that the computer name that is given to the thin client is the name that WinPE uses.

I want the name that WinPE starts up with is different.

What would be great that it chooses the name by type.

 

For example a mobile thin client uses MTC-%serialnumber% and a thin client uses TC-%serialnumber%

is this possible?

 

This needs to be added to an existing WINPE usb stick.

I have no experience in editing an existing winpe stick.

so i need a little tutorial for that to.

 

Also it would be nice to boot to another ISO from the commandline in winpe for example hironsboot.

this is not a must but would be nice  :) .



#2 netlord

netlord

    Newbie

  • Members
  • 28 posts
  •  
    Germany

Posted 15 March 2017 - 08:24 AM

Hi

 

I know that it would be possible via powershell, but at this moment i still use an batch.

@echo off
for /F  "tokens=1 delims= " %%i IN ('wmic BIOS get SERIALNUMBER    ^/value^|find ^/i "SerialNumber"') DO (set %%i)

@echo Windows Registry Editor Version 5.00 >> set_hostname.reg
@echo\ >> set_hostname.reg
@echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters] >> set_hostname.reg
@echo "Hostname"="%SerialNumber%" >> set_hostname.reg
@echo "NV Hostname"="%SerialNumber%" >> set_hostname.reg
@echo\ >> set_hostname.reg


regedit /s set_hostname.reg >nul

powershell is on the todo-list



#3 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13443 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 15 March 2017 - 03:41 PM

ONLY to "simplify":

@echo off
for /F "tokens=1 delims= " %%i IN ('wmic BIOS get SERIALNUMBER ^/value^|find ^/i "SerialNumber"') DO (set %%i)
(
echo Windows Registry Editor Version 5.00
echo\ 
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP\Parameters]
echo "Hostname"="%SerialNumber%"
echo "NV Hostname"="%SerialNumber%"
echo\ 

) > set_hostname.reg


regedit /s set_hostname.reg >nul

(you can group Echo commands and redirect all of them once)

 

:duff:

Wonko



#4 ITdude

ITdude
  • Members
  • 4 posts
  •  
    Netherlands

Posted 15 March 2017 - 07:43 PM

sounds good!

Is it also possible to look up the model of the pc/laptop? 
and make an IF command with that?

 

And is it also possible to edit an registry from an active OS with a winPE CMD?



#5 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 13443 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 15 March 2017 - 09:07 PM

 

And is it also possible to edit an registry from an active OS with a winPE CMD?

You mean non-active (or "offline"), the active will be the PE you will be running.

Of course it is possible, either mounting the hives or using the offline registry tool.

http://reboot.pro/to...fline-registry/

 

:duff:

Wonko






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users