Re: AD Telephone Number field name exported from VBS



The AD attribute is telephoneNumber.

--
Joe Richards Microsoft MVP Windows Server Directory Services
www.joeware.net


Joseph_01 wrote:
I'm trying to create a vbs script that exports user information similar to the lines below, but I would like to export the Telephone Number from the General Tab of a user's properties in AD. Does anyone know what the & objUser code is for the telephone number? I've searched the internet and tried many different utilities (ADFIND, useraccount.vbs, listproperties.vbs) but I can't find the field I require to output the telephone number.

str1 = "Last Login: " & objUser.LastLogin
str2 = "Last Logoff: " & objUser.LastLogoff
str3 = "Phone: " & objUser.?????
.



Relevant Pages

  • Re: Force password change permission
    ... Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADAM connecting to incorrect server
    ... Joe Richards Microsoft MVP Windows Server Directory Services ... Author of O'Reilly Active Directory Third Edition ...
    (microsoft.public.windows.server.active_directory)
  • Re: How to add a second smtp address?
    ... Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.exchange2000.active.directory.integration)
  • Re: Where does AD support fit ?
    ... Joe Richards Microsoft MVP Windows Server Directory Services ... Mike Kline wrote: ...
    (microsoft.public.windows.server.active_directory)
  • Re: Laptop Users in AD
    ... > their laptop when it is disconnected from the network. ... >>Joe Richards Microsoft MVP Windows Server Directory Services ...
    (microsoft.public.windows.server.active_directory)

Loading