Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Using a script for detecting the presence of an outlook signature.

$
0
0

Users logon to a windows 7 pro with Outlook 2010 in aCitrix environment.

Where using 'Exclaimer Signature Manager' for our email signature in Outlook.

For some reason it doesn’t work with Citrix (except for 1 person).<o:p></o:p>

We have been in contact with the software supplier and they have sent us a script that someone uses to detect if a signature is
present. <o:p></o:p>

This is the script:<o:p></o:p>

----------

'CHECK FOR OUTLOOK PROFILE
 
Const HKEY_CURRENT_USER = &H80000001
 
strComputer = "."
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
 
strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
strValueName = "DefaultProfile"
objRegistry.GetStringValue HKEY_CURRENT_USER,strKeyPath,strValueName,dwValue
 
If IsNull(dwValue) Then
    Wscript.Echo "No Outlook Profile exists"
Else
     call signature()
      
End If

Function signature()
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run """\\servername\share\exsync.exe""", 6, True

End Function

-----------

The script runs at logon for the user.

Can someone help me with this issue.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>