<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: AD Based Outlook Email Signature for 2003 and 2007</title>
	<atom:link href="http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/feed/" rel="self" type="application/rss+xml" />
	<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/</link>
	<description>Bloggin about Microsoft, SQL Server, Windows Server 2008, Windows Mobile, new techie bits and pieces</description>
	<lastBuildDate>Mon, 05 Dec 2011 15:58:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Delma Messmore</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-1208</link>
		<dc:creator>Delma Messmore</dc:creator>
		<pubDate>Wed, 24 Aug 2011 05:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-1208</guid>
		<description>I used to be suggested this blog via my cousin. I am not certain whether this put up is written through him as nobody else recognise such particular approximately my difficulty. You&#039;re amazing! Thanks!</description>
		<content:encoded><![CDATA[<p>I used to be suggested this blog via my cousin. I am not certain whether this put up is written through him as nobody else recognise such particular approximately my difficulty. You&#8217;re amazing! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jumperoo safety</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-1036</link>
		<dc:creator>jumperoo safety</dc:creator>
		<pubDate>Fri, 27 Aug 2010 20:52:25 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-1036</guid>
		<description>Hi, my english isnt very best but I think by regulary visits of this blog it will likely be better inside next time. You have a beneficial wrting style that is effortless to understand and can assists men and women like me to learn english. I will be now a regulary visitor of your blog.</description>
		<content:encoded><![CDATA[<p>Hi, my english isnt very best but I think by regulary visits of this blog it will likely be better inside next time. You have a beneficial wrting style that is effortless to understand and can assists men and women like me to learn english. I will be now a regulary visitor of your blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Marsh</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-1026</link>
		<dc:creator>Brad Marsh</dc:creator>
		<pubDate>Tue, 17 Aug 2010 22:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-1026</guid>
		<description>VERY NICE, thanks a bunch Chris, I am sure this is going to help a bunch of people out.</description>
		<content:encoded><![CDATA[<p>VERY NICE, thanks a bunch Chris, I am sure this is going to help a bunch of people out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris))</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-1024</link>
		<dc:creator>Chris))</dc:creator>
		<pubDate>Mon, 16 Aug 2010 13:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-1024</guid>
		<description>Hey folks,

greate script, works like a charm, but I had issues implementing it in a mixed client/terminal server enviroment. the script kept on failing for our terminal server users due to the fact that the function IsOutlookRunning always returned &quot;true&quot; since other outlook instances were running on the TS within other users session context. So I modified the funktion &quot;IsOutlookRunning&quot; which now compares the Process owner of outlook.exe with the logon user and gives back true only if the condition is true. Before, of course, the logon user must be defined:

############### get Logonuser################
Set oShell = CreateObject(&quot;Wscript.Shell&quot;)
strLogonUser = oShell.ExpandEnvironmentStrings(&quot;%USERNAME%&quot;)


#############################################

Function IsOutlookRunning()

strComputer = &quot;.&quot;
strQuery = &quot;Select * from Win32_Process &quot; &amp; _
&quot;Where Name = &#039;outlook.exe&#039;&quot;
Set objWMIService = GetObject(&quot;winmgmts:&quot; _
&amp; &quot;{impersonationLevel=impersonate}!\\&quot; _
&amp; strComputer &amp; &quot;\root\cimv2&quot;)

Set colProcesses = objWMIService.ExecQuery(strQuery)

For Each objProcess In colProcesses
procusername = objProcess.GetOwner(strNameOfUser)
proc = objProcess.Name

If UCase(objProcess.Name) = &quot;OUTLOOK.EXE&quot;  and (strLogonUser) = (strNameOfUser) Then
IsOutlookRunning = True
Else
IsOutlookRunning = False
End If
Next
End Function

############################################

This modification works fine on both XP/Windows 7 and TerminalServer 2008 R2

hope that helps you out.

regards

Chris</description>
		<content:encoded><![CDATA[<p>Hey folks,</p>
<p>greate script, works like a charm, but I had issues implementing it in a mixed client/terminal server enviroment. the script kept on failing for our terminal server users due to the fact that the function IsOutlookRunning always returned &#8220;true&#8221; since other outlook instances were running on the TS within other users session context. So I modified the funktion &#8220;IsOutlookRunning&#8221; which now compares the Process owner of outlook.exe with the logon user and gives back true only if the condition is true. Before, of course, the logon user must be defined:</p>
<p>############### get Logonuser################<br />
Set oShell = CreateObject(&#8220;Wscript.Shell&#8221;)<br />
strLogonUser = oShell.ExpandEnvironmentStrings(&#8220;%USERNAME%&#8221;)</p>
<p>#############################################</p>
<p>Function IsOutlookRunning()</p>
<p>strComputer = &#8220;.&#8221;<br />
strQuery = &#8220;Select * from Win32_Process &#8221; &amp; _<br />
&#8220;Where Name = &#8216;outlook.exe&#8217;&#8221;<br />
Set objWMIService = GetObject(&#8220;winmgmts:&#8221; _<br />
&amp; &#8220;{impersonationLevel=impersonate}!\\&#8221; _<br />
&amp; strComputer &amp; &#8220;\root\cimv2&#8243;)</p>
<p>Set colProcesses = objWMIService.ExecQuery(strQuery)</p>
<p>For Each objProcess In colProcesses<br />
procusername = objProcess.GetOwner(strNameOfUser)<br />
proc = objProcess.Name</p>
<p>If UCase(objProcess.Name) = &#8220;OUTLOOK.EXE&#8221;  and (strLogonUser) = (strNameOfUser) Then<br />
IsOutlookRunning = True<br />
Else<br />
IsOutlookRunning = False<br />
End If<br />
Next<br />
End Function</p>
<p>############################################</p>
<p>This modification works fine on both XP/Windows 7 and TerminalServer 2008 R2</p>
<p>hope that helps you out.</p>
<p>regards</p>
<p>Chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-1004</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 01 Jul 2010 15:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-1004</guid>
		<description>Hey, i have been working on a similar project recently for my company, i came up with a VB solution and ran it from the logon script. It works with 2003 and 2007, i have included the code below.

On Error Resume Next
Set objSysInfo = CreateObject(&quot;ADSystemInfo&quot;)
strUser = objSysInfo.UserName
Set objUser = GetObject(&quot;LDAP://&quot; &amp; strUser)
strTitle = objUser.Title
strName = objUser.givenName &amp; &quot; &quot; &amp; objUser.sn
strDesc = objUser.description
strDepartment = objUser.Department
strCompany = objUser.Company


	

	if objUser.telephoneNumber=&quot;&quot; Then
		strPhone = &quot;T: +44 (0)1670 39 3811&quot; 
		
	Else
		strPhone = &quot;T: +44 &quot; &amp; objUser.telephoneNumber
	End If

	if objUser.mobile=&quot;&quot; Then
	
	Else
		strMob = &quot;  M: +44 &quot; &amp; objUser.mobile
	End If

	if objUser.facsimileTelephoneNumber=&quot;&quot; Then
				
		If objUser.physicaldeliveryofficename=&quot;Lynemouth Smelter&quot; Then
			strFax = &quot;F: +44 (0)1670 39 3956&quot; 
		ElseIf objUser.physicaldeliveryofficename=&quot;Lynemouth Power Station&quot; Then
			strFax = &quot;F: +44 (0)1670 39 3970&quot; 
		End If

	
	Else
		strFax = &quot;  F: +44 &quot; &amp; objUser.facsimileTelephoneNumber
	End If


strTelecom = strPhone &amp; &quot; &quot; &amp; strMob  &amp; &quot; &quot; &amp; strFax
strAddress = objUser.streetAddress &amp; &quot;, &quot; &amp; objUser.l &amp; &quot;, &quot; &amp; objUser.st &amp; &quot;, &quot; &amp; objUser.postalCode &amp; &quot;,&quot;
strEmail = objUser.mail
strWeb = &quot;company web address&quot;
Set objWord = CreateObject(&quot;Word.Application&quot;)
Set objDoc = objWord.Documents.Add()
Set objSelection = objWord.Selection
Set objEmailOptions = objWord.EmailOptions
Set objSignatureObject = objEmailOptions.EmailSignature
Set objSignatureEntries = objSignatureObject.EmailSignatureEntries


objWord.UserName = objUser.givenName &amp; &quot; &quot; &amp; objUser.SN
objWord.UserInitials = Left(objUser.givenName, 1) &amp; Left(objUser.SN, 1)





objSelection.Font.Name = &quot;Georgia&quot;
objSelection.Font.Size = &quot;12&quot;
objSelection.TypeText strName &amp;&quot;,&quot;
objSelection.TypeText Chr(11)
objSelection.TypeText strTitle &amp;&quot;, Alcan Aluminium UK Limited&quot; 
objSelection.TypeText Chr(11)
objSelection.TypeText Chr(11)
objSelection.Font.Color = &quot;000,000,255&quot;
objSelection.TypeText strCompany
objSelection.TypeText Chr(11)
objSelection.Font.Name = &quot;Arial&quot;
objSelection.Font.Size = &quot;10&quot;
objSelection.Font.Color = &quot;000,000,000&quot;
objSelection.TypeText strAddress &amp;&quot; England&quot;
objSelection.TypeText Chr(11)
objSelection.TypeText Chr(11)
objSelection.TypeText strTelecom
objSelection.TypeText Chr(11)
objSelection.TypeText strEmail &amp; &quot;, &quot;
objSelection.Hyperlinks.Add objSelection.Range, strWeb, &quot;&quot;, &quot;&quot;, strWeb 
objSelection.TypeText Chr(11)
objSelection.TypeText Chr(11)
objSelection.TypeText &quot;Company registered Office&quot;

Set objSelection = objDoc.Range()

objSignatureEntries.Add &quot;RTA &quot;&amp; strName, objSelection
objSignatureObject.NewMessageSignature = &quot;RTA &quot; &amp; strName
objSignatureObject.ReplyMessageSignature = &quot;RTA &quot; &amp; strName

objDoc.Saved = True
objWord.Quit
WScript.Echo &quot;The Footer &#039;RTA &quot;&amp; strName &amp;&quot;&#039; was created. Please create a new email and verify that your details are correct&quot;
wscript.quit</description>
		<content:encoded><![CDATA[<p>Hey, i have been working on a similar project recently for my company, i came up with a VB solution and ran it from the logon script. It works with 2003 and 2007, i have included the code below.</p>
<p>On Error Resume Next<br />
Set objSysInfo = CreateObject(&#8220;ADSystemInfo&#8221;)<br />
strUser = objSysInfo.UserName<br />
Set objUser = GetObject(&#8220;LDAP://&#8221; &amp; strUser)<br />
strTitle = objUser.Title<br />
strName = objUser.givenName &amp; &#8221; &#8221; &amp; objUser.sn<br />
strDesc = objUser.description<br />
strDepartment = objUser.Department<br />
strCompany = objUser.Company</p>
<p>	if objUser.telephoneNumber=&#8221;" Then<br />
		strPhone = &#8220;T: +44 (0)1670 39 3811&#8243; </p>
<p>	Else<br />
		strPhone = &#8220;T: +44 &#8221; &amp; objUser.telephoneNumber<br />
	End If</p>
<p>	if objUser.mobile=&#8221;" Then</p>
<p>	Else<br />
		strMob = &#8221;  M: +44 &#8221; &amp; objUser.mobile<br />
	End If</p>
<p>	if objUser.facsimileTelephoneNumber=&#8221;" Then</p>
<p>		If objUser.physicaldeliveryofficename=&#8221;Lynemouth Smelter&#8221; Then<br />
			strFax = &#8220;F: +44 (0)1670 39 3956&#8243;<br />
		ElseIf objUser.physicaldeliveryofficename=&#8221;Lynemouth Power Station&#8221; Then<br />
			strFax = &#8220;F: +44 (0)1670 39 3970&#8243;<br />
		End If</p>
<p>	Else<br />
		strFax = &#8221;  F: +44 &#8221; &amp; objUser.facsimileTelephoneNumber<br />
	End If</p>
<p>strTelecom = strPhone &amp; &#8221; &#8221; &amp; strMob  &amp; &#8221; &#8221; &amp; strFax<br />
strAddress = objUser.streetAddress &amp; &#8220;, &#8221; &amp; objUser.l &amp; &#8220;, &#8221; &amp; objUser.st &amp; &#8220;, &#8221; &amp; objUser.postalCode &amp; &#8220;,&#8221;<br />
strEmail = objUser.mail<br />
strWeb = &#8220;company web address&#8221;<br />
Set objWord = CreateObject(&#8220;Word.Application&#8221;)<br />
Set objDoc = objWord.Documents.Add()<br />
Set objSelection = objWord.Selection<br />
Set objEmailOptions = objWord.EmailOptions<br />
Set objSignatureObject = objEmailOptions.EmailSignature<br />
Set objSignatureEntries = objSignatureObject.EmailSignatureEntries</p>
<p>objWord.UserName = objUser.givenName &amp; &#8221; &#8221; &amp; objUser.SN<br />
objWord.UserInitials = Left(objUser.givenName, 1) &amp; Left(objUser.SN, 1)</p>
<p>objSelection.Font.Name = &#8220;Georgia&#8221;<br />
objSelection.Font.Size = &#8220;12&#8243;<br />
objSelection.TypeText strName &amp;&#8221;,&#8221;<br />
objSelection.TypeText Chr(11)<br />
objSelection.TypeText strTitle &amp;&#8221;, Alcan Aluminium UK Limited&#8221;<br />
objSelection.TypeText Chr(11)<br />
objSelection.TypeText Chr(11)<br />
objSelection.Font.Color = &#8220;000,000,255&#8243;<br />
objSelection.TypeText strCompany<br />
objSelection.TypeText Chr(11)<br />
objSelection.Font.Name = &#8220;Arial&#8221;<br />
objSelection.Font.Size = &#8220;10&#8243;<br />
objSelection.Font.Color = &#8220;000,000,000&#8243;<br />
objSelection.TypeText strAddress &amp;&#8221; England&#8221;<br />
objSelection.TypeText Chr(11)<br />
objSelection.TypeText Chr(11)<br />
objSelection.TypeText strTelecom<br />
objSelection.TypeText Chr(11)<br />
objSelection.TypeText strEmail &amp; &#8220;, &#8221;<br />
objSelection.Hyperlinks.Add objSelection.Range, strWeb, &#8220;&#8221;, &#8220;&#8221;, strWeb<br />
objSelection.TypeText Chr(11)<br />
objSelection.TypeText Chr(11)<br />
objSelection.TypeText &#8220;Company registered Office&#8221;</p>
<p>Set objSelection = objDoc.Range()</p>
<p>objSignatureEntries.Add &#8220;RTA &#8220;&amp; strName, objSelection<br />
objSignatureObject.NewMessageSignature = &#8220;RTA &#8221; &amp; strName<br />
objSignatureObject.ReplyMessageSignature = &#8220;RTA &#8221; &amp; strName</p>
<p>objDoc.Saved = True<br />
objWord.Quit<br />
WScript.Echo &#8220;The Footer &#8216;RTA &#8220;&amp; strName &amp;&#8221;&#8216; was created. Please create a new email and verify that your details are correct&#8221;<br />
wscript.quit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Goodier</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-982</link>
		<dc:creator>Simon Goodier</dc:creator>
		<pubDate>Mon, 07 Jun 2010 10:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-982</guid>
		<description>Haha; cannot believe this... I spent 4 days writing this almost exact script... except mine writes hundereds of reg entries and several signature files (basic and full sig, and one per client of ours)..

absolutely gutted; 

worth looking for a HTML2RTF vb function; write the HTML file, write a RTF file and then TXT file for all of the signatures..
not everyone communicates in HTML :)

slightly gutted I had to do this; but good to know i&#039;m not the only one.</description>
		<content:encoded><![CDATA[<p>Haha; cannot believe this&#8230; I spent 4 days writing this almost exact script&#8230; except mine writes hundereds of reg entries and several signature files (basic and full sig, and one per client of ours)..</p>
<p>absolutely gutted; </p>
<p>worth looking for a HTML2RTF vb function; write the HTML file, write a RTF file and then TXT file for all of the signatures..<br />
not everyone communicates in HTML <img src='http://bradmarsh.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>slightly gutted I had to do this; but good to know i&#8217;m not the only one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AD Based Outlook Email Signature for 2003, 2007 and NOW 2010!!! &#124; Brad Marsh's Weblog</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-949</link>
		<dc:creator>AD Based Outlook Email Signature for 2003, 2007 and NOW 2010!!! &#124; Brad Marsh's Weblog</dc:creator>
		<pubDate>Mon, 17 May 2010 04:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-949</guid>
		<description>[...] AD Based Outlook Email Signature for 2003 and 2007 [...]</description>
		<content:encoded><![CDATA[<p>[...] AD Based Outlook Email Signature for 2003 and 2007 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nutthakit Kanjanasupark</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-932</link>
		<dc:creator>Nutthakit Kanjanasupark</dc:creator>
		<pubDate>Thu, 06 May 2010 04:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-932</guid>
		<description>Thank you that script works perfectly.</description>
		<content:encoded><![CDATA[<p>Thank you that script works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-920</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 22 Apr 2010 18:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-920</guid>
		<description>Brad,

   The script works great when all users are in the users OU in AD. I have users in a bunch of different ou&#039;s and if I move people around the script does not work for those people.  How can I get it to query all of AD no matter the OU?</description>
		<content:encoded><![CDATA[<p>Brad,</p>
<p>   The script works great when all users are in the users OU in AD. I have users in a bunch of different ou&#8217;s and if I move people around the script does not work for those people.  How can I get it to query all of AD no matter the OU?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharan Noronha</title>
		<link>http://bradmarsh.net/index.php/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/comment-page-1/#comment-918</link>
		<dc:creator>Sharan Noronha</dc:creator>
		<pubDate>Wed, 21 Apr 2010 08:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://bradmarsh.wordpress.com/2008/02/18/ad-based-outlook-email-signature-for-2003-and-2007/#comment-918</guid>
		<description>Hi Brad,
Nice Script, since i am not from a scripting background, is it possible that i send you my Format and you could prbably change the script based on how i want the signature to look???</description>
		<content:encoded><![CDATA[<p>Hi Brad,<br />
Nice Script, since i am not from a scripting background, is it possible that i send you my Format and you could prbably change the script based on how i want the signature to look???</p>
]]></content:encoded>
	</item>
</channel>
</rss>

