<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://myitforum.com/cs2/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>Ying Li(MVP) at myITforum.com - All Comments</title><link>http://myitforum.com/cs2/blogs/yli628/default.aspx</link><description>PowerShell &amp;amp; System Center</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 SP2 (Build: 31113.47)</generator><item><title>re: PowerShell script to change administrator password on a list of machines</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2007/08/23/powershell-script-to-change-administrator-password-on-a-list-of-machines.aspx#145108</link><pubDate>Sat, 20 Feb 2010 22:37:05 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:145108</guid><dc:creator>yli628</dc:creator><description>&lt;p&gt;Tobi point out that I made a mistake in the above script - &lt;/p&gt;
&lt;p&gt;instead&lt;/p&gt;
&lt;p&gt;If($pwage -ne $null)&lt;/p&gt;
&lt;p&gt;it should be&lt;/p&gt;
&lt;p&gt;$pwage.value -ne &amp;quot;0&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks Tobi!&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=145108" width="1" height="1"&gt;</description></item><item><title>Exchange Powershell &amp;raquo; I Can Do That With 1 Line of PowerShell: Installed Software</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/01/16/powershell-script-to-list-installed-software-on-local-computer.aspx#143066</link><pubDate>Wed, 18 Nov 2009 21:37:54 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:143066</guid><dc:creator>Exchange Powershell » I Can Do That With 1 Line of PowerShell: Installed Software</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Exchange Powershell &amp;amp;raquo; I Can Do That With 1 Line of PowerShell: Installed Software&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=143066" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Put the Agent, the Health Service and the Health Service Watcher on the Agent into Maintenance Mode Revisited</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/07/11/powershell-script-to-put-the-agent-the-health-service-and-the-health-service-watcher-on-the-agent-into-maintenance-mode-revisited.aspx#143057</link><pubDate>Wed, 18 Nov 2009 14:28:46 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:143057</guid><dc:creator>jbeck22</dc:creator><description>&lt;p&gt;So I got the script to work...sort of.&lt;/p&gt;
&lt;p&gt;If my list.txt file only has one computer name in it then the script will work just fine, but if I have more than one I get errros.&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=143057" width="1" height="1"&gt;</description></item><item><title>Software installato e PowerShell</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/01/16/powershell-script-to-list-installed-software-on-local-computer.aspx#142984</link><pubDate>Sun, 15 Nov 2009 22:19:36 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142984</guid><dc:creator>AlbLog - Il blog di Alberto Dallagiacoma</dc:creator><description>&lt;p&gt;Software installato e PowerShell&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142984" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Put the Agent, the Health Service and the Health Service Watcher on the Agent into Maintenance Mode Revisited</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/07/11/powershell-script-to-put-the-agent-the-health-service-and-the-health-service-watcher-on-the-agent-into-maintenance-mode-revisited.aspx#142894</link><pubDate>Thu, 12 Nov 2009 01:26:43 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142894</guid><dc:creator>yli628</dc:creator><description>&lt;p&gt;The fact you at the PS c:\ prompt doesn't look right, if you look at my post, you need to be at something like PS Monitoring:\XYZPMP01(replace your server name). Take a look at this post as well, it explains how you add SCOM provider to the regular PS console.&lt;/p&gt;
&lt;p&gt;BTW, the Opsmgr R2, you can put computer into maintainence mode by right click.&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142894" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Put the Agent, the Health Service and the Health Service Watcher on the Agent into Maintenance Mode Revisited</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/07/11/powershell-script-to-put-the-agent-the-health-service-and-the-health-service-watcher-on-the-agent-into-maintenance-mode-revisited.aspx#142870</link><pubDate>Wed, 11 Nov 2009 12:40:35 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142870</guid><dc:creator>jbeck22</dc:creator><description>&lt;p&gt;I checked and I am running this code in the Operations Manager Shell...see screenshot here.&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://i36.photobucket.com/albums/e34/jbeck22/OpsMgr.jpg"&gt;i36.photobucket.com/.../OpsMgr.jpg&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142870" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Put the Agent, the Health Service and the Health Service Watcher on the Agent into Maintenance Mode Revisited</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/07/11/powershell-script-to-put-the-agent-the-health-service-and-the-health-service-watcher-on-the-agent-into-maintenance-mode-revisited.aspx#142849</link><pubDate>Wed, 11 Nov 2009 03:52:50 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142849</guid><dc:creator>jbeck22</dc:creator><description>&lt;p&gt;OK...I will double check in the morning when I get back into the office.&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142849" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Put the Agent, the Health Service and the Health Service Watcher on the Agent into Maintenance Mode Revisited</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/07/11/powershell-script-to-put-the-agent-the-health-service-and-the-health-service-watcher-on-the-agent-into-maintenance-mode-revisited.aspx#142848</link><pubDate>Wed, 11 Nov 2009 01:43:22 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142848</guid><dc:creator>yli628</dc:creator><description>&lt;p&gt;Even on the opsmgr server, there are still two powershell console.&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142848" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Put the Agent, the Health Service and the Health Service Watcher on the Agent into Maintenance Mode Revisited</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/07/11/powershell-script-to-put-the-agent-the-health-service-and-the-health-service-watcher-on-the-agent-into-maintenance-mode-revisited.aspx#142847</link><pubDate>Wed, 11 Nov 2009 01:40:02 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142847</guid><dc:creator>jbeck22</dc:creator><description>&lt;p&gt;that's where I was running it from...from my Opsmgr server.&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142847" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Put the Agent, the Health Service and the Health Service Watcher on the Agent into Maintenance Mode Revisited</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/07/11/powershell-script-to-put-the-agent-the-health-service-and-the-health-service-watcher-on-the-agent-into-maintenance-mode-revisited.aspx#142846</link><pubDate>Wed, 11 Nov 2009 01:20:50 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142846</guid><dc:creator>yli628</dc:creator><description>&lt;p&gt;You need to run this in command shell comes with Opsmgr not just regular powershell?&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142846" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Put the Agent, the Health Service and the Health Service Watcher on the Agent into Maintenance Mode Revisited</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/07/11/powershell-script-to-put-the-agent-the-health-service-and-the-health-service-watcher-on-the-agent-into-maintenance-mode-revisited.aspx#142839</link><pubDate>Tue, 10 Nov 2009 21:13:08 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142839</guid><dc:creator>jbeck22</dc:creator><description>&lt;p&gt;I know this post is realitivly old now, but I'm looking for some help...I copied the above code and I am running it on my SCOM 2007 server. &amp;nbsp;When I do run the above code I get a ton of errors&lt;/p&gt;
&lt;p&gt;&amp;gt;.\FromNet.ps1 c:\list.txt 0.25 'testing'&lt;/p&gt;
&lt;p&gt;Get-Agent : The 'Path' parameter is empty or the required provider location is not&lt;/p&gt;
&lt;p&gt;set.&amp;quot;&lt;/p&gt;
&lt;p&gt;At C:\FromNet.ps1:5 char:23&lt;/p&gt;
&lt;p&gt;+ $computer &amp;nbsp;= Get-Agent &amp;nbsp;&amp;lt;&amp;lt;&amp;lt;&amp;lt; | Where-object {$_.ComputerName -eq $computerName}&lt;/p&gt;
&lt;p&gt;Get-MonitoringClass : The 'Path' parameter is empty or the required provider locati&lt;/p&gt;
&lt;p&gt;on is not set.&amp;quot;&lt;/p&gt;
&lt;p&gt;At C:\FromNet.ps1:7 char:49&lt;/p&gt;
&lt;p&gt;+ $healthServiceWatcherClass = get-monitoringclass &amp;nbsp;&amp;lt;&amp;lt;&amp;lt;&amp;lt; -name:Microsoft.SystemCent&lt;/p&gt;
&lt;p&gt;er.HealthServiceWatcher&lt;/p&gt;
&lt;p&gt;Get-MonitoringObject : Cannot bind argument to parameter 'MonitoringClass' because&lt;/p&gt;
&lt;p&gt;it is null.&lt;/p&gt;
&lt;p&gt;At C:\FromNet.ps1:9 char:63&lt;/p&gt;
&lt;p&gt;+ $healthServiceWatcher = get-monitoringobject -monitoringclass:$ &amp;lt;&amp;lt;&amp;lt;&amp;lt; healthServic&lt;/p&gt;
&lt;p&gt;eWatcherClass -criteria:$healthServiceCriteria&lt;/p&gt;
&lt;p&gt;Putting c:\list.txt into maintenance mode&lt;/p&gt;
&lt;p&gt;New-MaintenanceWindow : Cannot bind argument to parameter 'MonitoringObject' becaus&lt;/p&gt;
&lt;p&gt;e it is null.&lt;/p&gt;
&lt;p&gt;At C:\FromNet.ps1:14 char:81&lt;/p&gt;
&lt;p&gt;+ New-MaintenanceWindow -startTime:$startTime -endTime:$endTime -monitoringObject:$&lt;/p&gt;
&lt;p&gt; &amp;lt;&amp;lt;&amp;lt;&amp;lt; computer.HostComputer -comment:$comment&lt;/p&gt;
&lt;p&gt;Putting the associated health service into maintenance mode&lt;/p&gt;
&lt;p&gt;New-MaintenanceWindow : Cannot bind argument to parameter 'MonitoringObject' becaus&lt;/p&gt;
&lt;p&gt;e it is null.&lt;/p&gt;
&lt;p&gt;At C:\FromNet.ps1:17 char:81&lt;/p&gt;
&lt;p&gt;+ New-MaintenanceWindow -startTime:$startTime -endTime:$endTime -monitoringObject:$&lt;/p&gt;
&lt;p&gt; &amp;lt;&amp;lt;&amp;lt;&amp;lt; healthService -comment:$comment&lt;/p&gt;
&lt;p&gt;Putting the associated health service watcher into maintenance mode&lt;/p&gt;
&lt;p&gt;New-MaintenanceWindow : Cannot bind argument to parameter 'MonitoringObject' becaus&lt;/p&gt;
&lt;p&gt;e it is null.&lt;/p&gt;
&lt;p&gt;At C:\FromNet.ps1:20 char:81&lt;/p&gt;
&lt;p&gt;+ New-MaintenanceWindow -startTime:$startTime -endTime:$endTime -monitoringObject:$&lt;/p&gt;
&lt;p&gt; &amp;lt;&amp;lt;&amp;lt;&amp;lt; healthServiceWatcher -comment:$comment&lt;/p&gt;
&lt;p&gt;Get-MaintenanceWindow : Cannot bind argument to parameter 'MonitoringObject' becaus&lt;/p&gt;
&lt;p&gt;e it is null.&lt;/p&gt;
&lt;p&gt;At C:\FromNet.ps1:24 char:40&lt;/p&gt;
&lt;p&gt;+ Get-MaintenanceWindow -MonitoringObject &amp;nbsp;&amp;lt;&amp;lt;&amp;lt;&amp;lt; $computer.hostcomputer&lt;/p&gt;
&lt;p&gt;PS C:\&lt;/p&gt;
&lt;p&gt;Any ideas on what I did wrong?&lt;/p&gt;
&lt;p&gt;Thanks in advance...this is exactly what I was looking for...now if I can just get it to work :)&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142839" width="1" height="1"&gt;</description></item><item><title>re: PowerShell Script to Schedule a Task - Task Scheduler API</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/08/06/powershell-script-to-schedule-a-task-task-scheduler-api.aspx#142822</link><pubDate>Tue, 10 Nov 2009 12:40:51 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142822</guid><dc:creator>Laerte Junior</dc:creator><description>&lt;p&gt;Ying Li, how can do that in windows XP &amp;nbsp;and W2K3&lt;/p&gt;
&lt;p&gt;Thanks !!!&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142822" width="1" height="1"&gt;</description></item><item><title>credit restoration</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2008/12/11/powershell-script-to-get-remote-registry-key-property.aspx#142707</link><pubDate>Wed, 04 Nov 2009 19:22:11 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:142707</guid><dc:creator>credit restoration</dc:creator><description>&lt;p&gt;I did not realize that this page got so much traffic.&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=142707" width="1" height="1"&gt;</description></item><item><title>re: OpsMgr 2007 SP1 – Creating a rule to monitor logon event</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2009/05/18/opsmgr-2007-sp1-creating-a-rule-to-monitor-logon-event.aspx#137770</link><pubDate>Thu, 04 Jun 2009 17:29:23 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:137770</guid><dc:creator>yli628</dc:creator><description>&lt;p&gt;There is an typo in my post!&lt;/p&gt;
&lt;p&gt;Instead &amp;nbsp;$Data\EventDescription$ - it should be $Data/EventDescription$&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=137770" width="1" height="1"&gt;</description></item><item><title>re: The wait is over – OpsMgr 2007 R2 hits RTM</title><link>http://myitforum.com/cs2/blogs/yli628/archive/2009/05/27/the-wait-is-over-opsmgr-2007-r2-hits-rtm.aspx#137396</link><pubDate>Fri, 29 May 2009 02:49:53 GMT</pubDate><guid isPermaLink="false">8e8f7986-475c-475d-bdc9-a1b3a63b955b:137396</guid><dc:creator>yli628</dc:creator><description>&lt;p&gt;I was a little bit anxious. It turns out you can't upgrade OpsMgr 2007 SP1 (SKU-select) to the evaluation copy. You will have to wait on the RTM-select!&lt;/p&gt;
&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=137396" width="1" height="1"&gt;</description></item></channel></rss>