Introduction

Changing the computer name during deployment can be essential, especially in environments where unique naming conventions are required. SCCM 2012 allows you to achieve this by adding the OSDComputername variable to standalone task sequence media.

Creating the Standalone Media

  1. Open the SCCM console and navigate to “Software Library”.
  2. Select “Operating Systems” and then “Task Sequences”.
  3. Right-click on your task sequence and select “Create Task Sequence Media”.

Select Media Type

Choose “Stand-alone media” and click “Next”. In this example, we’ll create an ISO that can later be transferred to a USB drive.

Specify Media Details

  1. Choose “ISO” and specify a file name and location for the ISO file.
  2. If needed, set a password for the media.
  3. Select the task sequence you want to include in the media.
  4. Choose a distribution point that contains the necessary packages.

Add the OSDComputername Variable

In the “Customization” section, add the variable OSDComputername to allow input for the computer name during deployment.

  1. Click “New Variable” and enter OSDComputername as the variable name.
  2. Click “Next” to proceed with the media creation.

Complete Media Creation

Review the settings and click “Next” to start creating the ISO file. This process may take a few minutes. Once completed, you will have a standalone media that prompts for a computer name during deployment.

Deploying with Standalone Media

  1. Transfer the created ISO to a USB drive, if necessary.
  2. Boot the target machine from the USB drive or ISO.
  3. During the deployment process, you will be prompted to enter the computer name. This value will be assigned to the variable OSDComputername and used to set the computer name in the task sequence.

Task Sequence Variables Reference

Here are some useful built-in task sequence variables that you can use in SCCM 2012:

  • _SMSTSAdvertID: Stores the current running task sequence advertisement ID.
  • _SMSTSBootImageID: Stores the boot image package ID if associated with the task sequence.
  • _SMSTSMachineName: Stores the computer name for logging status messages.
  • SMSTSRebootDelay: Specifies how many seconds to wait before the computer restarts.
  • SMSTSRebootMessage: Specifies the message to display in the shutdown dialog box when a reboot is requested.

For a full list of variables, refer to the official Microsoft documentation: Task Sequence Variables.


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

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