Display Correct Computer Name During OSD

Posted: April 17, 2015 in Configuration Manager, System Center Configuration Manager 2012
Tags: ,

Last year I blogged about how to show DP in use during OSD you can find that posting here.

I’ve gotten some questions on how to display the correct computer name in the background with bginfo instead of the MININT-XXXXXXX name.

I’ve created a script with the following lines;

'// Purpose: Used to display correct computer name during OSD
'// Version: 1.0 - April 17, 2015 - Odd-Magne Kristoffersen
'// This script is provided "AS IS" with no warranties
Set env = CreateObject("Microsoft.SMS.TSEnvironment")

and saved it as SetComputerName.vbs in the Tools\x86 folder of my MDT Toolkit Package.

I then modified STEP_01.BGI and STEP_02.BGI files provided in the MDT Toolkit Package to utilize this VBScript and display the information, below you see what changes you need to make to each of the provided BGInfo files. Alternatively, you can download a copy of them already modified here and replace the ones already existing in you Tools\x86 folder of your MDT Toolkit Package.
23When done update the MDT Toolkit Package and start a new deployment and you’ll be able to see the correct computer name during deployment as shown below.


  1. Thomas Forsmark Soerensen says:

    Hi, In your ScriptFiles package there is also a FindDP.vbs
    That is not working in my setup. I get an “Subscript out of range” error if I try to run it from a command prompt while the TS is running.
    On the bginfo screen nothing is shown as the DP. Any good suggestions?

  2. Thomas Forsmark Soerensen says:

    Hi, I tried the solution you described above, but the OSDCOmputerName is not show.
    It might be because it cannot find the script but I saved it in Tools\x86 as you mentioned above.
    Do you have any suggestions to what I can have done wrong?

  3. […] to Odd-Magne Kristoffersen blog post for the […]


    The files on onedrive are no longer available. When i try to edit BGinfo Step 1 and point to VBS i get an error: VBScript runtime error. LIne 7. ActiveX component cant create object “SMS.TSe”
    How do you edit bginfo files?

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.