<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: SCOM Snippet: The hidden nag mode</title>
	<atom:link href="http://www.pavleck.net/2008/09/scom-snippet-the-hidden-nag-mode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pavleck.net/2008/09/scom-snippet-the-hidden-nag-mode/</link>
	<description>System Center, PowerShell, Windows and More</description>
	<lastBuildDate>Wed, 09 Nov 2011 18:49:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: NP</title>
		<link>http://www.pavleck.net/2008/09/scom-snippet-the-hidden-nag-mode/comment-page-1/#comment-482</link>
		<dc:creator>NP</dc:creator>
		<pubDate>Thu, 10 Mar 2011 04:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://pavleck.net/?p=125#comment-482</guid>
		<description>I have tried to run this script and it doesnt seem to work. Are you able to advise the correct way to run it? I am new to scom and not good with powershell. I get this:

Get-Alert : The &#039;Path&#039; parameter is empty or the required provider location is not
set.&quot;
At C:\Documents and Settings\administrator\Desktop\testt.ps1:1 char:23
+ $oldAlerts = Get-Alert &lt;&lt;&lt;&lt;  &#124; Where-Object {($_.LastModified -ge [DateTime]::Now
.AddHours(-1)) -and ($_.ResolutionState -eq 0)}
    + CategoryInfo          : InvalidArgument: (:String) [Get-Alert], ArgumentOutO
   fRangeException
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.EnterpriseManagement.Oper
   ationsManager.ClientShell.GetAlertCmdlet
You cannot call a method on a null-valued expression.
At C:\Documents and Settings\administrator\Desktop\testt.ps1:3 char:14
+ $alert.Update &lt;&lt;&lt;&lt; (&quot;&quot;)
    + CategoryInfo          : InvalidOperation: (Update:String) [], RuntimeExcepti
   on
    + FullyQualifiedErrorId : InvokeMethodOnNull</description>
		<content:encoded><![CDATA[<p>I have tried to run this script and it doesnt seem to work. Are you able to advise the correct way to run it? I am new to scom and not good with powershell. I get this:</p>
<p>Get-Alert : The &#8216;Path&#8217; parameter is empty or the required provider location is not<br />
set.&#8221;<br />
At C:\Documents and Settings\administrator\Desktop\testt.ps1:1 char:23<br />
+ $oldAlerts = Get-Alert &lt;&lt;&lt;&lt;  | Where-Object {($_.LastModified -ge [DateTime]::Now<br />
.AddHours(-1)) -and ($_.ResolutionState -eq 0)}<br />
    + CategoryInfo          : InvalidArgument: (:String) [Get-Alert], ArgumentOutO<br />
   fRangeException<br />
    + FullyQualifiedErrorId : InvalidParameter,Microsoft.EnterpriseManagement.Oper<br />
   ationsManager.ClientShell.GetAlertCmdlet<br />
You cannot call a method on a null-valued expression.<br />
At C:\Documents and Settings\administrator\Desktop\testt.ps1:3 char:14<br />
+ $alert.Update &lt;&lt;&lt;&lt; (&quot;&quot;)<br />
    + CategoryInfo          : InvalidOperation: (Update:String) [], RuntimeExcepti<br />
   on<br />
    + FullyQualifiedErrorId : InvokeMethodOnNull</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: srinivas</title>
		<link>http://www.pavleck.net/2008/09/scom-snippet-the-hidden-nag-mode/comment-page-1/#comment-57</link>
		<dc:creator>srinivas</dc:creator>
		<pubDate>Mon, 22 Sep 2008 12:43:04 +0000</pubDate>
		<guid isPermaLink="false">http://pavleck.net/?p=125#comment-57</guid>
		<description>It has one problem the last modified time changes when we run alert.update.</description>
		<content:encoded><![CDATA[<p>It has one problem the last modified time changes when we run alert.update.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

