Solved

centralised exchange signature

Posted on 2011-09-04
7
308 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
Comment Utility
In exchange 2010 is built in.
For other versions I don't know any free programs.
0
 
LVL 27

Expert Comment

by:davorin
Comment Utility
0
 
LVL 7

Expert Comment

by:BobintheNoc
Comment Utility
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
Want to promote your upcoming event?

Is your company attending an event or exhibiting at a trade show soon? Are you speaking at a conference? Spread the word by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

 

Author Comment

by:sam39
Comment Utility
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
Comment Utility
i cant use login script, because exchange is in different domain
0
 
LVL 27

Accepted Solution

by:
davorin earned 250 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

744 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

16 Experts available now in Live!

Get 1:1 Help Now