<?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>Security for a day &#187; Powershell</title>
	<atom:link href="http://www.chris-mohan.com/category/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chris-mohan.com</link>
	<description>Securing Windows Networks or giving it a go in Australia...</description>
	<lastBuildDate>Sun, 29 Aug 2010 13:00:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Exchange 2007 Transport Edge server &#8211; Attachments over 10MB disappearing</title>
		<link>http://www.chris-mohan.com/2008/03/exchange-2007-transport-edge-server-attachments-over-10mb-disappearing/</link>
		<comments>http://www.chris-mohan.com/2008/03/exchange-2007-transport-edge-server-attachments-over-10mb-disappearing/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 13:44:17 +0000</pubDate>
		<dc:creator>Chris Mohan</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=22</guid>
		<description><![CDATA[Ah, the further joys of Exchange and Powershell. Was mucking around and decided to send some large files (over 10 mb) between email systems, but they didn&#8217;t arrive. Hmmm After checking that all the standard settings for message limits where okay, things still weren&#8217;t working. A bit of Googling stumbled on to this Basically each [...]]]></description>
			<content:encoded><![CDATA[<p>Ah, the further joys of Exchange and Powershell.</p>
<p>Was mucking around and decided to send some large files (over 10 mb) between email systems, but they didn&#8217;t arrive. Hmmm</p>
<p>After checking that all the standard settings for message limits where okay, things still weren&#8217;t working.</p>
<p>A bit of Googling stumbled on to <a href="http://" title="http://www.msexchange.org/articles-tutorials/exchange-server-2007/management-administration/exchange-2007-message-size-limits.html" target="_blank">this</a>  Basically each connector (both send and receive) in Exchange 2007 has a 10mb limit by default.</p>
<p>Get-SendConnector | list and  Get-ReceiveConnector | list show this very clearly (ish)</p>
<p>Time to change that!</p>
<p>On the Internal Exhange 2007 box from Powershell:</p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">Set-SendConnector –IDENTITY &#8220;Internet&#8221; -MaxMessageSize 50MB<u1:p></u1:p></span></p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">SET-ReceiveCONNECTOR –IDENTITY &#8220;EX\Default EX&#8221; –MaxMessageSize 50MB</span></p>
<p>Then on the Edge Connector server</p>
<p style="margin: 0cm 0cm 6pt">
<span style="font-size: 8pt">Set-SendConnector –IDENTITY &#8220;Sending to Internet&#8221; -MaxMessageSize 50MB<o:p></o:p></span></p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">Set-SendConnector –IDENTITY &#8220;Sending to LAN&#8221; -MaxMessageSize 50MB<o:p></o:p></span></p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">SET-ReceiveCONNECTOR –IDENTITY &#8220;External Inbound&#8221; –MaxMessageSize 50MB<o:p></o:p></span></p>
<p style="margin: 0cm 0cm 6pt"><span style="font-size: 8pt">SET-ReceiveCONNECTOR –IDENTITY &#8220;Intenal Outbound&#8221; –MaxMessageSize 50MB<o:p></o:p></span></p>
<p><span style="font-size: 8pt"><o:p></o:p></span></p>
<p>Well, that sorted the bugger! I was freely sending up to 50MB files backward and forward.</p>
<p>(-IDENTITY is the name of the exact connector displayed from the Get commands above)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2008/03/exchange-2007-transport-edge-server-attachments-over-10mb-disappearing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Troubles with deleted attachments in Exchange 2007 Edge Server</title>
		<link>http://www.chris-mohan.com/2008/02/troubles-with-deleted-attachments-in-exchange-2007-edge-server/</link>
		<comments>http://www.chris-mohan.com/2008/02/troubles-with-deleted-attachments-in-exchange-2007-edge-server/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 12:22:25 +0000</pubDate>
		<dc:creator>Chris Mohan</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Labs]]></category>
		<category><![CDATA[Powershell]]></category>

		<guid isPermaLink="false">http://www.chris-mohan.com/?p=21</guid>
		<description><![CDATA[My continuing journey in to the joys of having a non-standard Edge server configuration, just to have a lab to muck around in! Certain file types, mainly .exe were being deleted and replaced with a simple .txt with the name of the deleted file attached to the original email. So I got evil.exe.txt rather than [...]]]></description>
			<content:encoded><![CDATA[<p>My continuing journey in to the joys of having a non-standard Edge server configuration, just to have a lab to muck around in!</p>
<p>Certain file types, mainly .exe were being deleted and replaced with a simple .txt with the name of the deleted file attached to the original email. So I got evil.exe.txt rather than evil.exe.</p>
<p>I turned to Google for Powershell commands on how to configure the Edge server, since the GUI showed nothing active in the Transport rules tab.</p>
<p>Found this command Get-TransportAgent cmdlet to view the configuration of a transport agent on a computer that has the Edge Transport server role or the Hub Transport server role installed in a Microsoft Exchange Server 2007 organization.<br />
<a href="http://technet.microsoft.com/en-us/library/bb123536(EXCHG.80).aspx" target="_blank">http://technet.microsoft.com/en-us/library/bb123536(EXCHG.80).aspx</a></p>
<p>[PS] C:\Documents and Settings\Elvis&gt;Get-TransportAgent</p>
<p>Identity                                           Enabled         Priority<br />
&#8212;&#8212;&#8211;                                           &#8212;&#8212;-         &#8212;&#8212;&#8211;<br />
Connection Filtering Agent                         True            1<br />
Address Rewriting Inbound Agent                    True            2<br />
Edge Rule Agent                                    True            3<br />
Content Filter Agent                               True            4<br />
Sender Id Agent                                    True            5<br />
Sender Filter Agent                                True            6<br />
Recipient Filter Agent                             True            7<br />
Protocol Analysis Agent                            True            8<br />
Attachment Filtering Agent                         True            9<br />
Address Rewriting Outbound Agent                   True            10</p>
<p>This lead me to believe my naughty server was blocking by default and this proved me right:<br />
<a href="http://technet.microsoft.com/en-us/library/aa997139(EXCHG.80).aspx" target="_blank">http://technet.microsoft.com/en-us/library/aa997139(EXCHG.80).aspx</a></p>
<p>By the magic of changing Enable to Disable, I modify the Powershell command and ran it.</p>
<p>Disable-TransportAgent -Identity &#8220;Attachment Filtering agent&#8221;</p>
<p>[PS] C:\Documents and Settings\Elvis&gt;Get-TransportAgent</p>
<p>Identity                                           Enabled         Priority<br />
&#8212;&#8212;&#8211;                                           &#8212;&#8212;-         &#8212;&#8212;&#8211;<br />
Connection Filtering Agent                         True            1<br />
Address Rewriting Inbound Agent                    True            2<br />
Edge Rule Agent                                    True            3<br />
Content Filter Agent                               True            4<br />
Sender Id Agent                                    True            5<br />
Sender Filter Agent                                True            6<br />
Recipient Filter Agent                             True            7<br />
Protocol Analysis Agent                            True            8<br />
<strong>Attachment Filtering Agent                         False           9</strong><br />
Address Rewriting Outbound Agent                   True            10</p>
<p>And as if by magic, my .exe came through to Outlook untouched.</p>
<p>Hopefully, a useful reference if other oddities happen again!</p>
<p>Should reaaaaaallllly think about learning PowerShell sooner rather than later &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chris-mohan.com/2008/02/troubles-with-deleted-attachments-in-exchange-2007-edge-server/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
