<?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>Blog My Nog &#124; Tech Topics</title>
	<atom:link href="http://www.blogmynog.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogmynog.com</link>
	<description>Microsoft Systems Management</description>
	<lastBuildDate>Thu, 23 May 2013 14:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Configuration Manager 2012: SQL XPATH Query for Deployment Type</title>
		<link>http://www.blogmynog.com/2013/05/23/configuration-manager-2012-sql-xpath-query-for-deployment-type/</link>
		<comments>http://www.blogmynog.com/2013/05/23/configuration-manager-2012-sql-xpath-query-for-deployment-type/#comments</comments>
		<pubDate>Thu, 23 May 2013 14:00:49 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[System Center 2012]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[CI]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[deploymenttype]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[uninstall]]></category>
		<category><![CDATA[xpath]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=504</guid>
		<description><![CDATA[Below is an example of how to write a SQL XPATH query to extract details from a deployment type CI contained in an XML data type. In this query we are returning columns for deployment type Title, SDMPackageDigets (XML), Technology (MSI, Script, etc.), Content Location, and Install and Uninstall strings. I basically found an example [...]]]></description>
				<content:encoded><![CDATA[<p>Below is an example of how to write a SQL XPATH query to extract details from a deployment type CI contained in an XML data type. In this query we are returning columns for deployment type Title, SDMPackageDigets (XML), Technology (MSI, Script, etc.), Content Location, and Install and Uninstall strings. I basically found an example in this link <a href="http://gallery.technet.microsoft.com/scriptcenter/Count-of-EP-Definition-59c06ea2">http://gallery.technet.microsoft.com/scriptcenter/Count-of-EP-Definition-59c06ea2</a> and added Install and Uninstall columns.</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> 
	CI_ID<span style="color: #66cc66;">,</span>
	CI_UniqueID<span style="color: #66cc66;">,</span>
	SDMPackageDigest<span style="color: #66cc66;">,</span>
    SDMPackageDigest<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'declare namespace p1=&quot;http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest&quot;; 
    (p1:AppMgmtDigest/p1:DeploymentType/p1:Title)[1]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar(max)'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> DTTitle<span style="color: #66cc66;">,</span>
    SDMPackageDigest<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'declare namespace p1=&quot;http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest&quot;; 
    (p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/@Technology)[1]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar(max)'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> DTTechnology<span style="color: #66cc66;">,</span>
    SDMPackageDigest<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'declare namespace p1=&quot;http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest&quot;; 
    (p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:Contents/p1:Content/p1:Location)[1]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar(max)'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> DTContentLocation<span style="color: #66cc66;">,</span>       
    SDMPackageDigest<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'declare namespace p1=&quot;http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest&quot;; 
    (p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:InstallAction/p1:Args/p1:Arg)[1]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar(MAX)'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> Install<span style="color: #66cc66;">,</span>
    SDMPackageDigest<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'declare namespace p1=&quot;http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest&quot;; 
    (p1:AppMgmtDigest/p1:DeploymentType/p1:Installer/p1:UninstallAction/p1:Args/p1:Arg)[1]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar(MAX)'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> Uninstall
<span style="color: #993333; font-weight: bold;">FROM</span> 
	v_ConfigurationItems
<span style="color: #993333; font-weight: bold;">WHERE</span> 
	CIType_ID <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">21</span> <span style="color: #808080; font-style: italic;">-- DeploymentType CI's</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2013/05/23/configuration-manager-2012-sql-xpath-query-for-deployment-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuration Manager 2012: Query for the Application Owners and Support Contacts</title>
		<link>http://www.blogmynog.com/2013/05/22/configuration-manager-2012-query-for-the-application-owners-and-support-contacts/</link>
		<comments>http://www.blogmynog.com/2013/05/22/configuration-manager-2012-query-for-the-application-owners-and-support-contacts/#comments</comments>
		<pubDate>Wed, 22 May 2013 20:40:13 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[System Center 2012]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[Contact]]></category>
		<category><![CDATA[Owner]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Support]]></category>
		<category><![CDATA[XQUERY]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=483</guid>
		<description><![CDATA[Below is an example of how to formulate a SQL query to obtain the &#8220;first&#8221; app owner and support contact on an Application. &#160; 1 2 3 4 5 6 7 8 9 WITH XMLNAMESPACES &#40; DEFAULT 'http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest' &#41; SELECT SDMPackageDigest.VALUE&#40;'(/AppMgmtDigest/Application/Title)[1]', 'nvarchar(MAX)'&#41; &#91;Title&#93;, SDMPackageDigest.VALUE&#40;'(/AppMgmtDigest/Application/Owners/User/@Id)[1]', 'nvarchar(MAX)'&#41; &#91;Owners&#93;, SDMPackageDigest.VALUE&#40;'(/AppMgmtDigest/Application/Contacts/User/@Id)[1]', 'nvarchar(MAX)'&#41; &#91;Support Contact&#93; FROM  CI_ConfigurationItems WHERE CIType_ID = 10 [...]]]></description>
				<content:encoded><![CDATA[<p>Below is an example of how to formulate a SQL query to obtain the &#8220;first&#8221; app owner and support contact on an Application.</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">WITH</span> XMLNAMESPACES <span style="color: #66cc66;">&#40;</span> <span style="color: #993333; font-weight: bold;">DEFAULT</span> <span style="color: #ff0000;">'http://schemas.microsoft.com/SystemCenterConfigurationManager/2009/AppMgmtDigest'</span> <span style="color: #66cc66;">&#41;</span>
<span style="color: #993333; font-weight: bold;">SELECT</span>
SDMPackageDigest<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'(/AppMgmtDigest/Application/Title)[1]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar(MAX)'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#91;</span>Title<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span>
SDMPackageDigest<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'(/AppMgmtDigest/Application/Owners/User/@Id)[1]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar(MAX)'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#91;</span>Owners<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">,</span>
SDMPackageDigest<span style="color: #66cc66;">.</span><span style="color: #993333; font-weight: bold;">VALUE</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'(/AppMgmtDigest/Application/Contacts/User/@Id)[1]'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'nvarchar(MAX)'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#91;</span>Support Contact<span style="color: #66cc66;">&#93;</span>
<span style="color: #993333; font-weight: bold;">FROM</span>  CI_ConfigurationItems
<span style="color: #993333; font-weight: bold;">WHERE</span>
CIType_ID <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">10</span>
<span style="color: #993333; font-weight: bold;">AND</span> IsLatest <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2013/05/22/configuration-manager-2012-query-for-the-application-owners-and-support-contacts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Adobe Acrobat XI and Reader XI catalogs to SCUP 2011</title>
		<link>http://www.blogmynog.com/2013/05/21/add-adobe-acrobat-xi-and-reader-xi-catalogs-to-scup-2011/</link>
		<comments>http://www.blogmynog.com/2013/05/21/add-adobe-acrobat-xi-and-reader-xi-catalogs-to-scup-2011/#comments</comments>
		<pubDate>Tue, 21 May 2013 19:02:39 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[System Center 2012]]></category>
		<category><![CDATA[11]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[Acrobat]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Reader]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[SCUP]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[XI]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=481</guid>
		<description><![CDATA[Adobe Acrobat XI (11): http://armmf.adobe.com/arm-manifests/win/SCUP/Acrobat11_Catalog.cab AdobeReader XI (11): http://armmf.adobe.com/arm-manifests/win/SCUP/Reader11_Catalog.cab]]></description>
				<content:encoded><![CDATA[<p>Adobe Acrobat XI (11):</p>
<p><a href="http://armmf.adobe.com/arm-manifests/win/SCUP/Acrobat11_Catalog.cab">http://armmf.adobe.com/arm-manifests/win/SCUP/Acrobat11_Catalog.cab</a></p>
<p><a href="http://www.blogmynog.com/wp-content/uploads/2013/05/Acrobat11.jpg"><img alt="Acrobat11" src="http://www.blogmynog.com/wp-content/uploads/2013/05/Acrobat11.jpg" width="538" height="463" /></a></p>
<p>AdobeReader XI (11):</p>
<p><a href="http://armmf.adobe.com/arm-manifests/win/SCUP/Reader11_Catalog.cab">http://armmf.adobe.com/arm-manifests/win/SCUP/Reader11_Catalog.cab</a></p>
<p><a href="http://www.blogmynog.com/wp-content/uploads/2013/05/Reader11.jpg"><img alt="Reader11" src="http://www.blogmynog.com/wp-content/uploads/2013/05/Reader11.jpg" width="539" height="457" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2013/05/21/add-adobe-acrobat-xi-and-reader-xi-catalogs-to-scup-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCCM 2012 Poor Console Performance In Software Updates</title>
		<link>http://www.blogmynog.com/2013/05/21/sccm-2012-poor-console-performance-in-software-updates/</link>
		<comments>http://www.blogmynog.com/2013/05/21/sccm-2012-poor-console-performance-in-software-updates/#comments</comments>
		<pubDate>Tue, 21 May 2013 18:13:10 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>
		<category><![CDATA[System Center 2012]]></category>
		<category><![CDATA[2012]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[Software Updates]]></category>
		<category><![CDATA[System Center]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=478</guid>
		<description><![CDATA[UPDATE 5/21/2013: Just heard from the MVP community that some folks are referencing this article to improve performance: http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html From within Microsoft SQL Management Studio, run the query below to check fragmentation: 1 2 3 4 5 6 7 8 9 SELECT a.index_id, name, avg_fragmentation_in_percent FROM &#160; sys.dm_db_index_physical_stats &#40;NULL,NULL, NULL, NULL, NULL&#41; AS a JOIN [...]]]></description>
				<content:encoded><![CDATA[<p>UPDATE 5/21/2013: Just heard from the MVP community that some folks are referencing this article to improve performance: <a href="http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html">http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html</a></p>
<p>From within Microsoft SQL Management Studio, run the query below to check fragmentation:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">SELECT</span> a<span style="color: #66cc66;">.</span>index_id<span style="color: #66cc66;">,</span> name<span style="color: #66cc66;">,</span> avg_fragmentation_in_percent <span style="color: #993333; font-weight: bold;">FROM</span>
&nbsp;
sys<span style="color: #66cc66;">.</span>dm_db_index_physical_stats <span style="color: #66cc66;">&#40;</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span><span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">,</span> <span style="color: #993333; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">AS</span> a <span style="color: #993333; font-weight: bold;">JOIN</span> sys<span style="color: #66cc66;">.</span>indexes
&nbsp;
<span style="color: #993333; font-weight: bold;">AS</span> b <span style="color: #993333; font-weight: bold;">ON</span> a<span style="color: #66cc66;">.</span>object_id <span style="color: #66cc66;">=</span> b<span style="color: #66cc66;">.</span>object_id <span style="color: #993333; font-weight: bold;">AND</span> a<span style="color: #66cc66;">.</span>index_id <span style="color: #66cc66;">=</span> b<span style="color: #66cc66;">.</span>index_id <span style="color: #993333; font-weight: bold;">WHERE</span>
&nbsp;
avg_fragmentation_in_percent &amp;gt; <span style="color: #cc66cc;">30</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">GO</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>2)    Run this command on the tables:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;">Exec sp_MSForEachtable <span style="color: #800000;">'DBCC DBREINDEX ('</span><span style="color: #800000;">'?'</span><span style="color: #800000;">')'</span>
&nbsp;
go</pre></td></tr></table></div>

<p>&nbsp;</p>
<p>3)    Once this was done, run the “Rebuild Indexes” task from Site Maintenance of the primary server.</p>
<p>&nbsp;</p>
<p>4)    Finally run this command back on the SQL Server via SQL Management Studio.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">EXEC</span> sp_MSForEachTable <span style="color: #ff0000;">&quot;UPDATE STATISTICS ? with fullscan&quot;</span>
&nbsp;
<span style="color: #993333; font-weight: bold;">GO</span></pre></td></tr></table></div>

<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2013/05/21/sccm-2012-poor-console-performance-in-software-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move all your Windows 8 Hyper-V VM&#8217;s to SSD with PowerShell</title>
		<link>http://www.blogmynog.com/2013/01/11/move-all-your-windows-8-hyper-v-vms-to-ssd-with-powershell/</link>
		<comments>http://www.blogmynog.com/2013/01/11/move-all-your-windows-8-hyper-v-vms-to-ssd-with-powershell/#comments</comments>
		<pubDate>Sat, 12 Jan 2013 03:08:24 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows 8]]></category>
		<category><![CDATA[3.0]]></category>
		<category><![CDATA[Hyper-V]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=445</guid>
		<description><![CDATA[I built a lab on my Windows 8 laptop consisting of System Center 2012 Configuration Manager, Operations Manager, Configuration Manager, a DC, SQL, and SharePoint. Although it runs so-so on my 7200RPM hard drive I decided to join the club and finally get an SSD for a secondary drive. After months of research I ended [...]]]></description>
				<content:encoded><![CDATA[<p>I built a lab on my Windows 8 laptop consisting of System Center 2012 Configuration Manager, Operations Manager, Configuration Manager, a DC, SQL, and SharePoint. Although it runs so-so on my 7200RPM hard drive I decided to join the club and finally get an SSD for a secondary drive. After months of research I ended up with the Intel 330 240GB SSD and purchased it on Amazon for about 180$. This blog post addresses two items. First I had problems with my OS locking up when attempting to format my new SSD. And second moving Hyper-V VM&#8217;s to a new drive.</p>
<h1>Trouble formatting new *Intel* SSD</h1>
<p>I had some difficulty formatting the drive in Computer Management. Every time I attempt to format it, it would lock up my OS. So here are the steps I took to resolve it:</p>
<h2>!!!! WARNING: this will destroy all data on the target disk !!!!</h2>
<ol>
<li>Download and install <a href="www.intel.com/support/go/ssdtoolbox/index.htm" target="_blank">Intel SSD Toolbox</a></li>
<li>Open an elevated cmd prompt.</li>
<li>Type diskpart.exe and hit enter</li>
<li>list disk</li>
<li>select disk # (the disk you want to clean)</li>
<li>clean all (more info on this command and diskpart <a href="http://technet.microsoft.com/en-us/library/cc766465%28v=ws.10%29.aspx" target="_blank">http://technet.microsoft.com/en-us/library/cc766465%28v=ws.10%29.aspx</a> )</li>
<li>It will take 10-20 minutes or so but after these steps I was able to format the drive.</li>
</ol>
<p>Also note that 64K unit allocation size is recommended for drives where VHDX&#8217;s will be stored (since they will be large files). This unit size is not recommended for smaller files. You can use the wizard in computer management or run<strong> format FS=NTFS LABEL=&#8221;L.A.B.&#8221; UNIT=64k</strong> QUICK in disk part.</p>
<h1>Moving your Hyper-V VM&#8217;s via PowerShell</h1>
<p>After installing my shiny new SSD I sure as heck wasn&#8217;t going to move all my VM&#8217;s manually, so PowerShell it is!</p>
<p>Here is a good start to become familiar with the Hyper-V PowerShell cmdlets. Just be sure to run the PowerShell ISE is elevated mode! <a href="http://social.technet.microsoft.com/wiki/contents/articles/8700.windows-server-8-manage-hyper-v-3-0-with-powershell-en-us.aspx">http://social.technet.microsoft.com/wiki/contents/articles/8700.windows-server-8-manage-hyper-v-3-0-with-powershell-en-us.aspx</a></p>
<p>After you familiarize yourself with some of the cmdlet&#8217;s there is some really slick ones for moving VM&#8217;s around:</p>
<ul>
<li>Move-VM (Moves the VM to another host)</li>
<li>Move-VMStorage (Moves all of the VM&#8217;s dependencies to another location)</li>
</ul>
<p>I&#8217;m moving my VM&#8217;s to my new SSD on my laptop so Move-VMStorage was the best route!</p>
<ol>
<li>Start with Get-VM to get a list of VM&#8217;s<br />
<a href="http://www.blogmynog.com/2013/01/11/move-all-your-windows-8-hyper-v-vms-to-ssd-with-powershell/get-vm/" rel="attachment wp-att-447"><img class="alignnone size-full wp-image-447" alt="Get-VM" src="http://www.blogmynog.com/wp-content/uploads/2013/01/Get-VM.png" width="509" height="194" /></a></li>
<li>Now you will want to copy that to a variable. Let&#8217;s say $VMs via

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$VMs</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>VM</pre></td></tr></table></div>

</li>
<li>Now for each of these $VMs we will want to execute Move-VMStorage to (in my case) D:\.

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$DestinationPath</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;D:\SCSM Lab&quot;</span>
<span style="color: #0000FF;">ForEach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$VM</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$VMs</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #800080;">$VMName</span> <span style="color: pink;">=</span> <span style="color: #800080;">$VM</span>.Name.toString<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #008080; font-weight: bold;">Write-Output</span> <span style="color: #800000;">&quot;Moving $VMName&quot;</span>
	Move<span style="color: pink;">-</span>VMStorage <span style="color: pink;">-</span>VMName <span style="color: #800080;">$VM</span>.Name <span style="color: pink;">-</span>DestinationStoragePath <span style="color: #800000;">&quot;$DestinationPath\$VMName&quot;</span>
	<span style="color: #008080; font-weight: bold;">Write-Output</span> <span style="color: #800000;">&quot;Finished Moving $VMName&quot;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>A progress bar will appear indicating the move is occurring:<br />
<a href="http://www.blogmynog.com/2013/01/11/move-all-your-windows-8-hyper-v-vms-to-ssd-with-powershell/move-vmstorage/" rel="attachment wp-att-448"><img class="alignnone size-full wp-image-448" alt="Move-VMStorage" src="http://www.blogmynog.com/wp-content/uploads/2013/01/Move-VMStorage.png" width="470" height="203" /></a></li>
<li>That&#8217;s pretty much it <img src='http://www.blogmynog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . You will also be able to migrate them while they are still running, although it could take longer.</li>
</ol>
<p>Full script:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$VMs</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>VM
<span style="color: #800080;">$DestinationPath</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;D:\SCSM Lab&quot;</span>
<span style="color: #0000FF;">ForEach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$VM</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$VMs</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
	<span style="color: #800080;">$VMName</span> <span style="color: pink;">=</span> <span style="color: #800080;">$VM</span>.Name.toString<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
	<span style="color: #008080; font-weight: bold;">Write-Output</span> <span style="color: #800000;">&quot;Moving $VMName&quot;</span>
	Move<span style="color: pink;">-</span>VMStorage <span style="color: pink;">-</span>VMName <span style="color: #800080;">$VM</span>.Name <span style="color: pink;">-</span>DestinationStoragePath <span style="color: #800000;">&quot;$DestinationPath\$VMName&quot;</span>
	<span style="color: #008080; font-weight: bold;">Write-Output</span> <span style="color: #800000;">&quot;Finished Moving $VMName&quot;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2013/01/11/move-all-your-windows-8-hyper-v-vms-to-ssd-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Beta Private Cloud exams from MMS not showing on MCP transcript</title>
		<link>http://www.blogmynog.com/2012/08/24/beta-private-cloud-exams-from-mms-not-showing-on-mcp-transcript/</link>
		<comments>http://www.blogmynog.com/2012/08/24/beta-private-cloud-exams-from-mms-not-showing-on-mcp-transcript/#comments</comments>
		<pubDate>Fri, 24 Aug 2012 22:18:20 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Certification]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Private Cloud]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[SCOM]]></category>
		<category><![CDATA[Beta]]></category>
		<category><![CDATA[Exam]]></category>
		<category><![CDATA[System Center]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=420</guid>
		<description><![CDATA[A few month ago I came across Kevin Holman&#8217;s blog post on checking the status of the Private Cloud beta exams I took at MMS (71-246 Monitoring and Operating a Private Cloud with System Center 2012 &#38; 71-247 Configuring and Deploying a Private Cloud with System Center 2012) and to my excitement I passed both [...]]]></description>
				<content:encoded><![CDATA[<p>A few month ago I came across <a href="http://blogs.technet.com/b/kevinholman/archive/2012/06/14/some-of-the-beta-private-cloud-exams-from-mms-are-scored-and-available.aspx?wa=wsignin1.0">Kevin Holman&#8217;s blog post</a> on checking the status of the Private Cloud beta exams I took at MMS (<a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-246">71-246 Monitoring and Operating a Private Cloud with System Center 2012</a> &amp; <a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-247">71-247 Configuring and Deploying a Private Cloud with System Center 2012</a>) and to my excitement I passed both (I was NOT dancing around my house in celebration <img src='http://www.blogmynog.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> ). All I needed then was an <a href="http://www.microsoft.com/learning/en/us/certification/cert-windows-server-2008-MCSA.aspx">MCSA: Windows Server 2008</a> and I&#8217;d have my <a href="http://www.microsoft.com/learning/en/us/certification/cert-private-cloud.aspx">MCSE: Private Cloud</a> certification! So I&#8217;ve been hitting the books the past few months and taking practice exams in order to prep for my <a href="http://www.microsoft.com/learning/en/us/certification/cert-windows-server-2008-MCSA.aspx">MCSA: Windows Server 2008</a> exams. (<a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-640">70-640</a>, <a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-642">70-642</a>, and finally today passing <a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-646">70-646</a>!) All the hard work, late nights, spousal complaints (love ya dear), and early mornings on my aggressive schedule paid off.</p>
<p>But wait, my two Private Cloud beta exams are still not showing up on the damn <a href="https://mcp.microsoft.com">MCP site</a>! It&#8217;s been over four months! I need support! I don&#8217;t really like to call into support (even though sometimes it&#8217;s usually faster) and ended up using the MCP site&#8217;s chat feature in the support section, see our exchanges below&#8230;</p>
<p>Sponsors, article continues below...</br><script type="text/javascript"><!--
google_ad_client = "ca-pub-6777516615999985";
/* 300x250, created 6/22/10 */
google_ad_slot = "3047564383";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><span id="more-420"></span></p>
<blockquote><p><em>Juned: Hi Stephen,</em></p>
<p><em>Juned: Thank you for contacting Microsoft. My name is Juned. Please give me a moment while I review your question.</em></p>
<p><em>Stephen Leuthold: Hi</em></p>
<p><em>Juned: If I understand you correctly your two exams are missing from your transcript.</em></p>
<p><em>Stephen Leuthold: 071-247 and 071-246 are not showing on my transcript. However four months ago I passed the exams (shows on Prometric as passed).</em></p>
<p><em>Juned: Thank you for the information, please give me a moment.</em></p>
<p><em>Juned: Do you have exam registration id or exam confirmation number for the missing exams?</em></p>
<p><em>Stephen Leuthold: Yes</em></p>
<p><em>Stephen Leuthold: 071-247 is &#8230;&#8230;&#8230;&#8230;..</em></p>
<p><em>Stephen Leuthold: 071-246 is &#8230;&#8230;&#8230;&#8230;..</em></p>
<p><em>Juned: Thank you for the information, It would be my pleasure to assist you with it.</em></p>
<p><em>Juned: Please give me a moment.</em></p>
<p><em>Juned: I regret to inform you that I am unable to locate your exam details in our database.</em></p>
<p><em>Stephen Leuthold: They were beta exams at the time.</em></p>
<p><em>Juned: It seems that we have not received your exam data from the testing vendor.</em></p>
<p><em>Stephen Leuthold: So, how do we proceed from here?</em></p>
<p><em>Juned: Yes, I have checked that exam went live on June 11, 2012.</em></p>
<p><em>Juned: As we have not received your exam data from the testing vendor. I would request you to send us the scanned copy of the exam score report via email at MCPhelp@microsoft.com including your MC ID and Name to escalate this issue.</em></p>
<p><em>Juned: In order to obtain the score report for the exam you may contact Prometric testing center.</em></p>
<p><em>Stephen Leuthold: Microsoft can&#8217;t handle all that for me?</em></p>
<p><em>Juned: You can contact Prometric at:</em></p>
<p><em>Juned: Prometric:</em></p>
<p><em>Juned: Phone: 1-800-755-3926 (USA)</em></p>
<p><em>Juned: Email: CustomerService@prometric.com</em></p>
<p><em>Stephen Leuthold: So once I email the MCPhelp email how long will it take to show up on my transcript?</em></p>
<p><em>Juned: Once we get the details your exam would be update within 3-5 business days.</em></p>
<p><em>Stephen Leuthold: ok</em></p>
<p><em>Juned: Is there anything else apart from this I can help you with?</em></p>
<p><em>Stephen Leuthold: No, thank you.</em></p>
<p><em>Juned: You are welcome and I really apologize for the inconvenience caused to you.</em></p>
<p><em>Juned: Thank you for contacting Microsoft Certification Chat Support.</em></p>
<p><em>Juned: Have a great day ahead.</em></p></blockquote>
<p>I called the Prometric number the support technician gave me and had to wait for their 5 minute disclaimer (keep reading I&#8217;ll save you the grief). After that and navigating the selections I was connected to a support technician, now at Prometric. I gave her my testing ID &#8220;sr#######&#8230;&#8221;, verified my information and she confirmed that I did indeed pass the exams. She said that they will submit my score report to Microsoft and it would take 7-10 business days for them to receive it. I insisted that I&#8217;ve been waiting for over four months and really wanted to have my shiny MCSE: Private Cloud certification sooner than later. The nice lady talked to her supervisor and escalated me to their Candidate Care department at +1 (800) 775-3926. Before transferring me she gave them all the information so I wouldn&#8217;t have to repeat, what a gal! The nice gentleman on the phone said he&#8217;d get a ticket in and they should have the information sent to Microsoft within 48 business hours and would give me a call back with a status update in a few days. He offered to go ahead and expedite the exam I passed today too <img src='http://www.blogmynog.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>In short, if you are having similar issues with these or other exams call Prometric&#8217;s Candidate Care department at +1 (800) 775-3926. I hope this helps out anyone else that experienced the same issue!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2012/08/24/beta-private-cloud-exams-from-mms-not-showing-on-mcp-transcript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Report on SCOM Alert Notification Subscriptions</title>
		<link>http://www.blogmynog.com/2011/12/05/report-on-scom-alert-notification-subscriptions/</link>
		<comments>http://www.blogmynog.com/2011/12/05/report-on-scom-alert-notification-subscriptions/#comments</comments>
		<pubDate>Tue, 06 Dec 2011 05:07:55 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SCOM]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Subscriptions]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=393</guid>
		<description><![CDATA[Trouble tracking down alert notifications? A good word of advice is to be sure to include the notification subscription ID in your alert channel, such as follows&#8230; Sponsors, article continues below... Alert: Logon Failures &#8211; Multiple failures by same User on single Machine Severity: 2 Source: ADS04.Domain.pvt Path: ADS04.Domain.pvt Last modified by: System Last modified [...]]]></description>
				<content:encoded><![CDATA[<p>Trouble tracking down alert notifications? A good word of advice is to be sure to include the notification subscription ID in your alert channel, such as follows&#8230;</p>
<p>Sponsors, article continues below...</br><script type="text/javascript"><!--
google_ad_client = "ca-pub-6777516615999985";
/* 300x250, created 6/22/10 */
google_ad_slot = "3047564383";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<blockquote><p>
Alert: Logon Failures &#8211; Multiple failures by same User on single Machine<br />
Severity: 2<br />
Source: ADS04.Domain.pvt<br />
Path: ADS04.Domain.pvt<br />
Last modified by: System<br />
Last modified time: 9/22/2011 11:47:49 AM</p>
<p>Alert description: Multiple Logon Failures by user DOMAIN\user01 with logon type 0xffffffffc0000225. See Alert Context for more details.</p>
<p>Alert view link: &#8220;http://RMS01:51908/default.aspx?DisplayMode=Pivot&#038;AlertID=%7bdbe48f98-2051-4d83-aecb-664a07c0eb46%7d&#8221;<br />
Notification subscription ID generating this message: {BB47B5DE-176C-524C-FC13-2C8576C7000E}
</p></blockquote>
<p><span id="more-393"></span><br />
Now that you have the subscription ID, you can use PowerShell to obtain the name of the alert via the subscription ID. This script will also show you who is subscribed to each notification subscription. NOTE: Be sure you load the SCOM PowerShell modules first!:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;">######################################################################</span>
<span style="color: #008000;">## Usage: SCOMSubscriptions.ps1  #####################################</span>
<span style="color: #008000;">## Author: Stephen Leuthold (http://blogmynog.com) ###################</span>
<span style="color: #008000;">## Created: 9/22/2010 ################################################</span>
<span style="color: #008000;">## Modified: 12/5/2010 ###############################################</span>
<span style="color: #008000;">## Purpose: Obtain list of alert notifications and subscribers #######</span>
<span style="color: #008000;">######################################################################</span>
&nbsp;
<span style="color: #800080;">$subs</span> <span style="color: pink;">=</span> get<span style="color: pink;">-</span>notificationsubscription <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Select-object</span> Id<span style="color: pink;">,</span>DisplayName<span style="color: pink;">,</span>ToRecipients 
<span style="color: #800080;">$out</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;&quot;</span>
<span style="color: #000000;">&#91;</span>system.array<span style="color: #000000;">&#93;</span><span style="color: #800080;">$report</span> <span style="color: pink;">=</span> <span style="color: #800080;">$null</span>
<span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$sub</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$subs</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
                <span style="color: #800080;">$recipients</span> <span style="color: pink;">=</span> <span style="color: #800080;">$sub</span>.ToRecipients <span style="color: pink;">|</span> <span style="color: pink;">%</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.Name<span style="color: #000000;">&#125;</span>
                <span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$recipient</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$recipients</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
                                <span style="color: #800080;">$out</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> PSObject
                                <span style="color: #800080;">$out</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Add-Member</span> <span style="color: #008080; font-style: italic;">-membertype</span> noteproperty <span style="color: #008080; font-style: italic;">-Name</span> Id <span style="color: #008080; font-style: italic;">-Value</span> $<span style="color: #000000;">&#40;</span><span style="color: #800080;">$sub</span>.Id<span style="color: #000000;">&#41;</span>
                                <span style="color: #800080;">$out</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Add-Member</span> <span style="color: #008080; font-style: italic;">-membertype</span> noteproperty <span style="color: #008080; font-style: italic;">-Name</span> Name <span style="color: #008080; font-style: italic;">-Value</span> $<span style="color: #000000;">&#40;</span><span style="color: #800080;">$sub</span>.DisplayName<span style="color: #000000;">&#41;</span>
                                <span style="color: #800080;">$out</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">Add-Member</span> <span style="color: #008080; font-style: italic;">-membertype</span> noteproperty <span style="color: #008080; font-style: italic;">-Name</span> Recipient <span style="color: #008080; font-style: italic;">-Value</span> $<span style="color: #000000;">&#40;</span><span style="color: #800080;">$recipient</span><span style="color: #000000;">&#41;</span>
                                <span style="color: #800080;">$report</span> <span style="color: pink;">=</span> <span style="color: #800080;">$report</span> <span style="color: pink;">+</span> <span style="color: #800080;">$out</span>               <span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #000000;">&#125;</span> 
<span style="color: #800080;">$report</span> <span style="color: pink;">|</span> <span style="color: #008080; font-weight: bold;">export-csv</span> c:\temp\SCOM_AlertSubscriptions.csv</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2011/12/05/report-on-scom-alert-notification-subscriptions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable Windows Authentication for Live Maps on a non-RMS Server</title>
		<link>http://www.blogmynog.com/2011/04/07/enable-windows-authentication-for-live-maps-on-a-non-rms-server/</link>
		<comments>http://www.blogmynog.com/2011/04/07/enable-windows-authentication-for-live-maps-on-a-non-rms-server/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 19:59:15 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SCOM]]></category>
		<category><![CDATA[Constrained delegation]]></category>
		<category><![CDATA[Live Maps]]></category>
		<category><![CDATA[Savision]]></category>
		<category><![CDATA[Windows Authentication]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=333</guid>
		<description><![CDATA[I&#8217;ve wanted to move my Live Maps installation off of my SCOM 2007 R2 RMS for some time now. But until recently I was under the impression that it was not possible to do this with Windows based authentication enabled in Live Maps. I attended MMS 2011 and stopped by the Savision booth in the [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve wanted to move my <a href="http://www.savision.com/" target="_blank">Live Maps</a> installation off of my SCOM 2007 R2 RMS for some time now. But until recently I was under the impression that it was not possible to do this with Windows based authentication enabled in Live Maps. I attended MMS 2011 and stopped by the <a href="http://www.savision.com/" target="_blank">Savision</a> booth in the expo to preview Savision’s new <a href="http://www.savision.com/" target="_blank">Vital Signs</a> product (A must see!) and got to talking about this issue with Dennis Rietvink of Savision. He said it was very possible and to contact their support. So when I got back from MMS I did and Michiel Rens at Savision support referred me to <a href="http://blogs.technet.com/b/kevinholman/archive/2008/09/24/installing-the-web-console-on-a-2008-management-server-using-windows-authentication.aspx" target="_blank">Kevin Holman&#8217;s blog</a> for a possible solution. Kevin goes into quite a bit of detail on the work around. He is providing a solution if you want to run the SCOM console on another server with Windows based authentication, although most of the solution enables the same for Live Maps. Please read <a href="http://blogs.technet.com/b/kevinholman/archive/2008/09/24/installing-the-web-console-on-a-2008-management-server-using-windows-authentication.aspx" target="_blank">Kevin Holman&#8217;s blog</a> in detail before continuing. The goal of this post is to communicate what worked for me, in my environment. My environment consists of a Windows 2008 R2 RMS, a Windows 2008 R2 Live Maps server, and Windows 2008 R2 function level AD. All environments vary on operating systems, AD function levels, and security policies. So be sure you know exactly what you are doing before implementing this solution!</p>
<p><span id="more-333"></span>Sponsors, article continues below...</br><script type="text/javascript"><!--
google_ad_client = "ca-pub-6777516615999985";
/* 300x250, created 6/22/10 */
google_ad_slot = "3047564383";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<ol>
<li>First you want to ensure that the intended account(s) can successfully access the intended Live Maps dashboards.</li>
<li>Ensure that your RMS has <a href="http://technet.microsoft.com/en-us/library/ms191153.aspx" target="_blank">SPN&#8217;s (Service Principal Names)</a> registered for your SDK service account. In the following example RMSSERVER is my RMS SERVER, DOMAIN and domain.local are my domain, and SDKaccount01 is my SCOM SDK service account.
<ul>
<li>Check if your SPN&#8217;s are registered by running the following:<br />
setspn -L RMSSERVER\sdkaccount01<br />
It should tell you that the SPN is regered under MSOMSdkSvc/RMSSERVER and MSOMSdkSvc/RMSSERVER.domain.local. If it&#8217;s registered for your RMS server&#8217;s hostname <em>and</em> FQDN proceed to step 3.</li>
</ul>
<ul>
<li>If it is not registered for the RMS server&#8217;s hostname <em>and</em> FQDN, register it!<br />
setspn -a MSOMSdkSvc/RMSSERVER DOMAIN\SDKaccount01<br />
setspn -a MSOMSdkSvc/RMSSERVER.domain.local DOMAIN\SDKaccount01</li>
</ul>
</li>
<li>Verify your domain function level in AD Domains and Trusts (2003 or 2008&#8230;same solution works for 2008 R2).</li>
<li>Verify &#8220;Account is sensitive and cannot be delegated&#8221; is NOT checked on the SCOM SDK service account in AD. You can see this option under the Account tab.
<ul>
<li>Configure constrained delegation.</li>
<li>Locate the Live Maps&#8217; server computer object in AD, go to its properties and select the Delegation tab.</li>
</ul>
<ul>
<li>For Windows 2003 (also look at Kevin&#8217;s reference to <a href="http://blogs.technet.com/b/kevinholman/archive/2008/09/24/installing-the-web-console-on-a-2008-management-server-using-windows-authentication.aspx">hotfix issues</a>):<br />
Select &#8220;Trust this computer for delegation to specified services only&#8221; and &#8220;Use Kerberos only&#8221;.<br />
Click the Add button and add the SCOM SDK service (in my case sdkaccount01). The &#8220;Add Services&#8221; box should show MSOMSdkSvc, click OK on all remaining windows.</li>
</ul>
<ul>
<li>For Windows 2008 and 2008 R2:<br />
Select &#8220;Trust this computer for delegation to any service (Kerberos only).<br />
Click OK on all remaining windows.</li>
</ul>
</li>
<li>If you haven&#8217;t already, enable Windows authentication for Live Maps on your Live Maps server.
<ul>
<li>Open Internet Information Services (IIS) Manager and go to the Live Maps site.</li>
<li>Open Authentication.</li>
<li>Enable &#8220;Windows Authentication&#8221; and disable &#8220;Forms Authentication&#8221;.</li>
</ul>
</li>
</ol>
<p>Hopefully this works for you as it did for me. Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2011/04/07/enable-windows-authentication-for-live-maps-on-a-non-rms-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mass reboot servers and workstations with PowerShell</title>
		<link>http://www.blogmynog.com/2011/02/23/mass-reboot-servers-and-workstations-with-powershell/</link>
		<comments>http://www.blogmynog.com/2011/02/23/mass-reboot-servers-and-workstations-with-powershell/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 22:12:04 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[Reboot]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=317</guid>
		<description><![CDATA[We&#8217;ve got a bunch of servers stuck in pending reboot state due to SCCM updates. There is no way I&#8217;m rebooting 50 servers manually! PowerShell to the rescue! Sponsors, article continues below... 1) First step is to get a list of the machines to be rebooted into a CSV. 2) Fire up a PowerShell with [...]]]></description>
				<content:encoded><![CDATA[<p>We&#8217;ve got a bunch of servers stuck in pending reboot state due to SCCM updates. There is no way I&#8217;m rebooting 50 servers manually! PowerShell to the rescue!<br />
<span id="more-317"></span><br />
Sponsors, article continues below...</br><script type="text/javascript"><!--
google_ad_client = "ca-pub-6777516615999985";
/* 300x250, created 6/22/10 */
google_ad_slot = "3047564383";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p>1) First step is to get a list of the machines to be rebooted into a CSV.</p>
<p>2) Fire up a PowerShell with a domain account that has local admin rights on the target machines.</p>
<p>3) Set the header if you did not put a header in the CSV file.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$header</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;server&quot;</span></pre></td></tr></table></div>

<p>4) Set $servers equal to an array of server names to be rebooted.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$servers</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">import-csv</span> c:\path\to\ServersToReboot.csv <span style="color: pink;">-</span>header $header</pre></td></tr></table></div>

<p>5) Issue reboots using a foreach loop.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$i</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$servers</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
     <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Attempting to reboot:&quot;</span> <span style="color: #800080;">$i</span>.server <span style="color: #800000;">&quot;...&quot;</span>
&nbsp;
     <span style="color: #800080;">$serverObj</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">gwmi</span> Win32_operatingsystem <span style="color: pink;">-</span>computer <span style="color: #800080;">$i</span>.server
&nbsp;
     <span style="color: #800080;">$status</span> <span style="color: pink;">=</span> <span style="color: #800080;">$serverObj</span>.reboot<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
     <span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$status</span>.ReturnValue <span style="color: pink;">=</span> <span style="color: #800000;">&quot;0&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
          <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Reboot successful.&quot;</span>
     <span style="color: #000000;">&#125;</span> <span style="color: #0000FF;">else</span> <span style="color: #000000;">&#123;</span>
          <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Reboot failed. Check permissions.&quot;</span>
     <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p>Here is an example of all the code together:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$header</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;server&quot;</span>
&nbsp;
<span style="color: #800080;">$servers</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">import-csv</span> c:\path\to\ServersToReboot.csv <span style="color: pink;">-</span>header <span style="color: #800080;">$header</span>
&nbsp;
<span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$i</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$servers</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
     <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Attempting to reboot:&quot;</span> <span style="color: #800080;">$i</span>.server <span style="color: #800000;">&quot;...&quot;</span>
&nbsp;
     <span style="color: #800080;">$serverObj</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">gwmi</span> Win32_operatingsystem <span style="color: pink;">-</span>computer <span style="color: #800080;">$i</span>.server
&nbsp;
     <span style="color: #800080;">$status</span> <span style="color: pink;">=</span> <span style="color: #800080;">$serverObj</span>.reboot<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
&nbsp;
     <span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$status</span>.ReturnValue <span style="color: pink;">=</span> <span style="color: #800000;">&quot;0&quot;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
          <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Reboot successful.&quot;</span>
     <span style="color: #000000;">&#125;</span> <span style="color: #0000FF;">else</span> <span style="color: #000000;">&#123;</span>
          <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Reboot failed. Check permissions.&quot;</span>
     <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></td></tr></table></div>

<p><strong>Piece of cake!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2011/02/23/mass-reboot-servers-and-workstations-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resetting Logical Disk Fragmentation Monitor via PowerShell</title>
		<link>http://www.blogmynog.com/2010/12/08/resetting-logical-disk-fragmentation-monitor-via-powershell/</link>
		<comments>http://www.blogmynog.com/2010/12/08/resetting-logical-disk-fragmentation-monitor-via-powershell/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 23:56:55 +0000</pubDate>
		<dc:creator>Stephen Leuthold</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SCOM]]></category>
		<category><![CDATA[Logical Disk Fragementation]]></category>
		<category><![CDATA[Operations Manager]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.blogmynog.com/?p=300</guid>
		<description><![CDATA[I&#8217;ve been goog..errr bing’ing trying to look for a solution and most everyone points to the GreenMachine. Although a great and powerful tool that I have used on occasion, for some reason it does not filter for monitors in “Warning” only state and I cannot filter by monitor. In this case I will be resetting [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been goog..errr bing’ing trying to look for a solution and most everyone points to the <a href="http://blogs.technet.com/b/timhe/archive/2010/04/26/green-machine-1-04.aspx">GreenMachine</a>. Although a great and powerful tool that I have used on occasion, for some reason it does not filter for monitors in “Warning” only state and I cannot filter by monitor. In this case I will be resetting healthstate for monitors I did not intent to. I have assignee and ticket number assigned to the associated alert. If the monitor resets I lose that tracking information. My goal is to reset healthstate for only the “Logical Disk Fragmentation” monitors. There are two of these monitors, one for Windows 2003 and one for Windows 2008. My proposed solution is to utilize PowerShell with the SCOM snapin. Next week when my fragmentation monitors flip back to &#8220;Warning” state I will try the PS script I created and post an update. In theory it should work <img src='http://www.blogmynog.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> <span id="more-302"></span><br />
Sponsors, article continues below...</br><script type="text/javascript"><!--
google_ad_client = "ca-pub-6777516615999985";
/* 300x250, created 6/22/10 */
google_ad_slot = "3047564383";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;"># ==============================================================================================</span>
<span style="color: #008000;">#</span>
<span style="color: #008000;"># AUTHOR: Stephen - http://www.blogmynog.com</span>
<span style="color: #008000;"># DATE  : 12/08/2010</span>
<span style="color: #008000;">#</span>
<span style="color: #008000;"># COMMENT: Resets health state for the &quot;Logical Disk Fragmentation Level&quot; monitor for Windows 2003</span>
<span style="color: #008000;">#		and 2008 LogicalDisk classes. You may need to sign this PowerShell script</span>
<span style="color: #008000;">#		(Get-Help About_Signing) or change your execution policy (Get-Help Set-ExecutionPolicy)</span>
<span style="color: #008000;">#		in order to run it in your environment. Great for throwing into task scheduler!</span>
<span style="color: #008000;"># ==============================================================================================</span>
&nbsp;
<span style="color: #008000;">#Usage: ResetFragmentationHealth.ps1 -rmsServerName:'rms01'</span>
&nbsp;
<span style="color: #0000FF;">param</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$rmsServerName</span><span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #008080; font-weight: bold;">Add-PSSnapin</span> <span style="color: #800000;">&quot;Microsoft.EnterpriseManagement.OperationsManager.Client&quot;</span>;
<span style="color: #008080; font-weight: bold;">Set-Location</span> <span style="color: #800000;">&quot;OperationsManagerMonitoring::&quot;</span>;
<span style="color: #800080;">$mgConn</span> <span style="color: pink;">=</span> New<span style="color: pink;">-</span>ManagementGroupConnection <span style="color: pink;">-</span>connectionString:<span style="color: #800080;">$rmsServerName</span>
<span style="color: #008080; font-weight: bold;">Set-Location</span> <span style="color: #800080;">$rmsServerName</span>
&nbsp;
<span style="color: #008000;"># Windows 2003</span>
<span style="color: #800080;">$mon</span> <span style="color: pink;">=</span> get<span style="color: pink;">-</span>monitor <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.Name <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">'Microsoft.Windows.Server.2003.LogicalDisk.DefragAnalysis'</span><span style="color: #000000;">&#125;</span>
<span style="color: #800080;">$mc</span> <span style="color: pink;">=</span> get<span style="color: pink;">-</span>monitoringClass <span style="color: #008080; font-style: italic;">-name</span> Microsoft.Windows.Server.2003.LogicalDisk
<span style="color: #800080;">$mc</span> <span style="color: pink;">|</span> get<span style="color: pink;">-</span>monitoringObject <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.HealthState <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">'Warning'</span> <span style="color: #FF0000;">-or</span> <span style="color: #000080;">$_</span>.HealthState <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">'Error'</span><span style="color: #000000;">&#125;</span> <span style="color: pink;">|</span> <span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.ResetMonitoringState<span style="color: #000000;">&#40;</span><span style="color: #800080;">$mon</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Windows 2008</span>
<span style="color: #800080;">$mon</span> <span style="color: pink;">=</span> get<span style="color: pink;">-</span>monitor <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.Name <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">'Microsoft.Windows.Server.2008.LogicalDisk.DefragAnalysis'</span><span style="color: #000000;">&#125;</span>
<span style="color: #800080;">$mc</span> <span style="color: pink;">=</span> get<span style="color: pink;">-</span>monitoringClass <span style="color: #008080; font-style: italic;">-name</span> Microsoft.Windows.Server.2008.LogicalDisk
<span style="color: #800080;">$mc</span> <span style="color: pink;">|</span> get<span style="color: pink;">-</span>monitoringObject <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.HealthState <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">'Warning'</span> <span style="color: #FF0000;">-or</span> <span style="color: #000080;">$_</span>.HealthState <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">'Error'</span><span style="color: #000000;">&#125;</span> <span style="color: pink;">|</span> <span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.ResetMonitoringState<span style="color: #000000;">&#40;</span><span style="color: #800080;">$mon</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># End</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.blogmynog.com/2010/12/08/resetting-logical-disk-fragmentation-monitor-via-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
