Skip to content

Help with computername / unattend.xml

Featured Replies

Hi,

 

I have been imaging windows 8.1 with SCCM for a while with no issue. I have been using the install.wim in the iso as my reference image. I never got prompted for OOBE or had issues with computer names when doing it this way. I reimage would result in the machine being the same name as before. My co worker has now made reference images with some software and all updates installed. These were captured using MDT 2013. The first thing that happened was the OOBE popping up after the first reboot which I dont want. I wrote a unattend.xml file and applied to that task which skips OOBE but now the computer name changes to WIN-XXXXXXXX after imaging. This name will change every single time you image the same system causing clutter in AD and SCCM. Does anyone know how i can resolve this so if I reimage a computer the name stays the same?

 

Thanks,

 

Lee

You can use the variable; OSDComputerName in a task sequence like I do in my current place...
We set the value of a code and then...%serialnumber% so its something like: XXXX-%serialnumber%

This always works for us... and it won't be renamed afterwards.

  • Author

Thanks for the advice. I did add that variable to the collection. IT turns out I made a stupid mistake and the apply network settings was in the TS twice instead of one apply network settings and one apply windows settings. OOPS.

Hehe, we all make mistakes. That script that you're pointing to (that I wrote a while back) should always be used before the Setup Windows and ConfigMgr step, since that's when the OSDComputerName variable is written to the unattend.xml that ConfigMgr creates.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.