<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title> &#187; PS</title>
	<atom:link href="http://benchmarkitconsulting.com/tag/ps/feed/" rel="self" type="application/rss+xml" />
	<link>http://benchmarkitconsulting.com</link>
	<description></description>
	<lastBuildDate>Tue, 15 May 2012 12:54:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Fail Whale for SSMS and CMS for PBM using PS</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 21:56:50 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[PBM]]></category>
		<category><![CDATA[Policy Based Management]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[PS]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=1126</guid>
		<description><![CDATA[Translation: Fail Whale for SQL Server Management Studio and Central Management Server for Policy Based Managment using PowerShell&#8230;. lol simple eh? So this is a Microsoft Connect Item in the making&#8230; I had created a PowerShell script to run a bunch of policies against a list of servers that I defined in a ServerList.txt file.  [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1127" title="fwwwwww" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/09/fwwwwww.png" alt="fwwwwww" width="240" height="180" /></p>
<p>Translation: Fail Whale for SQL Server Management Studio and Central Management Server for Policy Based Managment using PowerShell&#8230;. lol simple eh?</p>
<p>So this is a Microsoft Connect Item in the making&#8230;</p>
<p>I had created a PowerShell script to run a bunch of policies against a list of servers that I defined in a ServerList.txt file.  I decided that I didn&#8217;t like the idea of needing to maintain a text file and instead of storing the Instance Names in a table somewhere I decided to hook into the Central Managment Server.</p>
<p>So I logged into the server that is currently running the SQL Server Agent job that was doing all this using a ServerList.txt file.  I changed the PowerShell Script to point to my CMS server instead and ran the .ps1 directly on the server using &#8220;sqlps F:\PBM\EvaluatePolicies.ps1&#8243;.  The script ran as expected, used my CMS server, and everything was tickidyboo.  Or so I thought&#8230;.</p>
<p>I decided to do my final check and run the SQL Server Agent job itself&#8230; and it failed.</p>
<p><img class="alignnone size-full wp-image-1129" title="toslkdsl" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/09/toslkdsl.jpg" alt="toslkdsl" width="168" height="132" /></p>
<p>Hmmmm that&#8217;s weird&#8230; so I confirmed that the SQL Server Agent account had access to the CMS server and even granted it explicit sysadmin rights (just for my troubleshooting).</p>
<p><strong>FAIL</strong></p>
<p>I started tweeting about the problem and got some immediate advice from @<a href="http://twitter.com/afernandez" target="_blank">afernandez</a>, <a href="http://twitter.com/russjohnson">@russjohnson</a>, <a href="http://twitter.com/wendy_dance">@wendy_dance</a>, and <a href="http://twitter.com/sqlchicken">@SQLChicken</a>.  While none of the advice solved my problem it was great to have some other &#8220;eyes&#8221; reading my problem and confirming the stuff that I had already thought of and tested.</p>
<p>The SQL Server Agent Service Account is a secure account that I don&#8217;t even have access or the password for so I asked for some help from one of our Server Admins for my troubleshooting&#8230; he logged into the server for me and I tried to run the ps1 file&#8230;.</p>
<p><strong>FAIL</strong></p>
<p>So I opened up SSMS and checked if I could connect to the CMS directly&#8230;.</p>
<p><strong><span style="text-decoration: underline;">SOLUTION:  </span></strong>In order to use a PowerShell script to connect to the Central Management Server using the SQL Server Agent the service account that SQL Server Agent is running under must REGISTER the CMS Server through SSMS on the Server that is running the job.</p>
<p>Did you get all that&#8230;. because I had never Remote Desktopped onto the Server using the SQL Server Agent service account and Registered the CMS Server in SSMS using that account when I tried to access the CMS Server through my PowerShell script it failed.</p>
<p>I registered the CMS Server using the SQL Server Agent Service Account and everything started sizzling like bacon on a hot pan.</p>
<p>Enjoy!!</p>
<p><span><a href="http://benchmarkitconsulting.com" target="_blank"><img class="alignnone size-full wp-image-402" title="benchmark_sm" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/02/benchmark_sm.jpg" alt="" width="157" height="74" /></a><a href="http://sqlserverpedia.com/wiki/Editors#Colin_Stasiuk" target="_blank"><img src="http://sqlserverpedia.com/badges/SQLServerPedia_Badge_Blogger.jpg" alt="" width="120" height="60" /> </a></span></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Fail+Whale+for+SSMS+and+CMS+for+PBM+using+PS+http://tinyurl.com/npkg83" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/&amp;title=Fail+Whale+for+SSMS+and+CMS+for+PBM+using+PS" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/&amp;title=Fail+Whale+for+SSMS+and+CMS+for+PBM+using+PS" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/&amp;title=Fail+Whale+for+SSMS+and+CMS+for+PBM+using+PS" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/09/22/failwhaleforssmsandcms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Bacon Nugget of Excellence Award @SQLGal</title>
		<link>http://benchmarkitconsulting.com/colin-stasiuk/2009/08/26/sql-bacon-nugget-of-excellence-award-sqlgal/</link>
		<comments>http://benchmarkitconsulting.com/colin-stasiuk/2009/08/26/sql-bacon-nugget-of-excellence-award-sqlgal/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 13:31:17 +0000</pubDate>
		<dc:creator>Colin Stasiuk</dc:creator>
				<category><![CDATA[Benchmark IT Consulting]]></category>
		<category><![CDATA[Colin Stasiuk]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[Evaluate Policies]]></category>
		<category><![CDATA[PBM]]></category>
		<category><![CDATA[Policy Based Management]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[PS]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://benchmarkitconsulting.com/?p=970</guid>
		<description><![CDATA[OK so the last time I handed out a SQL Bacon Nugget of Excellence Award was July 8th for @SQLAgentMan &#8216;s article on Determining Free Space, Consumed Space, and Total Space Allocated for Microsoft SQL Server Databases and this time around @SQLGal has put something together that can only be described as a SQL Bacon Nugget [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-971" title="BaNug" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/08/BaNug.jpg" alt="BaNug" width="180" height="135" /></p>
<p>OK so the last time I handed out a SQL Bacon Nugget of Excellence Award was July 8th for <a href="http://twitter.com/sqlagentman" target="_blank">@SQLAgentMan</a> &#8216;s article on <a href="http://www.mssqltips.com/tip.asp?tip=1629" target="_blank">Determining Free Space, Consumed Space, and Total Space Allocated for Microsoft SQL Server Databases</a></p>
<p>and this time around <a href="http://twitter.com/sqlgal" target="_blank">@SQLGal</a> has put something together that can only be described as a SQL Bacon Nugget of Excellence.  So a little background story on this one&#8230; I&#8217;ve been doing more with Policy Based Management lately and coincidently more with PowerShell as well.  So I started playing around with having an automated policy checker run in the night via PowerShell and email me the &#8220;non conformists&#8221; <img src='http://benchmarkitconsulting.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I was almost done my initial release when I all of a sudden found that if I ran the powershell script from the server directly that I couldn&#8217;t connect to some of my servers (SQL 2000).  I re-ran&#8230; nothing&#8230; tried a few different ideas&#8230; no dice.  So as I like to do from time to time if my &#8220;googling&#8221; doesn&#8217;t help much is I posed the question to the Twitterverse.</p>
<p>As always (cause Twitter is just great for community support) I got a couple replies and offers of assistance.  One reply was from <a href="http://twitter.com/timbo_b_edwards" target="_blank">@Timbo_B_Edwards</a>.  His tweet pointed me to a site that suprisingly (with my googling on Policy Based Management and Powershell) I didn&#8217;t find before.</p>
<p><a href="http://epmframework.codeplex.com/" target="_blank">Enterprise Policy Management Framework</a></p>
<p>This offering from <a href="http://twitter.com/sqlgal" target="_blank">@SQLGal</a> puts my ragamuffin first attempt at Policy Based Management via Powershell to shame.</p>
<p>The Enterprise Policy Managment Framework uses PowerShell to evaluate policies against your SQL Server Environment, shreds the XML for you, and then renders and delivers your policy history reports via Reporting Services.</p>
<p><img class="alignnone size-full wp-image-974" title="aaswsdw" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/08/aaswsdw.png" alt="aaswsdw" width="155" height="136" /></p>
<p> </p>
<p>So for the love of all things good and pure in this world&#8230; if you have SQL Server 2008 (and if you don&#8217;t this is one heck of a good reason to start) this is something you <strong><span style="text-decoration: underline;">HAVE TO</span></strong> check out and spend some quality time with. </p>
<p><strong><em>Lara Rubbelke</em></strong></p>
<ul>
<li><a href="http://sqlblog.com/blogs/lara_rubbelke/default.aspx" target="_blank">Laura on SQLBlog.com</a></li>
<li><a href="http://twitter.com/sqlgal" target="_blank">@SQLGal on Twitter</a></li>
<li><a href="http://epmframework.codeplex.com/" target="_blank">Enterprise Policy Management Framework</a></li>
</ul>
<p>P.S. I found the solution to my problem on the top of the Enterprise Policy Management Framework page&#8230;</p>
<p><em>&#8220;Update on SP1: You must install SQL Server 2008 SP1 Cumulative Update 3 (</em><a href="http://support.microsoft.com/kb/971491" target="_blank"><em>http://support.microsoft.com/kb/971491</em></a><em>) if you have installed SP1 on the Central Management Server. SP1 Cumulative Update 3 will fix the SP1 bug which prevented down version policy evaluation.&#8221;</em></p>
<p>Enjoy!!</p>
<p><span><a href="http://benchmarkitconsulting.com" target="_blank"><img class="alignnone size-full wp-image-402" title="benchmark_sm" src="http://benchmarkitconsulting.com/wp-content/uploads/2009/02/benchmark_sm.jpg" alt="" width="157" height="74" /></a><a href="http://sqlserverpedia.com/wiki/Editors#Colin_Stasiuk" target="_blank"><img src="http://sqlserverpedia.com/badges/SQLServerPedia_Badge_Blogger.jpg" alt="" width="120" height="60" /> </a></span></p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=SQL+Bacon+Nugget+of+Excellence+Award+%40SQLGal+http://tinyurl.com/lf6pgo" title="Post to Twitter"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-twitter-big4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/08/26/sql-bacon-nugget-of-excellence-award-sqlgal/&amp;title=SQL+Bacon+Nugget+of+Excellence+Award+%40SQLGal" title="Post to Delicious"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-delicious-big4.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/08/26/sql-bacon-nugget-of-excellence-award-sqlgal/&amp;title=SQL+Bacon+Nugget+of+Excellence+Award+%40SQLGal" title="Post to Digg"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-digg-big4.png" alt="Post to Digg" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://benchmarkitconsulting.com/colin-stasiuk/2009/08/26/sql-bacon-nugget-of-excellence-award-sqlgal/&amp;title=SQL+Bacon+Nugget+of+Excellence+Award+%40SQLGal" title="Post to StumbleUpon"><img class="nothumb" src="http://benchmarkitconsulting.com/wp-content/plugins/tweet-this/icons/tt-su-big4.png" alt="Post to StumbleUpon" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://benchmarkitconsulting.com/colin-stasiuk/2009/08/26/sql-bacon-nugget-of-excellence-award-sqlgal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

