<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Exchange Ideas - Daniel Kenyon-Smith : PowerShell</title><link>http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx</link><description>Tags: PowerShell</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>ServerManager Depreciated?</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/10/15/servermanager-depreciated.aspx</link><pubDate>Thu, 15 Oct 2009 20:46:07 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3287178</guid><dc:creator>danielke</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3287178.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3287178</wfw:commentRss><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;ServerManagerCmd is deprecated in R2 (we are trying to move away from that model although it still works) See &lt;a href="http://technet.microsoft.com/en-us/library/bb691354(EXCHG.140).aspx#WS08R2"&gt;http://technet.microsoft.com/en-us/library/bb691354(EXCHG.140).aspx#WS08R2&lt;/a&gt;&amp;#160; (The new command is now Add-WindowsFeature)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/danielkenyon-smith/WindowsLiveWriter/ServerManagerDepreciated_13218/clip_image002_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="http://blogs.technet.com/blogfiles/danielkenyon-smith/WindowsLiveWriter/ServerManagerDepreciated_13218/clip_image002_thumb.jpg" width="550" height="304" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Written by Daniel Kenyon-Smith&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3287178" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+2008/default.aspx">Windows 2008</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/E14/default.aspx">E14</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2010/default.aspx">Exchange 2010</category></item><item><title>Exchange 2010 Q&amp;A</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/09/06/exchange-2010-q-a.aspx</link><pubDate>Sun, 06 Sep 2009 18:43:47 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3279439</guid><dc:creator>danielke</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3279439.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3279439</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;please Join me at this event to talk about Exchange 2010, you can &lt;a href="http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032424259&amp;amp;EventCategory=4&amp;amp;culture=en-GB&amp;amp;CountryCode=GB"&gt;register here&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3279439" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2003/default.aspx">Exchange 2003</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+2008/default.aspx">Windows 2008</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+Mobile/default.aspx">Windows Mobile</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/virtualisation/default.aspx">virtualisation</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Event/default.aspx">Event</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/E14/default.aspx">E14</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Outlook+2003/default.aspx">Outlook 2003</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Outlook+Client/default.aspx">Outlook Client</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Outlook+2007/default.aspx">Outlook 2007</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2010/default.aspx">Exchange 2010</category></item><item><title>Combined HT and CAS</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/08/07/combined-ht-and-cas.aspx</link><pubDate>Fri, 07 Aug 2009 23:00:59 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3271615</guid><dc:creator>danielke</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3271615.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3271615</wfw:commentRss><description>&lt;p&gt;Take a look at the new guidance for &lt;a href="http://technet.microsoft.com/en-us/library/dd901772.aspx"&gt;combing HT and CAS&lt;/a&gt; and you can install both roles by running&lt;font size="3"&gt; &lt;code&gt;&lt;font face="Trebuchet MS"&gt;Setup.com /mode:install /role:H,C (nice and easy)&lt;/font&gt;&lt;/code&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;Written by Daniel Kenyon-Smith&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3271615" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+2008/default.aspx">Windows 2008</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>Relocate the ADAM (Lightweight Directory Services (AD LDS))</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/07/24/relocate-the-adam-lightweight-directory-services-ad-lds.aspx</link><pubDate>Fri, 24 Jul 2009 20:33:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3267891</guid><dc:creator>danielke</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3267891.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3267891</wfw:commentRss><description>&lt;p&gt;In order to relocate the ADAM database and logs on Edge you need edit the ConfigureAdam.PS1 to update the location of dsbutil.exe as shown below&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/danielkenyon-smith/WindowsLiveWriter/RelocatetheADAMLightweightDirectoryServi_104F7/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.technet.com/blogfiles/danielkenyon-smith/WindowsLiveWriter/RelocatetheADAMLightweightDirectoryServi_104F7/image_thumb.png" width="515" height="70" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;Then for example run:-&lt;/p&gt;  &lt;p&gt;configureAdam.PS1 –logpath:”E:\Program Files\Microsoft\Exchange Server\TRansportRoles\Data\Adam –DataPath:”D:\Program Files\Microsoft\Exchange Server\TRansportRoles\Data\Adam&lt;/p&gt;  &lt;p&gt;This will relocate the logs and database to the locations specified&lt;/p&gt;  &lt;p&gt;Written By Daniel Kenyon-Smith&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3267891" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>Transport Rules</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/07/24/transport-rules.aspx</link><pubDate>Fri, 24 Jul 2009 14:46:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3267798</guid><dc:creator>danielke</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3267798.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3267798</wfw:commentRss><description>&lt;p&gt;Whilst working for a customer they had a specific requirement to apply a disclaimer to all outbound mail e.g. not to apply disclaimers to mail sent to other users within the Exchange organisation. Their requirement also included to only apply the disclaimer if it had not already been applied (or where it contained the same text). So i created a powershell script to do this:-&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Get-TransportRulePredicate SubjectOrBodyContains&lt;/p&gt;  &lt;p&gt;$Action = get-TransportRuleAction ApplyDisclaimer&lt;/p&gt;  &lt;p&gt;$Action.Text = “my test disclaimer”&lt;/p&gt;  &lt;p&gt;Get-TransportRulePredicate SubjectOrBodyContains&lt;/p&gt;  &lt;p&gt;$Exception = Get-TransportRulePredicate SubjectOrBodyContains&lt;/p&gt;  &lt;p&gt;$Exception.Words = @(&amp;quot;My test disclaimer”)&lt;/p&gt;  &lt;p&gt;$Condition = Get-TransportRulePredicate SentToScope&lt;/p&gt;  &lt;p&gt;$Condition.Scope = &amp;quot;NotInOrganization&amp;quot;&lt;/p&gt;  &lt;p&gt;New-TransportRule –Name “My test” –Action @($Action) –Exception @($Exception) –Condition @($Condition)&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Written by Daniel Kenyon-Smith&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3267798" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/E14/default.aspx">E14</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2010/default.aspx">Exchange 2010</category></item><item><title>Exchange 2007 SP1 certificate generation</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/06/18/exchange-2007-sp1-certificate-generation.aspx</link><pubDate>Thu, 18 Jun 2009 11:35:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3256177</guid><dc:creator>danielke</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3256177.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3256177</wfw:commentRss><description>&lt;P&gt;I created a cert the other day for a customer so thought I'd share the Powershell command, you never know it might help!&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;New-ExchangeCertificate -GenerateRequest -Path c:\CompanyA.csr -KeySize 2048 -SubjectName "c=GB, s=London, l=London, o=CompanyA, cn=Mail.CompanyA.com" -DomainName Server1.CompanyA.com, Server2.CompanyA.com, Autodiscover.CompanyA.com, Server1, Server2 -PrivateKeyExportable $True&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;This cert will allow CompanyA to access external services to exchange, such as Exchange Active sync (EAS), Outlook Web Access (OWA), Autodiscover, Outlook Anywhere (RPC/HTTPS), etc…&lt;/P&gt;
&lt;P&gt;Obviously in order to access these services you will need to &lt;A href="http://technet.microsoft.com/en-us/library/bb794751.aspx" mce_href="http://technet.microsoft.com/en-us/library/bb794751.aspx"&gt;setup ISA&lt;/A&gt; and publish the relevant rules. In this example Mail.CompanyA.com will be configured in ISA as a multiple path rule, allowing a single url for client access to services like OWA and EAS for example.&lt;/P&gt;
&lt;P&gt;Written by Daniel Kenyon-Smith&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3256177" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+2008/default.aspx">Windows 2008</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category></item><item><title>Another Snack to fill you up</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/06/17/another-snack-to-fill-you-up.aspx</link><pubDate>Wed, 17 Jun 2009 19:37:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3255897</guid><dc:creator>danielke</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3255897.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3255897</wfw:commentRss><description>&lt;p&gt;So another Exchange 2010 snack has been released for your viewing pleasure!&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;a href="http://www.microsoft.com/learning/_silverlight/learningsnacks/exchange/snack02/Default.html"&gt;Unified Messaging in Exchange Server 2010&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p&gt;Written By Daniel Kenyon-Smith&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3255897" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/virtualisation/default.aspx">virtualisation</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+7/default.aspx">Windows 7</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2010/default.aspx">Exchange 2010</category></item><item><title>Learning Snacks</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/06/11/learning-snacks.aspx</link><pubDate>Thu, 11 Jun 2009 16:07:32 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3253503</guid><dc:creator>danielke</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3253503.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3253503</wfw:commentRss><description>&lt;p&gt;Learning snacks are short and interactive presentations on popular technologies, see this one for &lt;a href="http://www.microsoft.com/learning/_silverlight/learningsnacks/exchange/snack01/Default.html"&gt;Exchange 2010&lt;/a&gt;, more to follow. &lt;/p&gt;  &lt;p&gt;Take a look at the Learning &lt;a href="http://www.microsoft.com/learning/snacks/default.mspx"&gt;snack portal&lt;/a&gt; for other great presentations. &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Written by Daniel Kenyon-Smith&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3253503" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+2008/default.aspx">Windows 2008</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/virtualisation/default.aspx">virtualisation</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Hyper-V/default.aspx">Hyper-V</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+7/default.aspx">Windows 7</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2010/default.aspx">Exchange 2010</category></item><item><title>PowerShell installation Windows 2008</title><link>http://blogs.technet.com/danielkenyon-smith/archive/2009/02/06/powershell-installation-windows-2008.aspx</link><pubDate>Fri, 06 Feb 2009 21:47:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3198245</guid><dc:creator>danielke</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.technet.com/danielkenyon-smith/comments/3198245.aspx</comments><wfw:commentRss>http://blogs.technet.com/danielkenyon-smith/commentrss.aspx?PostID=3198245</wfw:commentRss><description>&lt;p&gt;Before you install Exchange 2007 SP1 onto a Windows 2008 server you'll need ensure that prerequisites are installed, by default .NET Framework 2.0 and Microsoft Management Console (MMC) will be installed but you'll need to install Windows PowerShell.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; You won't need to go looking around on the Internet for PowerShell all you'll need to do is:-&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Go to Control Panel &lt;/li&gt;    &lt;li&gt;Programs and features&lt;/li&gt;    &lt;li&gt;Select 'Turn windows features on or off'&lt;/li&gt;    &lt;li&gt;From Server Manager, click on Features and 'Add Features'&lt;/li&gt;    &lt;li&gt;Then scroll down and select WindowsPowershell (as Show below)&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/blogfiles/danielkenyon-smith/WindowsLiveWriter/PowerShellinstallationWindows2008_10830/image_8.png"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; border-top: 0px; border-right: 0px" border="0" alt="image" src="http://blogs.technet.com/blogfiles/danielkenyon-smith/WindowsLiveWriter/PowerShellinstallationWindows2008_10830/image_thumb_3.png" width="411" height="272" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Written by Daniel Kenyon-Smith&lt;/p&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3198245" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/Windows+2008/default.aspx">Windows 2008</category><category domain="http://blogs.technet.com/danielkenyon-smith/archive/tags/PowerShell/default.aspx">PowerShell</category></item></channel></rss>