(imported comment written by MattBoyd)
I can’t come up with an easy way to retrieve the description using relevance or wmi. I searched the registry and didn’t come up with the description, so I don’t think it’s stored locally on the client. However, you can retrieve the local computer’s description by using Win32_OperatingSystem or through the registry. If you use a script to regularly sync the AD computer object description with the local computer description, you could make this work.
With a little bit of googling and tinkering, I think you could create workaround. Here is how I would go about it:
-
Write a vbscript that queries Active Directory for the description of the computer object and sets the local computer description to it. You will probably be able to find bits and pieces of this by Googling.
-
Create a task that runs this script. Create an action that runs the script daily on all Windows machines.
-
Retrieve the description from registry using relevance. Retrieve the value “srvcomment” from from \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters