Skip to content

Setting Hostname before Applying Operating System

Featured Replies

I have a working Online Windows 7 OSD with the Unknown Computers Collection in SCCM 2007 SP2. I want to make a Offline USB deployment. I want a script to prompt for a Hostname before the Applying Operating System in the TS. If someone can post step by step procedure. I tried the MDT computername.vbs but it did not work. Do I need to add a TS Variables?

 

Thanks.

  • Author

Not sure if this will help, but this is what i use for unknown computer support and works like a charm.

 

http://blogs.catapultsystems.com/javery/archive/2009/01/23/have-os-deployment-ask-for-a-computer-name.aspx

 

I do have a VBS script in a package and run it from the TS via a run command line like the tech article say's to do. I have tried the following script computername.vbs from MDT 2010 and it fails to run in the task sequence. I get an error that the oEnvironment variable has not been defined.

 

Option Explicit

 

Dim numCount

Dim strComputerName

Dim objOSD

Dim mname

 

strComputerName = InputBox ("Please enter a name for the new computer:" ,"New Computer Name",mname,10,10)

if strComputerName = "" Then

Wscript.Echo "You must enter a computer name."

Else

oEnvironment.Item("OSDNEWMACHINENAME") = strComputerName

oEnvironment.Item("OSDCOMPUTERNAME") = strComputerName

End If

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.