Here is a script that could be used to change computer’s description on every Windows machine in your domain using machine description stored in Active Directory. This script is very useful if you desire to align AD machine’s description with computer’s description you can see when you browse your windows network.

It could be better if you download the script from HERE (rename it .VBS). You should invoke it from a machine logon script inside an Active Directory computers’ policy, something like that:

 

ChangeComputerComment.cmd

cscript //NoLogo \\DOMAIN.NET\Share\Script\ClientManagement\ChangeComputerComment\ChangeComputerComment.vbs

 

Inside the script you can find some comments that can help you to undestand the logic. It has been tested with Windows XP, Vista, Windows 7, Windows 2003 and Windows 2008.

If you have any comments or questions, place them HERE

 

NOTE:

This post is inspired by this one on 4Sysop.com : Automatically fill the computer description field in Active Directory (but my script is elder! Sept. 7th, 2006  😉 )