This is a question I’ve seen pop up a lot which can be achieved multiple ways. If you are looking for a fully fledged signature manager I would recommend something like CodeTwo’s ExchangeRules, you can trial this without paying if you don’t mind an advert being appended to your email, otherwise their prices are pretty reasonable.

Anyway, today we will look at the free way! There are 3 parts to achieving the goal.

1. VBS script to generate signature

This creates a very simple signature which pulls attributes from active directory.

Set objUser = CreateObject(“WScript.Network”)
userName = objUser.UserName
domainName = objUser.UserDomain

FUNCTION GetUserDN(BYVAL UN, BYVAL DN)
Set ObjTrans = CreateObject(“NameTranslate”)
objTrans.init 1, DN
objTrans.set 3, DN & “\” & UN
strUserDN = objTrans.Get(1)
GetUserDN = strUserDN
END FUNCTION

Continue reading