Solved

VBS Outlook Signature script AD Details Issue

Posted on 2009-04-08
2
459 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 50 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This video discusses moving either the default database or any database to a new volume.

733 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