Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > How to get the value of AD user attributes in vbscript?

Reply
Fix Vista Errors
Thread Tools Display Modes

How to get the value of AD user attributes in vbscript?

 
 
Kino
Guest
Posts: n/a

 
      11-20-2009



i want to get the field value of the AD user address attributes in VBscript.
just like city, country, etc.
how can i get it?
thank you very much.
 
Reply With Quote
 
Marcin
Guest
Posts: n/a

 
      11-20-2009
Kino,
refer to
http://gallery.technet.microsoft.com...2-64a7e696a36e
The ones you are interested in are
"streetAddress,postOfficeBox,l,st,postalCode,c "

hth
Marcin

"Kino" <> wrote in message
news:C08BB049-8F6F-462F-B6C8-...
>i want to get the field value of the AD user address attributes in
>VBscript.
> just like city, country, etc.
> how can i get it?
> thank you very much.



 
Reply With Quote
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      11-20-2009

"Kino" <> wrote in message
news:C08BB049-8F6F-462F-B6C8-...
>i want to get the field value of the AD user address attributes in
>VBscript.
> just like city, country, etc.
> how can i get it?
> thank you very much.


You can also use Joe Richards' free adfind utility:

adfind -default -f "(sAMAccountName=JSmith)" streetAddress postOfficeBox l
st postalCode c

See this link:

http://www.joeware.net/freetools/tools/adfind/index.htm

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Move \Users folder once for all Peter Meinl Windows Vista Installation 24 12-20-2009 10:14 AM
KDC Event ID 7 and Wins startup errors. GihanZ Windows Small Business Server 4 11-23-2009 02:43 AM
Security Failures after Password Change Zachary Server Security 14 10-30-2009 07:02 PM
User Accounts can't be set to Administrator Steve A. Windows Vista Administration 10 03-09-2008 07:35 AM
Vista Upgrade fails at "Gathering Files" when two users share the same user profile (ProfileImagePath). Message: "the upgrade was cancelled". Carl Farrington Windows Vista Installation 4 10-24-2007 08:26 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59