Reuse old PC name during Standalone OSD

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)

 

If the drive holding the original OS does not resolve to C: just change that part of the script…

By | 2011-09-06T13:01:15+00:00 September 6th, 2011|General info, OS Deployment|10 Comments

About the Author:

Michael Petersen
Twitter: @OSDeployLinkedin: Michael PetersenMicrosoft Community Contributor

10 Comments

  1. Jeffrey Persson September 7, 2011 at 8:44 - Reply
  2. Mike November 17, 2011 at 20:42 - Reply

    I need to place this in the Initialization before Format and Partition Disk?

  3. Niclas Embretsén January 24, 2012 at 12:50 - Reply

    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

  4. ตารางบอล March 15, 2014 at 13:34 - Reply

    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.

  5. rea May 27, 2014 at 21:40 - Reply

    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

  6. dry erase board paint June 13, 2014 at 15:45 - Reply

    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.

  7. acai berry September 28, 2014 at 23:59 - Reply

    acai berry

    Coretech Blog » Blog Archive » Reuse old PC name during Standalone OSD

Leave A Comment