Create a new global security group in your domain. In my example, I will use Signature-Marketing and Signature-HR .
Create a new GPO that applies to these groups. Put the Outlook.vbs script in User \ Policy \ Windows \ Scripts \ Logon .
'\\MyDomain.local\SysVol\WGIT.local\Policies\{MyPolicyID}\User\Scripts\Logon\Outlook.vbs On Error Resume Next '
Below is the signature "Guide." These scripts MUST have the same name as the group created in AD to work. When a user enters the AD Signature-Marketing group, he will run \\MyDomain.local\NETLOGON\Outlook\Signatures\Signature-Marketing.vbs
'\\MyDomain.local\NETLOGON\Outlook\Signatures\MyGroupName.vbs 'Set specific default values Signature.sVersion = CDate("3/12/2012 15:35") Signature.sName = "The name of my signature" Signature.sCompanyNew = "MY COMPANY NAME" Signature.sCompanyReply = "MY COMPANY NAME" Signature.cName = "MY COMPANY NAME" Signature.cStreet = "Street" Signature.cBox = "123" Signature.cPostal = "ZIP" Signature.cCity = "City" Signature.cMail = " info@company.com " Signature.cVat = "VAT NUMBER" Signature.cWebsite = "www.company.com" Signature.cUrl = "http://www.company.com" Signature.cLogo = "\\MyDomain.local\NETLOGON\Outlook\IMG\MyCompanyLogo.png" Signature.cPhone = "+32 3 456 780" Signature.cFax = "+32 3 456 789" Signature.uName = "John Doe" Signature.uPhone = "+32 3 456 780" Signature.uFax = "+32 3 456 789"
Below is the default template. This script is evaluated in Outlook.vbs.
'\\MyDomain.local\NETLOGON\Outlook\Templates\Default.vbs oSelection.Font.Name = "Calibri" oSelection.Font.Size = 11 oSelection.TypeText Signature.uName If Not Signature.uTitle = "" Then oSelection.TypeText Chr(11) oSelection.TypeText Signature.uTitle End If If Not Signature.uDisclaimer = "" Then oSelection.TypeText " (*)" ' ### Add company table & info oSelection.TypeParagraph() Set tbl = oDoc.Tables.Add(oSelection.Range, 1, 2) Set oTable = oDoc.Tables(1) tWidth = oTable.Cell(1, 1).width + oTable.Cell(1, 2).width ' Add company logo to cell 1 Set oCell = oTable.Cell(1, 1) Set oCellRange = oCell.Range oCell.Select Set oLogo = oSelection.InlineShapes.AddPicture(Signature.cLogo) oLogo.LockAspectRatio = true oLogo.height = oWord.PixelsToPoints(50) oCell.width = oLogo.width ' Add company info to cell 2 If Signature.cVat = "" Then arrAddressInfo = Array(Signature.cName, Signature.cStreet & " " & Signature.cBox, Signature.cPostal & " " & Signature.cCity) Else arrAddressInfo = Array(Signature.cName, Signature.cStreet & " " & Signature.cBox, Signature.cPostal & " " & Signature.cCity, Signature.cVat) End If strAddressInfo = Join(arrAddressInfo, " | ") Set oCell = oTable.Cell(1, 2) Set oCellRange = oCell.Range oCell.Select oCell.width = tWidth - oLogo.width oSelection.Font.Size = 10 oSelection.TypeText strAddressInfo ' Add phone number information arrUserInfo = Array() If Not Signature.uPhone = "" Then ReDim Preserve arrUserInfo(UBound(arrUserInfo) + 1) arrUserInfo(UBound(arrUserInfo)) = "T " & Signature.uPhone End If If Not Signature.uCell = "" Then ReDim Preserve arrUserInfo(UBound(arrUserInfo) + 1) arrUserInfo(UBound(arrUserInfo)) = "G " & Signature.uCell End If If Not Signature.uFax = "" Then ReDim Preserve arrUserInfo(UBound(arrUserInfo) + 1) arrUserInfo(UBound(arrUserInfo)) = "F " & Signature.uFax End If strUserInfo = Join(arrUserInfo, " | ") If Not strUserInfo = "" Then oSelection.TypeText Chr(11) oSelection.TypeText strUserInfo End If oSelection.TypeText Chr(11) ' Add user mail address to cell 2 Set oLink = oSelection.Hyperlinks.Add(oSelection.Range, "mailto:" & Signature.uMail, , , Signature.uMail) oLink.Range.Font.Color = oSelection.Font.Color oLink.Range.Font.Size = 10 ' Add company weblink to cell 2 oSelection.TypeText " | " Set oLink = oSelection.Hyperlinks.Add(oSelection.Range, Signature.cUrl, , , Signature.cWebsite) oLink.Range.Font.Color = oSelection.Font.Color oLink.Range.Font.Size = 10 If Not Signature.uDisclaimer = "" Then oSelection.TypeText " | (*) " & Signature.uDisclaimer tbl.Rows(1).Cells.VerticalAlignment = 1 oTable.AutoFitBehavior(1)
\\MyDomain.local\NETLOGON\Outlook\PRF\Outlook_Cached.PRF \\MyDomain.local\NETLOGON\Outlook\PRF\Outlook_NotCached.PRF
Create your own PRF file (quote from Microsoft TechNet):
To create a .prf file using the Office Customization Tool
- At the root of the network installation point, run the following command line to start the Office setup tool: \ server \ share \ setup.exe / admin
- To edit an existing setup file (.msp), in the Select Product dialog box, click Open an existing setup setup file. Or, to create a new configuration file, select the Office package that you want to configure, and click OK.
- In the Outlook pane, click Outlook Profile. Choose how you want to configure profiles for users. To specify the options that should be included in the .prf file, select either Edit Profile or New Profile.
- To add and configure new accounts or change or delete existing accounts, click "Add Accounts" and then click "Configure Additional Outlook Profile and Account Information."
- After completing your Outlook profile configurations in the Outlook area, click Export Settings.
- Click the "Export Profiles" button to create a new .prf file. Enter the file name and path to save the file, and then click "Save."