Setting the Local Computer Description During SCCM Task Sequence

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 […]

Setting The Local Computer Description During SCCM Task Sequence

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!

🛠️

Gear We Recommend

Testing configs is easier with a dedicated admin machine set up right. Here’s the kit we use.

Browse our Windows Admin Toolkit picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.