In the situation where you want to reinstall a PC using a Standalone media, you will have to incorporate some way of naming the PC, or it will pick up a random name like MININT-XXXXX.
In a reinstallation scenario however, the PC will already have a Name assigned, and this name can quiet easily be picked up from the computers registry hive files.
To do this just run this .vbs script, before formatting the disk. It will pick up the name and assign it to the OSDComputerName variable, which will automatically be added to the Unattend.xml (or sysprep.inf if XP)
1 Set oShell = WScript.CreateObject("WScript.Shell") 2 Set env = CreateObject("Microsoft.SMS.TSEnvironment") 3 4 oShell.Run "cmd.exe /c REG LOAD HKLM\TempHive C:\windows\system32\config\system",0,True 5 6 env("OSDComputerName") = oShell.RegRead("HKLM\TempHive\ControlSet001\Control\ComputerName\ComputerName\computername")
If the drive holding the original OS does not resolve to C: just change that part of the script…
This post helped me solve my problem, more info on technet.
http://social.technet.microsoft.com/Forums/en-US/configmgrosd/thread/83b13457-345f-4138-9001-9a6ad1eec398
I need to place this in the Initialization before Format and Partition Disk?
Hi Michael, Do you have a solution for the same problem but when hardware comes from distributer and doesn´t have a OS installed?
Br Niclas
[…] http://blog.coretech.dk/mip/reuse-old-pc-name-during-standalone-osd/ […]
Hi to every one, the contents present at this web site are in fact
amazing for people knowledge, well, keep up the good work fellows.
Everything said made a great deal of sense. But, think on this, suppose you were tto wrige a aweome title?
I ain’t suggesting your contnt isn’t good, however what if you
added a title that grabbed a person’s attention? I mean Coretech Blog
Wine Bottles: You can paint these and use them as candle holders
and vases. We’d set them up on the baking sheet or other
surface. The other side of the easel is a chalkboard, so we also included
the MALA chalk in our purchase.
acai berry
Coretech Blog » Blog Archive » Reuse old PC name during Standalone OSD