I'm sure you could do this via a combination WMI/ADSI script. But you'd have to run it AFTER the rollout, ensuring all the compters were swtiched on, then run the script against a list of computer names that:
Connects to the remote computer and determines the description Writes the description to the computer object
I'd do this with a short vbscript that accepts then computer name as an argument and just does that computer. Then I'd do a batch file loop that loops through a text file with each different computer name in the file passing it to the vbscript.
I can see from setting my computer description to "dishwasher" and then searching the registry for dishwasher, that the value is stored in: "HKLM\SYSTEM\CurrentControlSet\Services\LanManServer\Parameters\srvcomment"
So here is a link to a script to retireve a registry value with vbscript: http://www.microsoft.com/technet/scriptcenter/scripts/os/registry/osrgvb18.mspx?mfr=true
And here is a link to a script to write to the Location property of a computer account, replace "Location" with "Description": http://www.microsoft.com/technet/scriptcenter/scripts/ad/computer/cptrvb10.mspx?mfr=true
This should get you underway.
"Michael" <mwhitmell[ at ]bearmountain.ca> wrote in message news:%23NoUSCBlHHA.4312[ at ]TK2MSFTNGP02.phx.gbl...
[Quoted Text] > Hello > > Is there a way to sync the computer description field in AD with the > computer description field on the my computer properties computername tab. > > FROM: XP PRO ( Local computer description field) >>>>>>>>> TO: SRV > 2003 (AD computer description field) > > We are doing a role out of a couple thousand computers and would like the > local computer techs to fill out workstation description field and have it > populate the AD computer description field. > > > Thanks in advance for any help. >
|