Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Sync AD computer description field with local computer description field.

HTVi
TV Discussion Newsgroups

Sync AD computer description field with local computer description field.
"Michael" <mwhitmell[ at ]bearmountain.ca> 5/11/2007 9:06:38 PM
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.


Re: Sync AD computer description field with local computer description field.
"Jeremy" <jeremy[ at ]discussions.microsoft.com> 5/13/2007 11:17:31 AM
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.
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen