Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



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

Active Directory


Reply
 
Thread Tools Search this Thread
  #1  
Old 20-11-2009
Kino
 
Posts: n/a
How to get the value of AD user attributes in vbscript?

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
  #2  
Old 20-11-2009
Marcin
 
Posts: n/a
Re: How to get the value of AD user attributes in vbscript?

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" <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.



Reply With Quote
  #3  
Old 21-11-2009
Richard Mueller [MVP]
 
Posts: n/a
Re: How to get the value of AD user attributes in vbscript?


"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
--


Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Active Directory


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to get the value of AD user attributes in vbscript?"
Thread Thread Starter Forum Replies Last Post
Script to Update user attributes in AD Fahad Active Directory 3 29-05-2009 03:44 AM
problem with NIS and AD user attributes seth Active Directory 8 31-03-2009 02:07 AM
Copying User Accounts, what attributes get copied UselessUser Active Directory 2 10-03-2009 10:27 PM
Delegate rights to change User Attributes rl001 Active Directory 5 12-02-2009 03:24 AM
Delegate permissions to change user attributes rl001 Active Directory 2 12-02-2009 01:08 AM


All times are GMT +5.5. The time now is 10:51 PM.