Solved

centralised exchange signature

Posted on 2011-09-04
7
321 Views
Last Modified: 2012-05-12
hi experts, is there any free tool to centralised exchange signature, pulling information from AD?
0
Comment
Question by:sam39
  • 3
  • 2
  • 2
7 Comments
 
LVL 27

Expert Comment

by:davorin
ID: 36481449
In exchange 2010 is built in.
For other versions I don't know any free programs.
0
 
LVL 27

Expert Comment

by:davorin
ID: 36481467
0
 
LVL 7

Expert Comment

by:BobintheNoc
ID: 36481975
Here's the script we use in our environment.  It's VBScript, and it's simply a user based logon script.  When run, it queries a variety of attributes on an AD user object, and creates a sig file for Outlook.

This one collects a few different attributes, including department, phone, fax, mobile, etc.,  Should get you going pretty well.
---------------
On Error Resume Next

Set objSysInfo = CreateObject("ADSystemInfo")

strUser = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & struser)

strName = objUser.FullName
strTitle = objUser.Title
strDepartment = objUser.Department
strCompany = objUser.Company
strPhone = objUser.telephoneNumber
strPager = objuser.pager
stremail = objuser.mail
strFax = objuser.faxnumber
strmobile = objuser.mobile
strWeb = "www.yourdomain.com"

If lcase(right(stremail,8)) = "yourdomain.com" then

Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Add()
Set objSelection = objWord.Selection
Set objEmailOptions = objWord.EmailOptions
Set objSignatureObject = objEmailOptions.EmailSignature
Set objSignatureEntries = objSignatureObject.EmailSignatureEntries

objSelection.Font.Size = "12"
objSelection.Font.Name = "Garamond"
objSelection.Font.Color = "-587137025"
objSelection.Font.Bold = True
objSelection.TypeText strName
objSelection.TypeText Chr(11)
objSelection.TypeText strTitle
objSelection.TypeText Chr(11)
objSelection.Font.Bold = False
objSelection.TypeText "Company Name"
objSelection.TypeText Chr(11)
objSelection.TypeText "Another line of text"
objSelection.TypeText Chr(11)

if strPager <> "" then
objSelection.TypeText "Office: " & strPager
objSelection.TypeText Chr(11)
else
      if strPhone <> "" then
      objSelection.TypeText "Office: " & strPhone
      objSelection.TypeText Chr(11)
      end if
end if

if strmobile <> "" then
objSelection.TypeText "Mobile: " & strmobile
objSelection.TypeText Chr(11)
end if

if strFax <> "" then
objSelection.TypeText "Fax: " & strFax
objSelection.TypeText Chr(11)
end if

objSelection.TypeText "Email: "
objSelection.Hyperlinks.Add objSelection.Range, "mailto:" & strEmail,,, strEmail
Set objSelection = objDoc.Range(objSelection.End-Len(strEmail & " "),objSelection.End)
With objSelection.Font
      .Name = "Garamond"
      .Size = "12"
End With
Set objSelection = objWord.Selection


------
0
Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:sam39
ID: 36484381
How do i change font and colors and add logo for this?

<br>%%FirstName%%
%%LastName%%<br>
%%Title%%<br>
%%Company%%<br>
Phone:%%PhoneNumber%%<br>
Email:%%Email %%<br>
0
 

Author Comment

by:sam39
ID: 36484386
i cant use login script, because exchange is in different domain
0
 
LVL 27

Accepted Solution

by:
davorin earned 250 total points
ID: 36485351
Use plain html code for that. But logo must be available over public accessible web site.

http://blog.chrislehr.com/2009/07/exchange-2010-hub-transport-building.htm

You can use Ms Word to create html signature, but it can get quite big html code.
Any other program for html is good (better) or you can just use notepad for editing the html code.
Insert image: http://www.w3schools.com/html/html_images.asp
<img src="http://www.yourdomain.com/logoimage.jpg" />

Font & color: http://www.w3schools.com/html/html_fonts.asp
0
 
LVL 7

Expert Comment

by:BobintheNoc
ID: 36485443
In the above script, it's purely querying the Attributes of an Active Directory Account and uses fields if they're present on the AD object.  It doesn't matter which domain the Exchange server is on--at least I don't think it does.

To change the font, look for the word Garamond in the script.  Change it to your choice of font, and size.  The color portion is trickier.  The CHR(11) represents the color.  I'm not recalling the actual source chart of this color reference, and when I do change the color options, it's not always consistent depending on the os and version of Outlook on the client.

As davorin states, yep, plain html.  This script creates a few versions of your signatures, with an HTML version included.  Adding the code to the script though, is another story.  Since the script creates the multiple versions of the signature, the plain text signature(s) wouldn't be able to support the HTML logo.

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create an Address List 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 Organization >> Ad…
To show how to generate a certificate request 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 >> Certificates…

932 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now