Setting the Local Computer Description During SCCM Task Sequence

Setting the Local Computer Description During SCCM Task Sequence
Setting the Local Computer Description During SCCM Task Sequence

Estimated reading time: 2 minutes

If you are using Configuration Manager (SCCM) to deploy your operating systems, you might want to set the local computer description during the task sequence phase.

This is a straightforward process, and you can either manually input the computer name during the task sequence or use an HTA (HTML Application) at the beginning of the task sequence to pass the variable to the step.

Adding a “Run Command Line” Step

Towards the very end of your task sequence, add a “Run Command Line” step. You can then use one of the following command line entries, depending on whether you are manually entering the computer name or using an HTA:

Manual Computer Name Entry

To manually set the computer name, use the following command:

cmd /c net config SERVER /SRVCOMMENT:"Computer Owner Alpha"

Using an HTA to Pass a Variable

If you are using an HTA, you can pass through a %machineowner% variable and use this as your command line:

cmd /c net config SERVER /SRVCOMMENT:"%machineowner%"

Verifying the Computer Description

Once the build is complete, you should notice that the local computer description is set as required.

Updating Active Directory with the Local Computer Description

You can also use this local computer description to automatically update the Active Directory Computer Description. For a guide on how to do that, click here.

Comments

If you have any problems with this guide or any questions you’d like to ask, please feel free to leave a message below using our comments system. We’ll respond as quickly as possible!

Click to rate this post!
[Total: 0 Average: 0]

Share this content:

Avatar for Andrew Armstrong

About Andrew Armstrong

Founder of TechyGeeksHome and Head Editor for over 15 years! IT expert in multiple areas for over 26 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by Andrew Armstrong

Leave a Reply

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