Solved

centralised exchange signature

Posted on 2011-09-04
7
343 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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Are you unable to connect or configure Hotmail email account in Microsoft Outlook 2010, 2007? Or Outlook.com emails are not downloading to Outlook? Lets’ see the problem and resolve Outlook Connector error syncing folder hierarchy (0x8004102A).
In-place Upgrading Dirsync to Azure AD Connect
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
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…

713 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