<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/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>Search results for 'app:forums' matching tags 'Exchange 2007' and 'eventlog'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=app:forums&amp;tag=Exchange+2007,eventlog&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'app:forums' matching tags 'Exchange 2007' and 'eventlog'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Powershell to pull Application Event logs with Event Id 1221 </title><link>http://powershell.com/cs/forums/thread/3265.aspx</link><pubDate>Tue, 01 Sep 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:3265</guid><dc:creator>smtpport25.wordpress</dc:creator><description>&lt;p&gt;Application Event ID 1221 gives the details of the white space on the Exchange Database.&amp;nbsp; With&amp;nbsp;the amount of white space we can determine if we wanted to do a defrag on the store or not. Below powershell helps you to pull all the application events with id 1221 from last 2 days&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;$2DaysAgo = [DateTime]::Now.AddDays(-2)&lt;br /&gt;$Events = Get-Eventlog Application | Where {($2DaysAgo -le $_.TimeWritten)} | ?{$_.eventid -eq &amp;ldquo;1221&amp;Prime;}&lt;br /&gt;$Events&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://smtpport25.wordpress.com/2009/08/25/powershell-to-pull-application-event-logs-with-event-id-1221/"&gt;http://smtpport25.wordpress.com/2009/08/25/powershell-to-pull-application-event-logs-with-event-id-1221/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>