
' Outlook is using the purposed folder defined with variable : strFolderLocation ' Corrects Outlook signature folder location. ' This section creates the signature files names and locations.
:max_bytes(150000):strip_icc()/defaultinclude-5c8ee8fdc9e77c0001ff0aef.jpg)
The second part deals with getting information out of our AD. WScript.Echo "Outlook Detection Complete" ' If a value is present but uninitialized the RegRead method ' If the value does not exist, error is raised Set oShell = CreateObject("WScript.Shell") SFileVer = oFSO.GetFileVersion(sFilePath) Set oFSO = CreateObject("Scripting.FileSystemObject") SFilePath = RegRead(sAppPathsBase & sProgram & "\") SAppPathExe = RegRead(sAppPathsBase & sProgram & "\") SAppPathsBase = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\" WScript.Echo "Outlook has not been detected. StrOutlookVer = GetVersion("outlook.exe") WScript.Echo "Outlook is installed, version is: " & GetVersion("outlook.exe") IF SO RECORD THE VERSION, IF NOT ALERT THE USER AND QUIT 'FIRST CHECK TO SEE IF OUTLOOK IS INSTALLED. 'Option ExplicitĭEBUGMODEON = FALSE 'USED FOR FAULT FINDING AND DEBUGGING, SET TO FALSE FOR PRODUCTION USEīooLocksig = TRUE ' USED TO PREVENT USER FROM CHANGING SIGNATURE The first part finds the Outlook software. Next week when I send out instructions to run the script with the updated Xmas information anyone who has O365 installed won't have their current signature updated as it will create a new signature on this device instead of updating the one on the email account.

I noticed when applying this to a new laptop that if the user has an Office 365 software license instead of a Home & Business / Pro license it is not saving the signature under the user's email account but instead saving it under signatures on this device. The script reads the user's information from AD builds a signature then saves it in Outlook under the user's email account. I have only been with the company 18 months so this is something I got shown how to run when I first started, but all I edit it for is to repoint to an updated web hosted image every now and again. We have used a visual basic script for applying and updating our email signatures for roughly 10 years. This issue goes so far over my head I am effectively looking at pretty letters, numbers and symbols on a page.
