SCCM – Set Local Computer Description during OSD

sccm logo

Last updated on April 17th, 2023 at 12:17 am

Read Time:1 Minute, 6 Second

If you are using Configuration Manager to deploy your operating systems, then you may want to set the local computer description during the task sequence phase.

To do that is a very simple process and you can use a manual method of inputting the computer name on the task sequence step or use a HTA at the beginning of your task sequence and pass the variable to the step.

To do this, towards the very end of your task sequence, add a “Run Command Line” step and you then can add one of the two command line entries as per below:

Manual computer name entry:

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

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

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

You should then notice that when your build has completed, the local computer description is set as you require.

We can then also use this local computer description to automatically update the Active Directory Computer Description – for a guide on how to do that – click here.


If you have any problems with this guide or any questions you would like to ask, then please feel free to leave us a message below using our comments system.

Avatar for Andrew Armstrong

About Post Author

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.
Click to rate this post!
[Total: 0 Average: 0]

Discover more from TechyGeeksHome

Subscribe to get the latest posts to your email.

Leave us a message...

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