<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lupigabriel &#187; Microsoft</title>
	<atom:link href="https://www.lupigabriel.it/tag/microsoft/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lupigabriel.it</link>
	<description>Create something new is nice... Create something useful is important!</description>
	<lastBuildDate>Wed, 27 May 2015 01:59:17 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.22</generator>
	<item>
		<title>Outlook Signature</title>
		<link>https://www.lupigabriel.it/outlook-signature/</link>
		<comments>https://www.lupigabriel.it/outlook-signature/#comments</comments>
		<pubDate>Sun, 29 Jun 2014 19:55:45 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Repository]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[2013]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Outlook]]></category>
		<category><![CDATA[Signature]]></category>

		<guid isPermaLink="false">http://www.lupigabriel.it/?p=234</guid>
		<description><![CDATA[This VBScript must be run as a logon script of windows GPO that will create the Microsoft Outlook Signature according to the template must be named OutlookSignature Tested on the following Outlook versions: Microsoft Outlook 2010 (32bit) Microsoft Outlook 2013 (32bit) Tested on the following Microsoft OS versions: Microsoft Windows XP (32bit) Microsoft Windows 7 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This VBScript must be run as a logon script of windows GPO that will create the <strong>Microsoft Outlook Signature according</strong> to the template must be named <em>OutlookSignature</em></p>
<p><strong>Tested on the following Outlook versions:</strong></p>
<ul>
<li><em>Microsoft Outlook 2010 (32bit)</em></li>
<li><em>Microsoft Outlook 2013 (32bit)</em></li>
</ul>
<p><strong>Tested on the following Microsoft OS versions:</strong></p>
<ul>
<li><em>Microsoft Windows XP (32bit)</em></li>
<li><em>Microsoft Windows 7 (32bit)</em></li>
<li><em>Microsoft Windows 8.1</em></li>
<li><em>Microsoft Windows 2003 (32bit)</em></li>
<li><em>Microsoft Windows 2008 R2</em></li>
</ul>
<p><strong>Tested on the following Application Virtualizer:</strong></p>
<ul>
<li><em>VMware XenApp 6</em></li>
</ul>
<p><a href="http://www.lupigabriel.it/wp-content/uploads/2014/06/OutlookSignature_v1.0.zip" class="mtli_attachment mtli_zip" rel="mtli_filesize1135kB">OutlookSignature.vbs</a></p>
<p></p><pre class="crayon-plain-tag">' ##############################################################################
' #                                Lupi Gabriel                                #
' #                             www.lupigabriel.it                             #
' #                            info@lupigabriel.it                             #
' ##############################################################################
' #            Copyright (c) 2014 Lupi Gabriel All rights reserved.            #
' ##############################################################################
' # VERSION    : 1.0                                                           #
' # FILE       : OutlookSignature.vbs                                          #
' # CLASS      : Script                                                        #
' # LANGUAGE   : VB Script                                                     #
' # OUPUT      : "%AppData%\Microsoft\Signatures"                              #
' ##############################################################################



On Error Resume Next



' SETTINGS
OutlookSignatureVersion = "000" ' set to 000 to refresh signature on every logon
OutlookSignatureBinName = Array(79,0,117,0,116,0,108,0,111,0,111,0,107,0,83,0,105,0,103,0,110,0,97,0,116,0,117,0,114,0,101,0,0,0)
OutlookSignatureFirsNew = 1 ' automatic activation of the signature for new messages
OutlookSignatureFirsRep = 1 ' automatic activation of the signature for replies and forwards
OutlookSignatureRefrNew = 1 ' force re-activation of the signature for new messages on every logon
OutlookSignatureRefrRep = 1 ' force re-activation of the signature for replies and forwards messages on every logon



' START
OutlookSignatureRemPath = Replace(Wscript.ScriptFullName, Wscript.ScriptName, "")
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set oShell = CreateObject("WScript.Shell")
SignatureFlag = oShell.ExpandEnvironmentStrings("%APPDATA%") &amp; "\Microsoft\Signatures\OutlookSignature_files\OutlookSignature." &amp; OutlookSignatureVersion
SignatureFrst = oShell.ExpandEnvironmentStrings("%APPDATA%") &amp; "\Microsoft\Signatures\OutlookSignature_files\OutlookSignature.first"
SignaturePath = oShell.ExpandEnvironmentStrings("%APPDATA%") &amp; "\Microsoft\Signatures\"
UserDeskTempl = oShell.ExpandEnvironmentStrings("%USERPROFILE%") &amp; "\Desktop\OutlookSignature\"
Set objRegistry = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv")
SetRegCounter = 0



' TEMPLATE
If objFSO.FileExists(OutlookSignatureRemPath &amp; "OutlookSignature.txt") = False Or objFSO.FileExists(OutlookSignatureRemPath &amp; "OutlookSignature.htm") = False Or objFSO.FolderExists(OutlookSignatureRemPath &amp; "OutlookSignature_files") = False Then
TextMsgBox = "Create from Outlook the New Signature Template named ""OutlookSignature"" with the following Tags..." &amp; vbCrLf &amp; vbCrLf &amp; _
"###FIRSTNAME###" &amp; vbCrLf &amp; _
"###INITIALS###" &amp; vbCrLf &amp; _
"###LASTNAME###" &amp; vbCrLf &amp; _
"###DISPLAYNAME###" &amp; vbCrLf &amp; _
"###DESCRIPTION###" &amp; vbCrLf &amp; _
"###OFFICENAME###" &amp; vbCrLf &amp; _
"###TELEPHONE###" &amp; vbCrLf &amp; _
"###OTHERTELEPHONE###" &amp; vbCrLf &amp; _
"###EMAIL###" &amp; vbCrLf &amp; _
"###WEBPAGE###" &amp; vbCrLf &amp; _
"###OTHERWEBPAGE###" &amp; vbCrLf &amp; _
"###STREETADDRESS###" &amp; vbCrLf &amp; _
"###POSTOFFICEBOX###" &amp; vbCrLf &amp; _
"###CITY###" &amp; vbCrLf &amp; _
"###STATE###" &amp; vbCrLf &amp; _
"###POSTALCODE###" &amp; vbCrLf &amp; _
"###COUNTRYCODE###" &amp; vbCrLf &amp; _
"###HOMEPHONE###" &amp; vbCrLf &amp; _
"###OTHERHOMEPHONE###" &amp; vbCrLf &amp; _
"###PAGER###" &amp; vbCrLf &amp; _
"###OTHERPAGER###" &amp; vbCrLf &amp; _
"###MOBILEPHONE###" &amp; vbCrLf &amp; _
"###OTHERMOBILEPHONE###" &amp; vbCrLf &amp; _
"###FAX###" &amp; vbCrLf &amp; _
"###OTHERFAX###" &amp; vbCrLf &amp; _
"###IPPHONE###" &amp; vbCrLf &amp; _
"###OTHERIPPHONE###" &amp; vbCrLf &amp; _
"###NOTES###" &amp; vbCrLf &amp; _
"###JOBTITLE###" &amp; vbCrLf &amp; _
"###DEPARTMENT###" &amp; vbCrLf &amp; _
"###COMPANY###" &amp; vbCrLf &amp; _
"###MANAGER###" &amp; vbCrLf &amp; _
vbCrLf &amp; "Save Template from Outlook and click ""OK"" to create OutlookSignature Source Files..."
UserMsg = MsgBox(TextMsgBox, 0, "OutlookSignature")
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.txt") = False Or objFSO.FileExists(SignaturePath &amp; "OutlookSignature.htm") = False Or objFSO.FolderExists(SignaturePath &amp; "OutlookSignature_files") = False Then
UserMsg = MsgBox("Warning! OutlookSignature Template is not present in Outlook..." &amp; vbCrLf &amp; vbCrLf &amp; "You Must Create Template and Re-launch the Script...", 0, "OutlookSignature")
Wscript.Quit
End If
If objFSO.FolderExists(OutlookSignatureRemPath &amp; "OutlookSignature_files\") = True Then objFSO.DeleteFolder OutlookSignatureRemPath &amp; "OutlookSignature_files\" End If
If objFSO.FileExists(OutlookSignatureRemPath &amp; "OutlookSignature.htm") = True Then objFSO.DeleteFile OutlookSignatureRemPath &amp; "OutlookSignature.htm" End If
If objFSO.FileExists(OutlookSignatureRemPath &amp; "OutlookSignature.txt") = True Then objFSO.DeleteFile OutlookSignatureRemPath &amp; "OutlookSignature.txt" End If
objFSO.CreateFolder OutlookSignatureRemPath &amp; "OutlookSignature_files\"
objFSO.CopyFile SignaturePath &amp; "OutlookSignature.txt", OutlookSignatureRemPath
objFSO.CopyFile SignaturePath &amp; "OutlookSignature.htm", OutlookSignatureRemPath
objFSO.CopyFile SignaturePath &amp; "OutlookSignature_files\*", OutlookSignatureRemPath &amp; "OutlookSignature_files\"
If objFSO.FileExists(OutlookSignatureRemPath &amp; "OutlookSignature.txt") = False Or objFSO.FileExists(OutlookSignatureRemPath &amp; "OutlookSignature.htm") = False Or objFSO.FolderExists(OutlookSignatureRemPath &amp; "OutlookSignature_files") = False Then
UserMsg = MsgBox("Warning! OutlookSignature Template files are not copied in source path..." &amp; vbCrLf &amp; vbCrLf &amp; "Please check write permission in source path and Re-launch the Script...", 0, "OutlookSignature")
Wscript.Quit
End If
UserMsg = MsgBox("OutlookSignature Template is now created and copied in source path..." &amp; vbCrLf &amp; vbCrLf &amp; OutlookSignatureRemPath, 0, "OutlookSignature")
Wscript.Quit
End If


' DEPLOY
If objFSO.FileExists(SignatureFlag) = False Or OutlookSignatureVersion = "000" Then
If objFSO.FolderExists(SignaturePath &amp; "OutlookSignature_files") = True Then objFSO.DeleteFolder SignaturePath &amp; "OutlookSignature_files" End If
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.htm") = True Then objFSO.DeleteFile SignaturePath &amp; "OutlookSignature.htm" End If
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.txt") = True Then objFSO.DeleteFile SignaturePath &amp; "OutlookSignature.txt" End If
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.rtf") = True Then objFSO.DeleteFile SignaturePath &amp; "OutlookSignature.rtf" End If
If objFSO.FolderExists(SignaturePath) = False Then objFSO.CreateFolder SignaturePath End If

If objFSO.FolderExists(SignaturePath &amp; "OutlookSignature_files") = False Then
objFSO.CreateFolder SignaturePath &amp; "OutlookSignature_files"
objFSO.CopyFile OutlookSignatureRemPath &amp; "OutlookSignature.txt", SignaturePath &amp; "OutlookSignature.txt.template"
objFSO.CopyFile OutlookSignatureRemPath &amp; "OutlookSignature.htm", SignaturePath &amp; "OutlookSignature.htm.template"
objFSO.CopyFile OutlookSignatureRemPath &amp; "OutlookSignature_files\*", SignaturePath &amp; "OutlookSignature_files\"
End If



' AD USER INFO
Set objSysInfo = CreateObject("ADSystemInfo")
Set objUser = GetObject("LDAP://" &amp; objSysInfo.UserName)
Set objUserMan = GetObject("LDAP://" &amp; objUser.manager)
If objUser.givenName = "" Or IsNull(objUser.givenName) = True Then Sign_givenName = "" Else Sign_givenName = objUser.givenName End If
If objUser.initials = "" Or IsNull(objUser.initials) = True Then Sign_initials = "" Else Sign_initials = objUser.initials End If
If objUser.sn = "" Or IsNull(objUser.sn) = True Then Sign_sn = "" Else Sign_sn = objUser.sn End If
If objUser.displayName = "" Or IsNull(objUser.displayName) = True Then Sign_displayName = "" Else Sign_displayName = objUser.displayName End If
If objUser.description = "" Or IsNull(objUser.description) = True Then Sign_description = "" Else Sign_description = objUser.description End If
If objUser.physicalDeliveryOfficeName = "" Or IsNull(objUser.physicalDeliveryOfficeName) = True Then Sign_physicalDeliveryOfficeName = "" Else Sign_physicalDeliveryOfficeName = objUser.physicalDeliveryOfficeName End If
If objUser.telephoneNumber = "" Or IsNull(objUser.telephoneNumber) = True Then Sign_telephoneNumber = "" Else Sign_telephoneNumber = objUser.telephoneNumber End If
If objUser.otherTelephone = "" Or IsNull(objUser.otherTelephone) = True Then Sign_otherTelephone = "" Else Sign_otherTelephone = objUser.otherTelephone End If
If objUser.mail = "" Or IsNull(objUser.mail) = True Then Sign_mail = "" Else Sign_mail = objUser.mail End If
If objUser.wWWHomePage = "" Or IsNull(objUser.wWWHomePage) = True Then Sign_wWWHomePage = "" Else Sign_wWWHomePage = objUser.wWWHomePage End If
If objUser.url = "" Or IsNull(objUser.url) = True Then Sign_url = "" Else Sign_url = objUser.url End If
If objUser.streetAddress = "" Or IsNull(objUser.streetAddress) = True Then Sign_streetAddress = "" Else Sign_streetAddress = objUser.streetAddress End If
If objUser.postOfficeBox = "" Or IsNull(objUser.postOfficeBox) = True Then Sign_postOfficeBox = "" Else Sign_postOfficeBox = objUser.postOfficeBox End If
If objUser.l = "" Or IsNull(objUser.l) = True Then Sign_l = "" Else Sign_l = objUser.l End If
If objUser.st = "" Or IsNull(objUser.st) = True Then Sign_st = "" Else Sign_st = objUser.st End If
If objUser.postalCode = "" Or IsNull(objUser.postalCode) = True Then Sign_postalCode = "" Else Sign_postalCode = objUser.postalCode End If
If objUser.countryCode = "" Or IsNull(objUser.countryCode) = True Then Sign_countryCode = "" Else Sign_countryCode = objUser.countryCode End If
If objUser.homePhone = "" Or IsNull(objUser.homePhone) = True Then Sign_homePhone = "" Else Sign_homePhone = objUser.homePhone End If
If objUser.otherHomePhone = "" Or IsNull(objUser.otherHomePhone) = True Then Sign_otherHomePhone = "" Else Sign_otherHomePhone = objUser.otherHomePhone End If
If objUser.pager = "" Or IsNull(objUser.pager) = True Then Sign_pager = "" Else Sign_pager = objUser.pager End If
If objUser.otherPager = "" Or IsNull(objUser.otherPager) = True Then Sign_otherPager = "" Else Sign_otherPager = objUser.otherPager End If
If objUser.mobile = "" Or IsNull(objUser.mobile) = True Then Sign_mobile = "" Else Sign_mobile = objUser.mobile End If
If objUser.otherMobile = "" Or IsNull(objUser.otherMobile) = True Then Sign_otherMobile = "" Else Sign_otherMobile = objUser.otherMobile End If
If objUser.facsimileTelephoneNumber = "" Or IsNull(objUser.facsimileTelephoneNumber) = True Then Sign_facsimileTelephoneNumber = "" Else Sign_facsimileTelephoneNumber = objUser.facsimileTelephoneNumber End If
If objUser.otherFacsimileTelephoneNumber = "" Or IsNull(objUser.otherFacsimileTelephoneNumber) = True Then Sign_otherFacsimileTelephoneNumber = "" Else Sign_otherFacsimileTelephoneNumber = objUser.otherFacsimileTelephoneNumber End If
If objUser.ipPhone = "" Or IsNull(objUser.ipPhone) = True Then Sign_ipPhone = "" Else Sign_ipPhone = objUser.ipPhone End If
If objUser.otherIpPhone = "" Or IsNull(objUser.otherIpPhone) = True Then Sign_otherIpPhone = "" Else Sign_otherIpPhone = objUser.otherIpPhone End If
If objUser.info = "" Or IsNull(objUser.info) = True Then Sign_info = "" Else Sign_info = objUser.info End If
If objUser.title = "" Or IsNull(objUser.title) = True Then Sign_title = "" Else Sign_title = objUser.title End If
If objUser.department = "" Or IsNull(objUser.department) = True Then Sign_department = "" Else Sign_department = objUser.department End If
If objUser.company = "" Or IsNull(objUser.company) = True Then Sign_company = "" Else Sign_company = objUser.company End If
If objUser.manager = "" Or IsNull(objUser.manager) = True Then Sign_manager = "" Else Sign_manager = objUserMan.givenName &amp; " " &amp; objUserMan.sn End If



' TXT SIGNATURE
Set objTextFile = objFSO.OpenTextFile(SignaturePath &amp; "OutlookSignature.txt.template", 1, False, -2)
Set objFile = objFSO.CreateTextFile(SignaturePath &amp; "OutlookSignature.txt", True)
objFile.Close
Set objFile = objFSO.OpenTextFile(SignaturePath &amp; "OutlookSignature.txt", 2)
Do while NOT objTextFile.AtEndOfStream
Inputline000 = objTextFile.ReadLine
Outputline01 = Replace(Inputline000,"###FIRSTNAME###",Sign_givenName)
Outputline02 = Replace(Outputline01,"###INITIALS###",Sign_initials)
Outputline03 = Replace(Outputline02,"###LASTNAME###",Sign_sn)
Outputline04 = Replace(Outputline03,"###DISPLAYNAME###",Sign_displayName)
Outputline05 = Replace(Outputline04,"###DESCRIPTION###",Sign_description)
Outputline06 = Replace(Outputline05,"###OFFICENAME###",Sign_physicalDeliveryOfficeName)
Outputline07 = Replace(Outputline06,"###TELEPHONE###",Sign_telephoneNumber)
Outputline08 = Replace(Outputline07,"###OTHERTELEPHONE###",Sign_otherTelephone)
Outputline09 = Replace(Outputline08,"###EMAIL###",Sign_mail)
Outputline10 = Replace(Outputline09,"###WEBPAGE###",Sign_wWWHomePage)
Outputline11 = Replace(Outputline10,"###OTHERWEBPAGE###",Sign_url)
Outputline12 = Replace(Outputline11,"###STREETADDRESS###",Sign_streetAddress)
Outputline13 = Replace(Outputline12,"###POSTOFFICEBOX###",Sign_postOfficeBox)
Outputline14 = Replace(Outputline13,"###CITY###",Sign_l)
Outputline15 = Replace(Outputline14,"###STATE###",Sign_st)
Outputline16 = Replace(Outputline15,"###POSTALCODE###",Sign_postalCode)
Outputline17 = Replace(Outputline16,"###COUNTRYCODE###",Sign_countryCode)
Outputline18 = Replace(Outputline17,"###HOMEPHONE###",Sign_homePhone)
Outputline19 = Replace(Outputline18,"###OTHERHOMEPHONE###",Sign_otherHomePhone)
Outputline20 = Replace(Outputline19,"###PAGER###",Sign_pager)
Outputline21 = Replace(Outputline20,"###OTHERPAGER###",Sign_otherPager)
Outputline22 = Replace(Outputline21,"###MOBILEPHONE###",Sign_mobile)
Outputline23 = Replace(Outputline22,"###OTHERMOBILEPHONE###",Sign_otherMobile)
Outputline24 = Replace(Outputline23,"###FAX###",Sign_facsimileTelephoneNumber)
Outputline25 = Replace(Outputline24,"###OTHERFAX###",Sign_otherFacsimileTelephoneNumber)
Outputline26 = Replace(Outputline25,"###IPPHONE###",Sign_ipPhone)
Outputline27 = Replace(Outputline26,"###OTHERIPPHONE###",Sign_otherIpPhone)
Outputline28 = Replace(Outputline27,"###NOTES###",Sign_info)
Outputline29 = Replace(Outputline28,"###JOBTITLE###",Sign_title)
Outputline30 = Replace(Outputline29,"###DEPARTMENT###",Sign_department)
Outputline31 = Replace(Outputline30,"###COMPANY###",Sign_company)
Outputline32 = Replace(Outputline31,"###MANAGER###",Sign_manager)
objFile.Write Trim(Outputline32) &amp; vbCrLf
Loop
objFile.Close
objTextFile.Close
Set objTextFile = Nothing



' HTM SIGNATURE
Set objTextFile = objFSO.OpenTextFile(SignaturePath &amp; "OutlookSignature.htm.template", 1, False, -2)
Set objFile = objFSO.CreateTextFile(SignaturePath &amp; "OutlookSignature.htm", True)
objFile.Close
Set objFile = objFSO.OpenTextFile(SignaturePath &amp; "OutlookSignature.htm", 2)
Do while NOT objTextFile.AtEndOfStream
Inputline000 = objTextFile.ReadLine
Outputline01 = Replace(Inputline000,"###FIRSTNAME###",Sign_givenName)
Outputline02 = Replace(Outputline01,"###INITIALS###",Sign_initials)
Outputline03 = Replace(Outputline02,"###LASTNAME###",Sign_sn)
Outputline04 = Replace(Outputline03,"###DISPLAYNAME###",Sign_displayName)
Outputline05 = Replace(Outputline04,"###DESCRIPTION###",Sign_description)
Outputline06 = Replace(Outputline05,"###OFFICENAME###",Sign_physicalDeliveryOfficeName)
Outputline07 = Replace(Outputline06,"###TELEPHONE###",Sign_telephoneNumber)
Outputline08 = Replace(Outputline07,"###OTHERTELEPHONE###",Sign_otherTelephone)
Outputline09 = Replace(Outputline08,"###EMAIL###",Sign_mail)
Outputline10 = Replace(Outputline09,"###WEBPAGE###",Sign_wWWHomePage)
Outputline11 = Replace(Outputline10,"###OTHERWEBPAGE###",Sign_url)
Outputline12 = Replace(Outputline11,"###STREETADDRESS###",Sign_streetAddress)
Outputline13 = Replace(Outputline12,"###POSTOFFICEBOX###",Sign_postOfficeBox)
Outputline14 = Replace(Outputline13,"###CITY###",Sign_l)
Outputline15 = Replace(Outputline14,"###STATE###",Sign_st)
Outputline16 = Replace(Outputline15,"###POSTALCODE###",Sign_postalCode)
Outputline17 = Replace(Outputline16,"###COUNTRYCODE###",Sign_countryCode)
Outputline18 = Replace(Outputline17,"###HOMEPHONE###",Sign_homePhone)
Outputline19 = Replace(Outputline18,"###OTHERHOMEPHONE###",Sign_otherHomePhone)
Outputline20 = Replace(Outputline19,"###PAGER###",Sign_pager)
Outputline21 = Replace(Outputline20,"###OTHERPAGER###",Sign_otherPager)
Outputline22 = Replace(Outputline21,"###MOBILEPHONE###",Sign_mobile)
Outputline23 = Replace(Outputline22,"###OTHERMOBILEPHONE###",Sign_otherMobile)
Outputline24 = Replace(Outputline23,"###FAX###",Sign_facsimileTelephoneNumber)
Outputline25 = Replace(Outputline24,"###OTHERFAX###",Sign_otherFacsimileTelephoneNumber)
Outputline26 = Replace(Outputline25,"###IPPHONE###",Sign_ipPhone)
Outputline27 = Replace(Outputline26,"###OTHERIPPHONE###",Sign_otherIpPhone)
Outputline28 = Replace(Outputline27,"###NOTES###",Sign_info)
Outputline29 = Replace(Outputline28,"###JOBTITLE###",Sign_title)
Outputline30 = Replace(Outputline29,"###DEPARTMENT###",Sign_department)
Outputline31 = Replace(Outputline30,"###COMPANY###",Sign_company)
Outputline32 = Replace(Outputline31,"###MANAGER###",Sign_manager)
objFile.Write Trim(Outputline32) &amp; vbCrLf
Loop
objFile.Close
objTextFile.Close
Set objTextFile = Nothing



' REMOVE TEMPORARY FILES
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.htm.template") = True Then objFSO.DeleteFile SignaturePath &amp; "OutlookSignature.htm.template" End If
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.txt.template") = True Then objFSO.DeleteFile SignaturePath &amp; "OutlookSignature.txt.template" End If



' AUTOMATIC ACTIVATION
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.txt") Then
keyPath = "Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
if objRegistry.EnumKey(&amp;H80000001, keyPath, valueNames1) = 0 then
	if isArray(valueNames1) then
		for i1 = 0 to UBound(valueNames1)
		if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1), valueNames2) = 0 then
			if isArray(valueNames2) then
				for i2 = 0 to UBound(valueNames2)
					if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\" &amp; valueNames2(i2), valueNames3) = 0 then
						if isArray(valueNames3) then
							for i3 = 0 to UBound(valueNames3)
							If InStr(valueNames3(i3),"0000") &gt; 0 Then
							If OutlookSignatureFirsNew = 1 Then objRegistry.SetBinaryValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3), "New Signature", OutlookSignatureBinName End If
							If OutlookSignatureFirsRep = 1 Then objRegistry.SetBinaryValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3), "Reply-Forward Signature", OutlookSignatureBinName End If
							SetRegCounter = SetRegCounter + 1
							End If
					next
					end if
				end if
			next
			end if
		end if
	next
	end if
end if
keyPath = "Software\Microsoft\Office"
if objRegistry.EnumKey(&amp;H80000001, keyPath, valueNames1) = 0 then
	if isArray(valueNames1) then
		for i1 = 0 to UBound(valueNames1)
		if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles", valueNames2) = 0 then
			if isArray(valueNames2) then
				for i2 = 0 to UBound(valueNames2)
					if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles\" &amp; valueNames2(i2), valueNames3) = 0 then
						if isArray(valueNames3) then
							for i3 = 0 to UBound(valueNames3)
							if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3), valueNames4) = 0 then
								if isArray(valueNames4) then
									for i4 = 0 to UBound(valueNames4)
									If InStr(valueNames4(i4),"0000") &gt; 0 Then
									If OutlookSignatureFirsNew = 1 Then objRegistry.SetBinaryValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3) &amp; "\" &amp; valueNames4(i4), "New Signature", OutlookSignatureBinName End If
									If OutlookSignatureFirsRep = 1 Then objRegistry.SetBinaryValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3) &amp; "\" &amp; valueNames4(i4), "Reply-Forward Signature", OutlookSignatureBinName End If
									SetRegCounter = SetRegCounter + 1
									End If
							next
							end if
						end if
					next
					end if
				end if
			next
			end if
		end if
		objRegistry.DeleteValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Setup", "First-Run"
	next
	end if
end if
Set objFile = objFSO.CreateTextFile(SignatureFrst, True)
objFile.Close
Else
If objFSO.FolderExists(SignaturePath &amp; "OutlookSignature_files") = True Then objFSO.DeleteFolder SignaturePath &amp; "OutlookSignature_files" End If
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.htm") = True Then objFSO.DeleteFile SignaturePath &amp; "OutlookSignature.htm" End If
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.txt") = True Then objFSO.DeleteFile SignaturePath &amp; "OutlookSignature.txt" End If
If objFSO.FileExists(SignaturePath &amp; "OutlookSignature.rtf") = True Then objFSO.DeleteFile SignaturePath &amp; "OutlookSignature.rtf" End If
End If

End If



' FORCE RE-ACTIVATION
If objFSO.FileExists(SignatureFrst) = True Or objFSO.FileExists(SignatureFlag) = True Then
WScript.Sleep 60000
keyPath = "Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles"
if objRegistry.EnumKey(&amp;H80000001, keyPath, valueNames1) = 0 then
	if isArray(valueNames1) then
		for i1 = 0 to UBound(valueNames1)
		if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1), valueNames2) = 0 then
			if isArray(valueNames2) then
				for i2 = 0 to UBound(valueNames2)
					if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\" &amp; valueNames2(i2), valueNames3) = 0 then
						if isArray(valueNames3) then
							for i3 = 0 to UBound(valueNames3)
							If InStr(valueNames3(i3),"0000") &gt; 0 Then
							If (OutlookSignatureFirsNew = 1 And OutlookSignatureRefrNew = 1) Or objFSO.FileExists(SignatureFrst) = True Then objRegistry.SetBinaryValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3), "New Signature", OutlookSignatureBinName End If
							If (OutlookSignatureFirsRep = 1 And OutlookSignatureRefrRep = 1) Or objFSO.FileExists(SignatureFrst) = True Then objRegistry.SetBinaryValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3), "Reply-Forward Signature", OutlookSignatureBinName End If
							SetRegCounter = SetRegCounter + 1
							End If
					next
					end if
				end if
			next
			end if
		end if
	next
	end if
end if
keyPath = "Software\Microsoft\Office"
if objRegistry.EnumKey(&amp;H80000001, keyPath, valueNames1) = 0 then
	if isArray(valueNames1) then
		for i1 = 0 to UBound(valueNames1)
		if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles", valueNames2) = 0 then
			if isArray(valueNames2) then
				for i2 = 0 to UBound(valueNames2)
					if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles\" &amp; valueNames2(i2), valueNames3) = 0 then
						if isArray(valueNames3) then
							for i3 = 0 to UBound(valueNames3)
							if objRegistry.EnumKey(&amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3), valueNames4) = 0 then
								if isArray(valueNames4) then
									for i4 = 0 to UBound(valueNames4)
									If InStr(valueNames4(i4),"0000") &gt; 0 Then
									If (OutlookSignatureFirsNew = 1 And OutlookSignatureRefrNew = 1) Or objFSO.FileExists(SignatureFrst) = True Then objRegistry.SetBinaryValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3) &amp; "\" &amp; valueNames4(i4), "New Signature", OutlookSignatureBinName End If
									If (OutlookSignatureFirsRep = 1 And OutlookSignatureRefrRep = 1) Or objFSO.FileExists(SignatureFrst) = True Then objRegistry.SetBinaryValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Profiles\" &amp; valueNames2(i2) &amp; "\" &amp; valueNames3(i3) &amp; "\" &amp; valueNames4(i4), "Reply-Forward Signature", OutlookSignatureBinName End If
									SetRegCounter = SetRegCounter + 1
									End If
							next
							end if
						end if
					next
					end if
				end if
			next
			end if
		end if
		If OutlookSignatureRefrNew = 1 Or OutlookSignatureRefrRep = 1 Or objFSO.FileExists(SignatureFrst) = True Then objRegistry.DeleteValue &amp;H80000001, keyPath &amp; "\" &amp; valueNames1(i1) &amp; "\Outlook\Setup", "First-Run" End If
	next
	end if
end if
End If



' END
If objFSO.FileExists(SignatureFrst) = True Then objFSO.DeleteFile SignatureFrst End If
If SetRegCounter &gt; 0 Then Set objFile = objFSO.CreateTextFile(SignatureFlag, True) End If
objFile.Close
Set objFile = Nothing
Set objFSO = Nothing
Set objUser = Nothing
Set objSysInfo = Nothing
Set oShell = Nothing</pre><p></p>
<style type="text/css">a[rel~="mtli_filesize1135kB"]:after {content:" (11.35 kB)"}</style>]]></content:encoded>
			<wfw:commentRss>https://www.lupigabriel.it/outlook-signature/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
