Re: AD Telephone Number field name exported from VBS
- From: "Joe Richards [MVP]" <humorexpress@xxxxxxxxxxx>
- Date: Wed, 18 May 2005 10:07:21 -0400
I would suspect your script before I would suspect AD.
What does your bind look like?
-- Joe Richards Microsoft MVP Windows Server Directory Services www.joeware.net
Joseph_01 wrote:
Thank you for your reply. I still fail to get any output from str3 in my script when I insert it as follows:
str1 = "Last Login: " & objUser.LastLogin
str2 = "Last Logoff: " & objUser.LastLogoff
str3 = "Phone: " & objUser.telephoneNumber str4 = "Logon Count: " & objUser.logonCount
When I run my script, str3 does not appear even though I have the telephone number field filled in. Perhaps this is a bug in my AD?
"Joe Richards [MVP]" wrote:
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.?????
.
- Follow-Ups:
- Re: AD Telephone Number field name exported from VBS
- From: Joseph_01
- Re: AD Telephone Number field name exported from VBS
- References:
- AD Telephone Number field name exported from VBS
- From: Joseph_01
- Re: AD Telephone Number field name exported from VBS
- From: Joe Richards [MVP]
- Re: AD Telephone Number field name exported from VBS
- From: Joseph_01
- AD Telephone Number field name exported from VBS
- Prev by Date: Re: Manageing XP SP2
- Next by Date: Re: Object already exists error
- Previous by thread: Re: AD Telephone Number field name exported from VBS
- Next by thread: Re: AD Telephone Number field name exported from VBS
- Index(es):
Relevant Pages
|