<?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>Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx</link><description>Guest blogger, Boe Prox, shows how to use Windows PowerShell to automate SCOM agent installations.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3563754</link><pubDate>Fri, 05 Apr 2013 13:29:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3563754</guid><dc:creator>Koen</dc:creator><description>&lt;p&gt;Hi Boe,&lt;/p&gt;
&lt;p&gt;Thanks for sharing the script.&lt;/p&gt;
&lt;p&gt;I run into the same problem as Marcus Kraemer, although I use SCOM 2007R2.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3563754" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3497188</link><pubDate>Thu, 10 May 2012 13:04:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3497188</guid><dc:creator>Boe Prox</dc:creator><description>&lt;p&gt;@Marcus Kraemer &lt;/p&gt;
&lt;p&gt;This script was meant to be used for SCOM 2007 and has not been tested on SCOM 2012 so it is possible that there are differences that could be affecting the script from working properly. We might be able to tweak the regex pattern if we know where the server name is being held on the $Alert variable (if it is there at all) so it can successfully pull the server name and continue onward.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3497188" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3496956</link><pubDate>Wed, 09 May 2012 14:18:53 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3496956</guid><dc:creator>Marcus Kraemer</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to use your script with our SCOM 2012 systems. It is exactly what I need: Scan for systems without a SCOM agent and then push the agent to the systems.&lt;/p&gt;
&lt;p&gt;So far it looks like there is an error in the script: At one point you set $NonSCOMTEMP and a couple of lines further down you use $NonSCOM. If I correct that it runs through till the line&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $Server = ([regex]::Matches($_,$Pattern))[0].Groups[1].Value &lt;/p&gt;
&lt;p&gt;which causes an error: Cannot index into a null arry.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if this script was supposed to work with SCOM 2012. Maybe it doesn&amp;#39;t work because it was ment to be used with SCOM 2007? &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking further into it I&amp;#39;m confused about the regex search pattern you are using since I cannot find the string &amp;quot;Machine Name:&amp;quot; in $alert at all. My powershell scripting knowledge is not very advanced, so I might be wrong her ;-)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3496956" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3482326</link><pubDate>Tue, 21 Feb 2012 19:59:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3482326</guid><dc:creator>Boe Prox</dc:creator><description>&lt;p&gt;@Sean Thanks! Pretty easy to tell that I am a Lord of the Rings fan :)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3482326" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3481906</link><pubDate>Mon, 20 Feb 2012 11:44:28 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3481906</guid><dc:creator>Sean Kearney</dc:creator><description>&lt;p&gt;Boe&lt;/p&gt;
&lt;p&gt;BTW, you get an especially Geek Cred bonus for your Domain name &amp;quot;RIVENDELL&amp;quot; :)&lt;/p&gt;
&lt;p&gt;Sean&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3481906" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3480772</link><pubDate>Tue, 14 Feb 2012 03:01:27 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3480772</guid><dc:creator>Boe Prox</dc:creator><description>&lt;p&gt;@Stefan: Let me know what you think about the script. I am always interested in feedback so I can make changes where necessary.&lt;/p&gt;
&lt;p&gt;@K_Schulte: Thanks! Glad you like it! It was a lot of fun to write and put all of the pieces together to make everything work how I wanted it to. You are right, I definitely wanted to use PowerShell cmdlets wherever possible and resort to .Net only when needed.&lt;/p&gt;
&lt;p&gt;@coderaven: It will be exciting to see how workflows will affect not only this script, but many other scripts and modules that folks have written.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3480772" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3480644</link><pubDate>Mon, 13 Feb 2012 16:32:43 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3480644</guid><dc:creator>Ed Wilson</dc:creator><description>&lt;p&gt;@Stefan, the link has been corrected. Thanks for pointing it out. &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3480644" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3480631</link><pubDate>Mon, 13 Feb 2012 15:36:04 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3480631</guid><dc:creator>coderaven</dc:creator><description>&lt;p&gt;I cannot wait to see how workflows affect scripts like this.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3480631" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3480599</link><pubDate>Mon, 13 Feb 2012 13:31:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3480599</guid><dc:creator>K_Schulte</dc:creator><description>&lt;p&gt;Hi Boe,&lt;/p&gt;
&lt;p&gt;thank you very much for sharing your thoughts (and script) with us!&lt;/p&gt;
&lt;p&gt;This is a rather complicated script, that I can hardly follow ( having no SCOM handy :-) &lt;/p&gt;
&lt;p&gt;But even having not the Microsoft.EnterpriseManagement.OperationsManager.Client on board, it is quite interesting to follow your thoughts and the script progress. &lt;/p&gt;
&lt;p&gt;A lot of PS goodies can be found here, like hash table, parsing XML, using here-strings to encapsulate HTML, sending email and matching text with regular expressions.&lt;/p&gt;
&lt;p&gt;Another aspect that relates to the last two blog articles is the way you work with cmdlets most of the time and throw in .Net objects like [regex] and [net.dns] where they are needed. &lt;/p&gt;
&lt;p&gt;That&amp;#39;s the way ... I like it :-)&lt;/p&gt;
&lt;p&gt;Klaus (Schulte)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3480599" width="1" height="1"&gt;</description></item><item><title>re: Use PowerShell to Automate SCOM Agent Installations</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/13/use-powershell-to-automate-scom-agent-installations.aspx#3480598</link><pubDate>Mon, 13 Feb 2012 13:20:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3480598</guid><dc:creator>jrv</dc:creator><description>&lt;p&gt;@Stefan&lt;/p&gt;
&lt;p&gt;Right click download link and select &amp;#39;Save Target As&amp;#39;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3480598" width="1" height="1"&gt;</description></item></channel></rss>