Solved

VBS Outlook Signature script AD Details Issue

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

856 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