<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Ant Drewery &#187; Scripts</title>
	<atom:link href="http://blog.drewery.net/category/scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.drewery.net</link>
	<description>IT infrastructure, support and strategy</description>
	<lastBuildDate>Thu, 01 Dec 2011 09:47:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.drewery.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Ant Drewery &#187; Scripts</title>
		<link>http://blog.drewery.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.drewery.net/osd.xml" title="Ant Drewery" />
	<atom:link rel='hub' href='http://blog.drewery.net/?pushpress=hub'/>
		<item>
		<title>VBScript to remove specific SMTP proxy addresses</title>
		<link>http://blog.drewery.net/2006/11/03/vbscript-to-remove-specific-smtp-proxy-addresses/</link>
		<comments>http://blog.drewery.net/2006/11/03/vbscript-to-remove-specific-smtp-proxy-addresses/#comments</comments>
		<pubDate>Fri, 03 Nov 2006 09:42:37 +0000</pubDate>
		<dc:creator>Anthony Drewery</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.drewery.net/blog/2006/11/03/vbscript-to-remove-specific-smtp-proxy-addresses/</guid>
		<description><![CDATA[This script will remove proxy addresses for a specific SMTP domain from a specified list of users. You can change the domain by editing the strSMTPDomain value in the script. The input file called users.txt is a list of display names. For my needs I reformatted the output from my previous script. By specifying the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.drewery.net&amp;blog=6502410&amp;post=127&amp;subd=antdrewery&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This script will remove proxy addresses for a specific SMTP domain from a specified list of users. You can change the domain by editing the strSMTPDomain value in the script. The input file called users.txt is a list of display names. For my needs I reformatted the output from my <a href="http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/" target="_blank">previous script</a>. By specifying the domain and the list of users it reduces the chances of any mistakes.</p>
<p>The script takes the input file and processes each listed user. It checks all the proxy addresses for the user and deletes any that match the specified domain. Two output files are produced. The first is a processing log which lists whether each user was found and how many addresses were removed for that user. The second file is a log of all addresses removed which can be used as a reference in the event of a mistake.</p>
<p>You can download the script here: <a id="p128" href="http://www.drewery.net/blog/wp-content/uploads/2006/11/StripLegacyProxyAddresses.vbs.txt">StripLegacyProxyAddresses.vbs.txt</a> </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/antdrewery.wordpress.com/127/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/antdrewery.wordpress.com/127/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antdrewery.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antdrewery.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antdrewery.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antdrewery.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antdrewery.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antdrewery.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antdrewery.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antdrewery.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antdrewery.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antdrewery.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antdrewery.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antdrewery.wordpress.com/127/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antdrewery.wordpress.com/127/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antdrewery.wordpress.com/127/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.drewery.net&amp;blog=6502410&amp;post=127&amp;subd=antdrewery&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.drewery.net/2006/11/03/vbscript-to-remove-specific-smtp-proxy-addresses/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ac112d149b667282aee5e6cc74ecf5a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ant</media:title>
		</media:content>
	</item>
		<item>
		<title>VBScript to export SMTP proxy addresses</title>
		<link>http://blog.drewery.net/2006/10/27/vbscript-to-export-smtp-proxy-addresses/</link>
		<comments>http://blog.drewery.net/2006/10/27/vbscript-to-export-smtp-proxy-addresses/#comments</comments>
		<pubDate>Fri, 27 Oct 2006 12:21:40 +0000</pubDate>
		<dc:creator>Anthony Drewery</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.drewery.net/blog/2006/10/27/vbscript-to-export-smtp-proxy-addresses/</guid>
		<description><![CDATA[Part of the way my current employer has grown is through acquisitions and mergers. Consequently we&#8217;ve been supporting more than 10 legacy SMTP domains from various shipping lines. Now that we&#8217;re decommissioning our systems it&#8217;s time to do some housekeeping and discontinue these domains. The first step was to check that all objects had their [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.drewery.net&amp;blog=6502410&amp;post=124&amp;subd=antdrewery&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Part of the way my current employer has grown is through acquisitions and mergers. Consequently we&#8217;ve been supporting more than 10 legacy SMTP domains from various shipping lines. Now that we&#8217;re decommissioning our systems it&#8217;s time to do some housekeeping and discontinue these domains.</p>
<p>The first step was to check that all objects had their primary SMTP address set to the main domain name. This was done more than a year ago but needed to be reconfirmed. A custom LDAP query that included the syntax&nbsp; (!mail=*@our_main_domain.com) sufficed.</p>
<p>Next I wrote a script that exported all SMTP proxy addresses for user objects. This was to be used as a reference in the unlikely event that problems arose down the line. The LDAP query can easily be modified for groups, contacts and public folders. It&#8217;s not the most exciting of scripts but it does the job. You can download it here: <a id="p125" href="http://www.drewery.net/blog/wp-content/uploads/2006/10/AllSMTPProxies.vbs.txt">AllSMTPProxies.vbs.txt</a></p>
<p>As I wanted to be very specific and meticulous in the removal of legacy proxy addresses I wrote another script that targets a specific SMTP domain. In this script you can specify the domain by changing the strSMTPDomain value. The script will then only export the names and addresses for proxies that match the SMTP domain. You can download the script here: <a id="p126" href="http://www.drewery.net/blog/wp-content/uploads/2006/10/SpecificSMTPProxies.vbs.txt">SpecificSMTPProxies.vbs.txt</a></p>
<p>In my next post I&#8217;ll be using PutEx in a script to remove proxy addresses from AD objects. </p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/antdrewery.wordpress.com/124/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/antdrewery.wordpress.com/124/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antdrewery.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antdrewery.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antdrewery.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antdrewery.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antdrewery.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antdrewery.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antdrewery.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antdrewery.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antdrewery.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antdrewery.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antdrewery.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antdrewery.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antdrewery.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antdrewery.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.drewery.net&amp;blog=6502410&amp;post=124&amp;subd=antdrewery&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.drewery.net/2006/10/27/vbscript-to-export-smtp-proxy-addresses/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ac112d149b667282aee5e6cc74ecf5a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ant</media:title>
		</media:content>
	</item>
		<item>
		<title>VBScript to output the logon script assigned to each user</title>
		<link>http://blog.drewery.net/2006/10/24/vbscript-to-output-the-logon-script-assigned-to-each-user/</link>
		<comments>http://blog.drewery.net/2006/10/24/vbscript-to-output-the-logon-script-assigned-to-each-user/#comments</comments>
		<pubDate>Tue, 24 Oct 2006 08:25:33 +0000</pubDate>
		<dc:creator>Anthony Drewery</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Scripts]]></category>

		<guid isPermaLink="false">http://www.drewery.net/blog/2006/10/24/vbscript-to-output-the-logon-script-assigned-to-each-user/</guid>
		<description><![CDATA[With some guidance from my colleague Ben Christian I&#8217;ve been working on several VBScripts to assist with the decommissioning of our systems. The scripts range from simple reporting to modifying objects. By posting them in this blog someone else may get some use out of them. They are posted &#34;as is&#34; and I accept no [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.drewery.net&amp;blog=6502410&amp;post=121&amp;subd=antdrewery&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>With some guidance from my colleague <a href="http://www.benchristian.com" target="_blank">Ben Christian</a>  I&#8217;ve been working on several VBScripts to assist with the decommissioning of our systems. The scripts range from simple reporting to modifying objects. By posting them in this blog someone else may get some use out of them. They are posted &quot;as is&quot; and I accept no liability arising from the use of them.</p>
<p>This script simply creates a tab delimited text file showing all users with their logon script and object&#8217;s distinguished name. You&#8217;ll be notified by a prompt when the script has finished processing. Simply open the resulting text file with Excel to see the information formatted into columns. You could modify the script to output to a CSV file if you don&#8217;t use commas in your display names. Download the script here: <a id="p122" href="http://www.drewery.net/blog/wp-content/uploads/2006/10/WhichLoginScript.vbs.txt">WhichLoginScript.vbs.txt</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/antdrewery.wordpress.com/121/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/antdrewery.wordpress.com/121/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/antdrewery.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/antdrewery.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/antdrewery.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/antdrewery.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/antdrewery.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/antdrewery.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/antdrewery.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/antdrewery.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/antdrewery.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/antdrewery.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/antdrewery.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/antdrewery.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/antdrewery.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/antdrewery.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.drewery.net&amp;blog=6502410&amp;post=121&amp;subd=antdrewery&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.drewery.net/2006/10/24/vbscript-to-output-the-logon-script-assigned-to-each-user/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9ac112d149b667282aee5e6cc74ecf5a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Ant</media:title>
		</media:content>
	</item>
	</channel>
</rss>
