Wrong PC name after deployment

 

A while ago, I noticed that the PC name specified during the "Import Computer Name" part of SCCM didn’t stick  trough out the entire deployment process..

The strange thing was that this wasn’t the case for all my task sequences. What I then noticed was that the name (when it changed) always took the WINPE random name like  "MININT-XXXXXX", which led me to think that it properly had something to do with the MDT integrated TaskSequences, and what do you know, it did!

It then got me thinking, that the MDT scripts properly updated sysprep.inf with the variable "OSDcomputername" (MDT variable) and not "_SMSTSMachineName" (SCCM variable).

I then added a "Set Task Sequence Variable" entry in my TS, were I defined  "OSDcomputername" with the value of "%_SMSTSMachineName%" and that actually did the trick. The name continued to be the name defined in SCCM.

image

I’m pretty happy this worked, as i think the MDT integrating supply you with a lot of features that i wouldn’t want to be without.  

 

Advertisements
This entry was posted in SCCM / OSD. Bookmark the permalink.

One Response to Wrong PC name after deployment

  1. Jakob says:

    Do you have define something in the sysprep.inf file, og do the OSDComputername just override, what is set in sysprep.inf ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s