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: scripting to change attributes address in AD

HTVi
TV Discussion Newsgroups

scripting to change attributes address in AD
dino 6/19/2007 2:06:02 PM
Modify Users Accounts Address Attributes in my Active Directory
Re: scripting to change attributes address in AD
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 6/19/2007 4:27:26 PM
dino wrote:

[Quoted Text]
> Modify Users Accounts Address Attributes in my Active Directory

The attributes that correspond to fields in ADUC for user objects are
documented in the first spreadsheet in this link:

http://www.rlmueller.net/UserAttributes.htm

A VBScript example:
===========
Set objUser = GetObject("LDAP://cn=TestUser,ou=Sales,dc=MyDomain,dc=com")
objUser.streetAddress = "123 Any Street"
objUser.l = "Chicago"
objUser.st = "Illinois"
objUser.postalCode = "60611"
objUser.co = "US"
objUser.SetInfo

You can also use csvde or ldifde, and other tools to assign values to the
attributes.

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


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