Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VBS Outlook Signature script AD Details Issue

Posted on 2009-04-08
2
Medium Priority
?
478 Views
Last Modified: 2012-05-06
I have developed a vbs script to generate outlook signatures that runs at login just like all the others that are found on this site.

This script runs well for most users but some don't correctly have their titles and phone numbers extracted from AD ( See snippet the echo is blank ). In AD I can see that they have these details in the required fields but they are blank when the script runs. Any ideas? Could there be something wrong in AD?
Set objSysInfo = CreateObject("ADSystemInfo")
objSysInfo.RefreshSchemaCache
qQuery = "LDAP://" & objSysInfo.Username
 
Set objuser = GetObject(qQuery)  
 
FullName = objuser.displayname
EMail = objuser.mail
Company = objuser.Company
Title = objuser.title
PhoneNumber = objuser.TelephoneNumber
FaxNumber = objuser.facsimileTelephoneNumber
 
Wscipt.Echo(Title)

Open in new window

0
Comment
Question by:ithumebuild
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
chandru_sol earned 150 total points
ID: 24103690
0
 

Author Comment

by:ithumebuild
ID: 24103803
hi chuandu_sol,

That was the script I used as the base only making changes to it as per our layout requirements. As I mentioned in my original question my script works for most people, it is just a couple users that don't correctly have the title and phone number extracted. I have checked there details in AD and the Title and Phone Number fields are filled in and correct. The code I listed is just the snippet of my script that is causing the issues.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

New style of hardware planning for Microsoft Exchange server.
Wouldn't it be nice if objects in Active Directory automatically moved into the correct Organizational Units? This is what AutoAD aims to do and as a plus, it automatically creates Sites, Subnets, and Organizational Units.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question