Forum Search:
Forum.Brain-Cluster.com: Brain Cluster Technical Forum
Ultimate forum for Technical Discussions

Home » Microsoft » Windows Server » Active Directory » How to get the value of AD user attributes in vbscript?
How to get the value of AD user attributes in vbscript? [message #323051] Fri, 20 November 2009 00:59 Go to next message
Kino  is currently offline Kino
Messages: 2
Registered: November 2009
Junior Member
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.
Re: How to get the value of AD user attributes in vbscript? [message #323215 is a reply to message #323051] Fri, 20 November 2009 06:19 Go to previous messageGo to next message
Marcin  is currently offline Marcin  United States
Messages: 273
Registered: July 2009
Senior Member
Kino,
refer to
http://gallery.technet.microsoft.com/ScriptCenter/en-us/4d19 2f4d-2830-4a3e-9352-64a7e696a36e
The ones you are interested in are
"streetAddress,postOfficeBox,l,st,postalCode,c"

hth
Marcin

"Kino" <Kino@discussions.microsoft.com> wrote in message
news:C08BB049-8F6F-462F-B6C8-FB753CEFCA7C@microsoft.com...
>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.
Re: How to get the value of AD user attributes in vbscript? [message #323523 is a reply to message #323051] Fri, 20 November 2009 11:43 Go to previous message
rlmueller-nospam  is currently offline rlmueller-nospam  United States
Messages: 292
Registered: July 2009
Senior Member
"Kino" <Kino@discussions.microsoft.com> wrote in message
news:C08BB049-8F6F-462F-B6C8-FB753CEFCA7C@microsoft.com...
>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
--
Previous Topic:ADAM Authentication Failure
Next Topic:AD and (extra) NIC
Goto Forum:
  


Current Time: Wed Jan 17 05:31:34 MST 2018

Total time taken to generate the page: 0.04088 seconds
.:: Contact :: Home ::Sitemap::.

Powered by: FUDforum 3.0.0RC2.
Copyright ©2001-2009 FUDforum Bulletin Board Software