<?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>Count all alerts, group by date</title><link>http://blogs.technet.com/jonathanalmquist/archive/2009/03/19/count-all-alerts-group-by-date.aspx</link><description>Count all alerts, group by date $array = @();foreach ($date in Get-Alert | foreach-object {$_.get_TimeRaised().ToLocalTime().toShortDateString()}) {$array += $date};$array | Group-Object | select-object count,@{name=&amp;quot;Date&amp;quot;;expression={foreach-object</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Count all alerts, group by date</title><link>http://blogs.technet.com/jonathanalmquist/archive/2009/03/19/count-all-alerts-group-by-date.aspx#3225929</link><pubDate>Mon, 13 Apr 2009 23:30:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3225929</guid><dc:creator>dmuscett</dc:creator><description>&lt;p&gt;More or less the same as here&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.muscetta.com/2008/01/25/looking-at-opsmgr2007-alert-trend-with-command-shell/"&gt;http://www.muscetta.com/2008/01/25/looking-at-opsmgr2007-alert-trend-with-command-shell/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Only issue with this approach (both mine and yours) is that it is painfully SLOW on big deployments. The SQL Queries on Kevin's blog are much better for performance :-)&lt;/p&gt;</description></item><item><title>re: Count all alerts, group by date</title><link>http://blogs.technet.com/jonathanalmquist/archive/2009/03/19/count-all-alerts-group-by-date.aspx#3225982</link><pubDate>Tue, 14 Apr 2009 03:51:05 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3225982</guid><dc:creator>jtalmquist</dc:creator><description>&lt;P&gt;Thanks for the comment, Daniele.&lt;/P&gt;
&lt;P&gt;One major difference in my&amp;nbsp;script is it&amp;nbsp;performs a Date-Time conversion.&amp;nbsp;&amp;nbsp;Performing this DT conversion ensures accuracy in the results.&amp;nbsp;&amp;nbsp;See more on that here.&lt;/P&gt;
&lt;P&gt;&lt;A id=bp___v___r___postlist___EntryItems_ctl05_PostTitle href="http://blogs.technet.com/jonathanalmquist/archive/2009/04/02/command-shell-be-careful-with-date-time-criteria-and-calculations.aspx"&gt;Command Shell: Be careful with Date-Time criteria and calculations&lt;/A&gt; &lt;/P&gt;
&lt;P&gt;As far as performance, this is true.&amp;nbsp;&amp;nbsp;But the&amp;nbsp;Command Shell is another option for those that do not have permissions to query&amp;nbsp;SQL directly.&lt;/P&gt;
&lt;P&gt;-Jonathan&lt;/P&gt;</description></item><item><title>re: Count all alerts, group by date</title><link>http://blogs.technet.com/jonathanalmquist/archive/2009/03/19/count-all-alerts-group-by-date.aspx#3230498</link><pubDate>Sat, 25 Apr 2009 19:32:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3230498</guid><dc:creator>dmuscett</dc:creator><description>&lt;P&gt;I wrote that a long time ago (waaaay before blogging it). And yes, you are right: I did not take into account time zones, as I was testing that it italy, which is GMT+1... If your management group does not span multiple countries, you should be nearly alright :-)&lt;/P&gt;</description></item><item><title>re: Count all alerts, group by date</title><link>http://blogs.technet.com/jonathanalmquist/archive/2009/03/19/count-all-alerts-group-by-date.aspx#3230505</link><pubDate>Sat, 25 Apr 2009 20:02:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3230505</guid><dc:creator>jtalmquist</dc:creator><description>&lt;P&gt;If you are in any time zone other than GMT and you do not do a Date-Time conversion, the results will be inaccurate, regardless of how many MG's you have and which time zones they span.&lt;/P&gt;
&lt;P&gt;You can see this proven by changing the time zone on your workstation and running the script in this post. &amp;nbsp;Then, run the script in your post. &amp;nbsp;The results will be different.&lt;/P&gt;
&lt;P&gt;btw - I think I borrowed the framework for this one from your post. :-)&lt;/P&gt;</description></item></channel></rss>