<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.7" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: VBScript to export SMTP proxy addresses</title>
	<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/</link>
	<description>Technical musings...</description>
	<pubDate>Wed, 07 Jan 2009 04:06:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.7</generator>

	<item>
		<title>by: Alex</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-38783</link>
		<pubDate>Thu, 14 Aug 2008 21:59:49 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-38783</guid>
					<description>I had the same error...
Line: 49
Char: 2
Error: Obejct not a collection
Code : 800A01c3
Source: Microsoft VBScript runtime error

I found out that some users had no secondary address (proxyAddress) and the script failed because it can't process it.
To solve this I added the line:
     If IsArray(arrProxyAddresses) Then...
before the line:
     For Each Address In arrProxyAddresses...
to verify that arrProxyAddresses was an array (collection)  before it gets processed as one.</description>
		<content:encoded><![CDATA[<p>I had the same error&#8230;<br />
Line: 49<br />
Char: 2<br />
Error: Obejct not a collection<br />
Code : 800A01c3<br />
Source: Microsoft VBScript runtime error</p>
<p>I found out that some users had no secondary address (proxyAddress) and the script failed because it can&#8217;t process it.<br />
To solve this I added the line:<br />
     If IsArray(arrProxyAddresses) Then&#8230;<br />
before the line:<br />
     For Each Address In arrProxyAddresses&#8230;<br />
to verify that arrProxyAddresses was an array (collection)  before it gets processed as one.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Abhi</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-26792</link>
		<pubDate>Mon, 21 Jan 2008 06:35:08 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-26792</guid>
					<description>Hi,
I also recived the folllowinmg error, one txt file is created, but only with 3 to 4 names, the script gave the following error
Line: 49
Char: 2
Error: Obejct not a collection
Code : 800A01c3
Source: Microsoft VBScript runtime error</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I also recived the folllowinmg error, one txt file is created, but only with 3 to 4 names, the script gave the following error<br />
Line: 49<br />
Char: 2<br />
Error: Obejct not a collection<br />
Code : 800A01c3<br />
Source: Microsoft VBScript runtime error
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Eric</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-26342</link>
		<pubDate>Tue, 15 Jan 2008 00:11:05 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-26342</guid>
					<description>When I modify your script to use the group or public folder object class the following is returned when the script executes: "(49, 2) Microsoft VBScript runtime error: Object not a collection".  No output is generated.  Any idea what would cause this?

Thanks.................Eric</description>
		<content:encoded><![CDATA[<p>When I modify your script to use the group or public folder object class the following is returned when the script executes: &#8220;(49, 2) Microsoft VBScript runtime error: Object not a collection&#8221;.  No output is generated.  Any idea what would cause this?</p>
<p>Thanks&#8230;&#8230;&#8230;&#8230;&#8230;..Eric
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Han</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-23124</link>
		<pubDate>Wed, 05 Dec 2007 09:51:47 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-23124</guid>
					<description>The script does not handle users with only one primary SMTP proxy address.</description>
		<content:encoded><![CDATA[<p>The script does not handle users with only one primary SMTP proxy address.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Mark Lencioni</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-7274</link>
		<pubDate>Fri, 19 Jan 2007 18:15:44 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-7274</guid>
					<description>How would you go about modifying the script to connect to a different domain?  We run a resource domain model and my machine is not a member of the domain that holds the Exchange Org.

Thanks!</description>
		<content:encoded><![CDATA[<p>How would you go about modifying the script to connect to a different domain?  We run a resource domain model and my machine is not a member of the domain that holds the Exchange Org.</p>
<p>Thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Tony Massa</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-6725</link>
		<pubDate>Thu, 04 Jan 2007 05:08:02 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-6725</guid>
					<description>The current script is looking for = "smtp:", so the script only pulls the secondary addresses.  Primary addresses are formatted in CAPS, so you can force all address to lower-case by using the LCase() function:

		For Each Address In arrProxyAddresses
			If LCase(left(Address,5))= "smtp:" Then
			 objTextFile.writeLine(FoundObject.Displayname &#38; vbTab &#38; Address)

That's it!  Nice and simple.

Good Luck
			End if
		Next</description>
		<content:encoded><![CDATA[<p>The current script is looking for = &#8220;smtp:&#8221;, so the script only pulls the secondary addresses.  Primary addresses are formatted in CAPS, so you can force all address to lower-case by using the LCase() function:</p>
<p>		For Each Address In arrProxyAddresses<br />
			If LCase(left(Address,5))= &#8220;smtp:&#8221; Then<br />
			 objTextFile.writeLine(FoundObject.Displayname &amp; vbTab &amp; Address)</p>
<p>That&#8217;s it!  Nice and simple.</p>
<p>Good Luck<br />
			End if<br />
		Next
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jim Gingrich</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-4532</link>
		<pubDate>Fri, 17 Nov 2006 16:23:23 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-4532</guid>
					<description>I use a script to upload a white list to our spam filter provider.  My problem is that I can get all mail addresses and all DL addresses.  I cannot get the secondary smtp addresses.  Is this possible.

example.
primary = jim.gingrich
                James.gingrich is not returned in the query.   
Thanks in Advance</description>
		<content:encoded><![CDATA[<p>I use a script to upload a white list to our spam filter provider.  My problem is that I can get all mail addresses and all DL addresses.  I cannot get the secondary smtp addresses.  Is this possible.</p>
<p>example.<br />
primary = jim.gingrich<br />
                James.gingrich is not returned in the query.<br />
Thanks in Advance
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ant</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-4130</link>
		<pubDate>Wed, 08 Nov 2006 08:05:05 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-4130</guid>
					<description>&lt;div align="left"&gt;Just update the LDAP string for different object classes. For example:&lt;/div&gt; &lt;div align="left"&gt;strLDAP = &#34;;(&#38;(mailnickname=*)(objectClass=publicfolder));adspath;subtree&#34;&lt;/div&gt; &lt;div align="left"&gt;or&lt;/div&gt; &lt;div align="left"&gt;strLDAP = &#34;;(&#38;(mailnickname=*)(objectClass=group));adspath;subtree&#34;&lt;/div&gt;</description>
		<content:encoded><![CDATA[<div align="left">Just update the LDAP string for different object classes. For example:</div>
<div align="left">strLDAP = &quot;;(&amp;(mailnickname=*)(objectClass=publicfolder));adspath;subtree&quot;</div>
<div align="left">or</div>
<div align="left">strLDAP = &quot;;(&amp;(mailnickname=*)(objectClass=group));adspath;subtree&quot;</div>
]]></content:encoded>
				</item>
	<item>
		<title>by: Joe</title>
		<link>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-4122</link>
		<pubDate>Tue, 07 Nov 2006 21:49:54 +0000</pubDate>
		<guid>http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comment-4122</guid>
					<description>Is there any way to have this script also export public folder and Distribution list addresses.  It worked great for my users, but I also need a report of public folder and DL SMTP addresses...

Thanks</description>
		<content:encoded><![CDATA[<p>Is there any way to have this script also export public folder and Distribution list addresses.  It worked great for my users, but I also need a report of public folder and DL SMTP addresses&#8230;</p>
<p>Thanks
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
