Deployment and Imaging Group

 View Only
  • 1.  Keeping same computer name when reimaging

    Posted Dec 06, 2017 02:04 PM

    Hello, my apologies if this has already been posted elsewhere but I was not able to find anything on it.


    I am working on creating a Windows 10 image job for our environment. We have about 3500 workstations in total. I have been able to capture and deploy a windows 10 enterprise image, however, it always images with a unique name. When we reimage we typically need the computer to retain the same name. For labs/classrooms that have 25+ computers, it would be quite tedious to have to manually rename each computer after reimaging. For windows 7, we were able to use the computername string in the unattend file. I found the following article from microsoft that this is no longer possible in windows 10.

    Has anyone else encountered this with windows 10? Any suggestions?


    Any feedback would be appreciated.



  • 2.  RE: Keeping same computer name when reimaging
    Best Answer

    Posted Dec 07, 2017 02:59 PM

    Hey Dan,

    This functionality is native to GSS when using the built-in create/deploy image tasks.  The way it works is that the default answer file on the server contains a token - usually something like this:


    This token/variable will resolve to the unique computer name of each system you are imaging.

    Example: if you are imaging Computer1, %COMPNAME% will resolve to Computer1 and that is the name it will have when sysprep runs after imaging. Same goes for Computer2, Computer3, etc...

    If for some reason this is not working natively, I can also help you force this to occur with native batch/cmd scripting, but normally this just works out of box.

    PS: One prerequisite for this is that the system must be known to the altiris database as the name you wish to keep.  If the computer record is brand new to the database it will usually be set to the serialnumber of the system which may be where your hangup is occuring.  If the system is known to the database as the serialnumber that is the name it will keep after imaging.  To fix this, simply reconfigure the name to "Computer1" so that the database has that value.  Once you do this, you can reimage the system and it will preserve the name "Computer1."

    If this solves your issue, kindly mark this as a solution.  Thanks :)


  • 3.  RE: Keeping same computer name when reimaging

    Posted Dec 08, 2017 09:39 AM

    I had actually tried using <ComputerName>%COMPNAME%</ComputerName> without success. I tried it again after moving to the latest build and it now works for me. 


    For anyone else, I was using 1607 and now it is working on 1709.

  • 4.  RE: Keeping same computer name when reimaging

    Posted Dec 08, 2017 11:23 AM

    Great! glad it is working for you :)

  • 5.  RE: Keeping same computer name when reimaging

    Broadcom Employee
    Posted Dec 12, 2017 07:00 AM

    hi all, my name is Arsen)) I am a new member here )) thanks for your post , nice to meet you all here, in this web site