<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>John Quirk&#039;s Blog</title>
	<atom:link href="http://blog.quirkshop.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.quirkshop.co.uk</link>
	<description>Adventures in System Center Consultancy</description>
	<lastBuildDate>Wed, 30 Jun 2010 17:04:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.quirkshop.co.uk' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/999d8118cb0feeb877a750df48256c23?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>John Quirk&#039;s Blog</title>
		<link>http://blog.quirkshop.co.uk</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.quirkshop.co.uk/osd.xml" title="John Quirk&#039;s Blog" />
	<atom:link rel='hub' href='http://blog.quirkshop.co.uk/?pushpress=hub'/>
		<item>
		<title>Customising The Configuration Manager Dashboard (Slightly)</title>
		<link>http://blog.quirkshop.co.uk/2010/06/30/customising-the-configuration-manager-dashboard-slightly/</link>
		<comments>http://blog.quirkshop.co.uk/2010/06/30/customising-the-configuration-manager-dashboard-slightly/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 16:38:24 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://johnquirk.wordpress.com/2010/06/30/customising-the-configuration-manager-dashboard-slightly/</guid>
		<description><![CDATA[I want to add another pie chart to the defaults on the rather lovely Configuration Manager Dashboard. I’ve already installed the product, which is very straightforward, so connect to the dashboard and click Site Actions – Edit Page… &#160; This displays a hidden web part Enter a name for your new “Dataset”, here I’m using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=188&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I want to add another pie chart to the defaults on the rather lovely Configuration Manager Dashboard. I’ve already installed the product, which is very straightforward, so connect to the dashboard and click Site Actions – Edit Page…</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/clip_image002.jpg"><img style="display:inline;border-width:0;" title="clip_image002" border="0" alt="clip_image002" src="http://johnquirk.files.wordpress.com/2010/06/clip_image002_thumb.jpg?w=492&#038;h=262" width="492" height="262" /></a></p>
<p>&#160;</p>
<p>This displays a hidden web part</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/clip_image0025.jpg"><img style="display:inline;border-width:0;" title="clip_image002[5]" border="0" alt="clip_image002[5]" src="http://johnquirk.files.wordpress.com/2010/06/clip_image0025_thumb.jpg?w=735&#038;h=449" width="735" height="449" /></a></p>
</p>
<p>Enter a name for your new “Dataset”, here I’m using ComputerModels.xml.</p>
<p>Expand out the Dataset section and add your SQL server name and Configuration Manager database name.</p>
<p>Now add your SQL query. I just want a pie chart of my computer models, so a simple query will suffice:</p>
<p><font color="#ff8000">Select top 10 v_GS_COMPUTER_SYSTEM.Model0 as Model, COUNT(*) AS &#8216;Count&#8217; FROM v_GS_COMPUTER_SYSTEM      <br />GROUP BY v_GS_COMPUTER_SYSTEM.Model0 ORDER BY Count(*)</font></p>
<p>Click to Validate your query, then expand out the Chart section</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/clip_image0027.jpg"><img style="display:inline;border-width:0;" title="clip_image002[7]" border="0" alt="clip_image002[7]" src="http://johnquirk.files.wordpress.com/2010/06/clip_image0027_thumb.jpg?w=730&#038;h=262" width="730" height="262" /></a></p>
<p>I want a pie chart called Computer Models, fill in the boxes and click Save and Close.</p>
<p>Now all that’s needed is to add the newly created dataset to a web part. Click “Add a Web Part” on the page where you wish to display your lovely new chart.</p>
<p>Select Microsoft Dashboard Viewer from the list of webparts</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/clip_image001.png"><img style="display:inline;border-width:0;" title="clip_image001" border="0" alt="clip_image001" src="http://johnquirk.files.wordpress.com/2010/06/clip_image001_thumb.png?w=603&#038;h=60" width="603" height="60" /></a></p>
<p>This will add a blank web part to your site:</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/clip_image0016.png"><img style="display:inline;border-width:0;" title="clip_image001[6]" border="0" alt="clip_image001[6]" src="http://johnquirk.files.wordpress.com/2010/06/clip_image0016_thumb.png?w=600&#038;h=101" width="600" height="101" /></a></p>
<p>Click Edit and select “Modify Shared Web Part”</p>
<p>In the right hand pane, click in the “Select Dataset” box and select the ComputerModels.xml we just created</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/clip_image00110.png"><img style="display:inline;border-width:0;" title="clip_image001[10]" border="0" alt="clip_image001[10]" src="http://johnquirk.files.wordpress.com/2010/06/clip_image00110_thumb.png?w=283&#038;h=295" width="283" height="295" /></a></p>
</p>
</p>
<p>Apply this change and click the Home link on the top of the page and you’re done!</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/clip_image00112.png"><img style="display:inline;border-width:0;" title="clip_image001[12]" border="0" alt="clip_image001[12]" src="http://johnquirk.files.wordpress.com/2010/06/clip_image00112_thumb.png?w=618&#038;h=454" width="618" height="454" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=188&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/06/30/customising-the-configuration-manager-dashboard-slightly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/clip_image002_thumb.jpg" medium="image">
			<media:title type="html">clip_image002</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/clip_image0025_thumb.jpg" medium="image">
			<media:title type="html">clip_image002[5]</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/clip_image0027_thumb.jpg" medium="image">
			<media:title type="html">clip_image002[7]</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/clip_image001_thumb.png" medium="image">
			<media:title type="html">clip_image001</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/clip_image0016_thumb.png" medium="image">
			<media:title type="html">clip_image001[6]</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/clip_image00110_thumb.png" medium="image">
			<media:title type="html">clip_image001[10]</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/clip_image00112_thumb.png" medium="image">
			<media:title type="html">clip_image001[12]</media:title>
		</media:content>
	</item>
		<item>
		<title>USMT State Capture Failure</title>
		<link>http://blog.quirkshop.co.uk/2010/06/08/usmt-state-capture-failure/</link>
		<comments>http://blog.quirkshop.co.uk/2010/06/08/usmt-state-capture-failure/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 16:17:23 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>

		<guid isPermaLink="false">https://johnquirk.wordpress.com/2010/06/08/usmt-state-capture-failure/</guid>
		<description><![CDATA[We’re part way through a nice little Windows 7 project, and have the New Computer scenario cooking just fine, driver management for some of the AMT stuff has been a real challenge, but once you have all the right driver versions for the right laptop models it all goes in fine. Irritatingly, some of the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=173&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>We’re part way through a nice little Windows 7 project, and have the New Computer scenario cooking just fine, driver management for some of the AMT stuff has been a real challenge, but once you have all the right driver versions for the right laptop models it all goes in fine. Irritatingly, some of the drivers for the AMT SOL packages are model specific, but just generate an error that your machine doesn’t meet the minimum requirements. Anyway, I digress, we’ve started on Zero Touch, and I came across an error I’ve not seen before:</p>
<blockquote><p>The task sequence execution engine failed executing the action (Capture User State) in the group (State Capture) with the error code 2147942402     <br />Action output: 0, HRESULT=80070002 </p>
</blockquote>
<p>If you are seeing this, it’s possibly because you have (again!) forgotten to update your Configuration Manager Client package when you installed SP2. At SP2 the agent should have a ConfigMgr Client Version of 4.00.6487.<strong><u>2000</u></strong>. SP1 is <strong><u>1000</u></strong>.</p>
<p>Right click your agent package and update distribution points, ConfigMgr will automagically pick up the new client source. </p>
<p>Obviously you’ll also need to upgrade the live client…</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=173&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/06/08/usmt-state-capture-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>
	</item>
		<item>
		<title>Meeting Jeff &#8211; Part 2</title>
		<link>http://blog.quirkshop.co.uk/2010/06/07/meeting-jeff-part-2/</link>
		<comments>http://blog.quirkshop.co.uk/2010/06/07/meeting-jeff-part-2/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 06:35:22 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://johnquirk.wordpress.com/2010/06/07/meeting-jeff-part-2/</guid>
		<description><![CDATA[A quick update for anyone who hasn’t already seen enough of me (or Carl). The interview with Jeff Wettlaufer mentioned below is now online on the System Center blog – Nexus One, for your , I dunno, enjoyment. We also have a new website at http://www.Orinoko.co.uk I am certain this will be a permanent work [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=172&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>A quick update for anyone who hasn’t already seen enough of me (or Carl). The interview with Jeff Wettlaufer mentioned below is now online on the <a href="http://blogs.technet.com/b/systemcenter/archive/2010/06/04/talking-about-the-optimized-desktop-with-orinoko.aspx">System Center blog</a> – Nexus One, for your , I dunno, enjoyment. </p>
<p>We also have a new website at <a href="http://www.Orinoko.co.uk">http://www.Orinoko.co.uk</a> I am certain this will be a permanent work in progress, but it is an improvement over our previous one at any rate.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/172/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/172/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/172/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=172&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/06/07/meeting-jeff-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>
	</item>
		<item>
		<title>Lets&#8230; True-Up with Configuration Manager</title>
		<link>http://blog.quirkshop.co.uk/2010/06/04/lets-true-up-with-configuration-manager/</link>
		<comments>http://blog.quirkshop.co.uk/2010/06/04/lets-true-up-with-configuration-manager/#comments</comments>
		<pubDate>Fri, 04 Jun 2010 11:35:33 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>

		<guid isPermaLink="false">https://johnquirk.wordpress.com/2010/06/04/lets-true-up-with-configuration-manager/</guid>
		<description><![CDATA[Using ConfigMgr we can leverage the inventory data gathered by the client agent to report on our license compliance against the MVLS report provided by Microsoft from the MVLS site. To get your license report do the following: Log into the MVLS Site, Hover over Microsoft License Statement Select view Microsoft License Statement Click the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=171&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Using ConfigMgr we can leverage the inventory data gathered by the client agent to report on our license compliance against the MVLS report provided by Microsoft from the MVLS site.</p>
<p>To get your license report do the following:</p>
<ol>
<li>Log into the MVLS Site, Hover over Microsoft License Statement</li>
<li>Select view Microsoft License Statement</li>
<li>Click the + to bring down the Add Agreements Option and add your agreement and enrolment numbers in the field</li>
<li>Click calculate new statement</li>
<li>Right click on table under License Summary Tab and select Export to Microsoft Excel</li>
</ol>
<p>Now open this file in Excel. You need to muck about with it a little bit… </p>
<p>Column A will be blank, delete it.</p>
<p>Format the License Version column (C) as TEXT. </p>
<p>Now Save As Excel 2003 XML format.</p>
<p>Copy this into a folder, shared and accessible to the SMS Provider and the user you’re logged in as. </p>
<p>Right click the Asset Intelligence node and select Import Software Licenses</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/06/image_thumb2.png?w=333&#038;h=81" width="333" height="81" /></a> </p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/image3.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/06/image_thumb3.png?w=448&#038;h=108" width="448" height="108" /></a> </p>
<p>Note, the Example text is incorrect, you need to provide the name of the xml file too.</p>
<p>Complete the wizard and with a fair wind you will be rewarded with a little tick:</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/image4.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/06/image_thumb4.png?w=451&#038;h=137" width="451" height="137" /></a> </p>
<p>In my opinion (having spent all morning getting an import failure) this should also play a little fanfare sound, but it doesn’t.</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/image5.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/06/image_thumb5.png?w=719&#038;h=174" width="719" height="174" /></a> </p>
<p>Looks like we need a few more Project licenses!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=171&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/06/04/lets-true-up-with-configuration-manager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>I Have an Enduring Love for Configuration Manager, but&#8230;</title>
		<link>http://blog.quirkshop.co.uk/2010/06/02/i-have-an-enduring-love-for-configuration-manager-but/</link>
		<comments>http://blog.quirkshop.co.uk/2010/06/02/i-have-an-enduring-love-for-configuration-manager-but/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 17:29:53 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>

		<guid isPermaLink="false">https://johnquirk.wordpress.com/2010/06/02/i-have-an-enduring-love-for-configuration-manager-but/</guid>
		<description><![CDATA[…sometimes it tests me… We have to install SP2 for ConfigMgr before we can start our Windows 7 imaging. The customer we’re working on has SP1 deployed, the site was originally upgraded from SMS 2003. Suffice to say that the SQL database is in a bit of a mess. Problem 1. The installation bombs out [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=161&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><em>…sometimes it tests me…</em></p>
<p><img src="http://verbalprocess.files.wordpress.com/2009/12/image.png?w=480" /></p>
<p>We have to install SP2 for ConfigMgr before we can start our Windows 7 imaging. The customer we’re working on has SP1 deployed, the site was originally upgraded from SMS 2003. Suffice to say that the SQL database is in a bit of a mess.</p>
<h2>Problem 1.</h2>
<p>The installation bombs out with an error in the C:\ConfigMgrSetup.log:</p>
<blockquote><p>The login already has an account under a different user name.</p>
</blockquote>
<p>This turns out to be an issue where we have a SQL account with the NetBIOS name of the server but a login id of the full domain machine account. E.g. The SQL User Name is “<em>SERVER</em>” but the login ID is <em>DOMAIN\SERVER$</em>.</p>
<p>ConfigMgr attempts to add its computer account account to SQL (which is also DOMAIN\Server$) and gets the above error. Deleting the existing NetBIOS name account isn’t possible as it owns the “SMS Admins” SQL schema.</p>
<p>The solution is to grant another account (NETWORKSERVICE seems to work) the ownership of the SMS Admins schema, remove ownership for the NetBIOS named account, then you can delete it and once the account is re-added as DOMAIN\SERVER$ you can transfer the ownership of the SMS Admins schema back to this account.</p>
<p>This was, however, just the start of the problems.</p>
<h2>Problem 2.</h2>
<p>Error in Setup log:</p>
<blockquote><p><em>Cannot create a row of size 8065 which is greater than the allowable maximum of 8060.</em></p>
</blockquote>
<p>I still haven’t got to the bottom of this one except that compressing the database seems to make it go away… At the same time as we were having these problems, our DB was also growing by around 200MB per hour, there’s some discussion <a href="http://blogs.litware.se/?p=252">here</a> that this may be <a href="http://support.microsoft.com/kb/978021">related to a post SP2 hotfix</a>, but I have not been able to confirm this.</p>
<h1>Problem 3</h1>
<p>Our database is corrupt. And unfortunately it’s in quite an important table…</p>
<p>Error in the setup log:</p>
<blockquote><p>The Database ID 58, Page (1:140044), slot 20 for LOB data type node does not exist. This is usually caused by transactions that can read uncommitted data on a data page. Run DBCC CHECKTABLE.</p>
</blockquote>
<p>Running DBCC Checktable tells us that the data is unrecoverable and that only running DBCC CheckDB with REPAIR_ALLOW_DATA_LOSS is going to fix it. After scrabbling around for a while without joy we ran this and it scrapped around 100 rows from the database. Unfortunately the data is in the CI_ConfigurationItems table. There’s a lot of other tables which depend on this, referential integrity issues await!</p>
<p>Problem 3.</p>
<p>Having “repaired” the database we now essentially have a bunch of orphaned items scattered around the Configuration Manager SQL database. This is a real problem as the SP2 setup routine is going to recreate all of the SQL Foreign Key links and if there’s incompatible data in the linked tables the setup routine will bomb out:</p>
<blockquote><p>The ALTER TABLE statement conflicted with the FOREIGN KEY constraint &quot;Update_ComplianceStatus_CI_UpdateCIs_FK&quot;. The conflict occurred in database &quot;SMS_XXX&quot;, table &quot;dbo.CI_UpdateCIs&quot;, column &#8216;CI_ID&#8217;.</p>
</blockquote>
<p>The table will vary, but essentially what this is telling us is that there are records in the Update_ComplianceStatus table that do not have a corresponding record in the CI_ConfigurationItems table, because they were corrupt and have now been removed.</p>
<p>To identify the offending records I executed the following SQL Query</p>
<blockquote><p>Select distinct CI_ID      <br />From Update_ComplianceStatus       <br />Where CI_ID not in (select CI_ID from CI_ConfigurationItems) </p>
</blockquote>
<p>This results in a few records being returned which represent tens of thousands of status messages, inventory records, whatever… They need to be removed:</p>
<blockquote><p>Delete from Update_ComplianceStatus where CI_ID = &#8217;9420&#8242;      <br />Delete from Update_ComplianceStatus where CI_ID = &#8217;9644&#8242;       <br />Delete from Update_ComplianceStatus where CI_ID = &#8217;11666&#8242;       <br />Delete from Update_ComplianceStatus where CI_ID = &#8217;25041&#8242;       <br />Delete from Update_ComplianceStatus where CI_ID = &#8217;26261&#8242;       <br />Delete from Update_ComplianceStatus where CI_ID = &#8217;29627&#8242;       <br />Delete from Update_ComplianceStatus where CI_ID = &#8217;31677&#8242;       <br />Delete from Update_ComplianceStatus where CI_ID = &#8217;33272&#8242;</p>
</blockquote>
<p>I created the above statements in Excel using Concatenate to add the text to the ID, I recognise that you can do the whole thing programmatically, but this way you can run them one at a time in the SQL interface:</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/06/image_thumb.png?w=397&#038;h=189" width="397" height="189" /></a> </p>
<p>I like this, as these kind of things make me a little nervous… </p>
<p>Once these tasks are complete I rerun setup and wait for the next failure in the log, then repeat the above. A lot.</p>
<p>It took <strong><u>EIGHT HOURS!!!!!</u></strong> but:</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/06/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/06/image_thumb1.png?w=587&#038;h=84" width="587" height="84" /></a> </p>
<p>Now I need a pint!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/161/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/161/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/161/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=161&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/06/02/i-have-an-enduring-love-for-configuration-manager-but/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>

		<media:content url="http://verbalprocess.files.wordpress.com/2009/12/image.png" medium="image" />

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/06/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Meeting Jeff Wettlaufer</title>
		<link>http://blog.quirkshop.co.uk/2010/05/24/meeting-jeff-wettlaufer/</link>
		<comments>http://blog.quirkshop.co.uk/2010/05/24/meeting-jeff-wettlaufer/#comments</comments>
		<pubDate>Mon, 24 May 2010 11:58:27 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Orinoko]]></category>

		<guid isPermaLink="false">https://johnquirk.wordpress.com/2010/05/24/meeting-jeff-wettlaufer/</guid>
		<description><![CDATA[The crushing disappointment of not making it to MMS this year (due to plate tectonics) was soothed slightly last week by the Best of MMS UK event held at Microsoft’s London offices in Cardinal Place. As well as a chance to see some of the content delivered at MMS (including plenty of demos using Configuration [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=154&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>The crushing disappointment of not making it to MMS this year (due to plate tectonics) was soothed slightly last week by the Best of MMS UK event held at Microsoft’s London offices in Cardinal Place. As well as a chance to see some of the content delivered at MMS (including plenty of demos using Configuration Manager v.Next and Virtual Machine Manager v.Next) it was also a good opportunity to meet up with some former colleagues and some new associates and to swap stories over a beer or two.</p>
<p>It was also a chance to catch up with Jeff Wettlaufer, a Senior Technical Product Manager in the Microsoft System Center division. Jeff’s always interested on the view from the trenches and was kind enough to interview me and Carl from Orinoko about our recent experiences with Windows 7 and System Center. Whether the interview ever sees the light of day, who knows… we’re not exactly well rehearsed in these things so are mainly tongue-tied for the whole thing, but it really did happen:</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/05/image.png"><img style="display:inline;border-width:0;" title="Jeff, Carl and John" border="0" alt="Jeff, Carl and John" src="http://johnquirk.files.wordpress.com/2010/05/image_thumb.png?w=472&#038;h=193" width="472" height="193" /></a> </p>
<h6 align="right">Jeff, Carl and John, Cardinal Place, 18th May 2010</h6>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=154&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/05/24/meeting-jeff-wettlaufer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/05/image_thumb.png" medium="image">
			<media:title type="html">Jeff, Carl and John</media:title>
		</media:content>
	</item>
		<item>
		<title>Adding Server Core Roles in the Task Sequence</title>
		<link>http://blog.quirkshop.co.uk/2010/05/13/adding-server-core-roles-in-the-task-sequence/</link>
		<comments>http://blog.quirkshop.co.uk/2010/05/13/adding-server-core-roles-in-the-task-sequence/#comments</comments>
		<pubDate>Thu, 13 May 2010 17:02:41 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://johnquirk.wordpress.com/2010/05/13/adding-server-core-roles-in-the-task-sequence/</guid>
		<description><![CDATA[We are deploying Hyper-V Server to Dell M610 blades using Configuration Manager OSD. Deploying servers, as opposed to workstations, has some different challenges, though much is the same. In particular it’s critical to manage the drivers as tightly as you would with a workstation deployment. We’ve suffered a few BSOD’s from having out of date [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=151&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>We are deploying Hyper-V Server to Dell M610 blades using Configuration Manager OSD. Deploying servers, as opposed to workstations, has some different challenges, though much is the same. In particular it’s critical to manage the drivers as tightly as you would with a workstation deployment. We’ve suffered a few BSOD’s from having out of date drivers…</p>
<p>When deploying the OS we want to add some roles for clustering, DotNet, Powershell, etc. It turns out that the MDT Add Roles task isn’t particularly aware of Server Core or Hyper-V Server, so the DotNet and PowerShell commands don’t work. This isn’t a big deal, as we can just use DISM commands. So,to install DotNet 2, we execute:</p>
<p>DISM /Online /Enable-Feature /FeatureName:NetFx2-ServerCore</p>
<p>NB This is case sensitive. It is also critical to disable 64-bit file system redirection, if you don’t, the 32-bit Configuration Manager agent will execute DISM from SYSWOW64 and you will receive an error in the Task Sequence status messages “The operating system reported error code 11: An attempt was made to load a program with an incorrect format” </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=151&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/05/13/adding-server-core-roles-in-the-task-sequence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>
	</item>
		<item>
		<title>Using PowerShell to Manipulate Clients En-masse</title>
		<link>http://blog.quirkshop.co.uk/2010/04/21/using-powershell-to-manipulate-clients-en-masse/</link>
		<comments>http://blog.quirkshop.co.uk/2010/04/21/using-powershell-to-manipulate-clients-en-masse/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 15:04:30 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://johnquirk.wordpress.com/2010/04/21/using-powershell-to-manipulate-clients-en-masse/</guid>
		<description><![CDATA[Working with Configuration Manager, I am constantly reminding customers that Configuration Manager is a patient man’s tool. Oftentimes there’s no point in trying to speed the application along, there’s latency built into some of the processes occurring under the Configuration Manager hood and there’s generally not a great deal of point in interfering… That said, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=146&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Working with Configuration Manager, I am constantly reminding customers that Configuration Manager is a patient man’s tool. Oftentimes there’s no point in trying to speed the application along, there’s latency built into some of the processes occurring under the Configuration Manager hood and there’s generally not a great deal of point in interfering…</p>
<p>That said, I do like <a href="http://sourceforge.net/projects/smsclictr/">SCCM Client Center</a> from Roger Zander. I personally preferred the look and feel of the old SMS Client Center over the new version, but nonetheless, you can get some great results with the new one.</p>
<p>Anyhow, I digress. As I’ve been mucking about fixing hundreds and hundreds of duplicate GUIDs, I’ve also been monkeying around with PowerShell manipulating clients. I am aware of a number of console extensions that enable you to do this kind of thing to whole collections, but, I’m a command-line guy and I am generally working on customer’s infrastructures so don’t want to be cluttering up the console. Further to this, I now frequently use a sequenced version of the Configuration Manager console which makes adding in extensions a little more complex.</p>
<p>As you’re probably aware, PowerShell makes WMI handling nice and easy. I’m a fan of WMIC (<em>WMIC COMPUTERSYSTEM GET MODEL</em> is my 3rd favourite command line trick) but it isn’t remotable, and won’t run through PSExec <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> &#160;&#160; I specifically wanted a few hundred machines to give me a DDR this morning, I was in that kind of mood, so to PowerShell.</p>
<h2>Powershell WMI</h2>
<p>First thing to do is to create yourself a function. Open the PS console:</p>
<p><font color="#0000ff">Function GenerateDDR      <br />{       <br />$SMSCli = [wmiclass] <a href="sms_client">\\$strComputer\root\ccm:sms_client</a>       <br />$SMSCli.TriggerSchedule(&quot;{00000000-0000-0000-0000-000000000003}&quot;)       <br /></font><font color="#0000ff">}</font></p>
<p>You’ll need to press return a couple of times after the last line. Now we can execute:</p>
<p><font color="#0000ff">GenerateDDR <em>MYCOMPUTERNAME</em></font></p>
<p>Brilliant. There are a few different trigger actions:</p>
<h2>Trigger Actions</h2>
<p><em>Hardware Inventory {00000000-0000-0000-0000-000000000001}</em></p>
<p><em>Software Inventory {00000000-0000-0000-0000-000000000002}</em></p>
<p><em>Discovery Data Record {00000000-0000-0000-0000-000000000003}</em></p>
<p><em>Machine Policy Retrieval &amp; Evaluation {00000000-0000-0000-0000-000000000021}</em></p>
<p><em>File Collection {00000000-0000-0000-0000-000000000010}</em></p>
<p><em>SW Metering Usage Report {00000000-0000-0000-0000-000000000022}</em></p>
<p><em>Windows Installer Source List {00000000-0000-0000-0000-000000000032}</em></p>
<p><em>Software Updates Scan {00000000-0000-0000-0000-000000000113}</em></p>
<p><em>Software Updates Store {00000000-0000-0000-0000-000000000114}</em></p>
<p><em>Software Updates Deployment {00000000-0000-0000-0000-000000000108}</em></p>
<p>There are also a bunch of other client methods:    <br />EvaluateMachinePolicy, GetAssignedSite, PDPMaintenanceTask, RepairClient, RequestMachinePolicy, ResetGlobalLoggingConfiguration, SetAssignedSite, SetClientProvisioningMode and SetGlobalLoggingConfiguration. </p>
<p>So obviously the above function could be modified easily to a GenerateHW, GenerateSW etc. function just by modifying the last two or three digits of the Trigger type.</p>
<p>Now, using the fantastic file handling available in PS we can remotely run this against loads of machines (as long as they’re powered up and accessible…)</p>
<p>To do this we use the magic <font color="#0000a0">FOREACH</font> command:</p>
<p><font color="#0000ff">foreach ($StrComputer in Get-Content D:\ClientFix\test.csv) {GenerateDDR $StrComputer}</font></p>
<p><font color="#808080">The output of this (assuming the machines are powered up) is:</font></p>
<p><a href="http://johnquirk.files.wordpress.com/2010/04/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/04/image_thumb1.png?w=469&#038;h=399" width="469" height="399" /></a> </p>
<p>For me, this is a great way of performing bulk live client manipulation. PowerShell is a superb utility, but unless I use it frequently I find I quickly forget the syntax of the commands and have to start from scratch every time. This year I’ve promised myself I’m going to migrate from black screen to blue, time to move on from CMD.EXE.</p>
<p>I had a good bit of help with this work from <a href="http://myitforum.com/cs2/blogs/gramsey/archive/2008/06/17/configmgr-and-powershell-the-repairclient-method.aspx">Greg Ramsey</a> and <a href="http://technet.microsoft.com/en-us/magazine/2007.02.powershell.aspx">Don Jones</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/146/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/146/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/146/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=146&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/04/21/using-powershell-to-manipulate-clients-en-masse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/04/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Repairing Duplicate GUID issues</title>
		<link>http://blog.quirkshop.co.uk/2010/04/21/repairing-duplicate-guid-issues/</link>
		<comments>http://blog.quirkshop.co.uk/2010/04/21/repairing-duplicate-guid-issues/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 13:31:54 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>

		<guid isPermaLink="false">http://johnquirk.wordpress.com/2010/04/21/repairing-duplicate-guid-issues/</guid>
		<description><![CDATA[On site with a customer who currently have SMS 2003. We’re replacing SMS with ConfigMgr of course, so we deploy the ConfigMgr client with SMS feeding it a parameter for SMS_SLP=NEWSERVER which forces the clients to switch to our new infrastrutcure. So far so good. Around 50% of the clients show up pretty much immediately, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=143&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>On site with a customer who currently have SMS 2003. We’re replacing SMS with ConfigMgr of course, so we deploy the ConfigMgr client with SMS feeding it a parameter for SMS_SLP=NEWSERVER which forces the clients to switch to our new infrastrutcure. So far so good.</p>
<p>Around 50% of the clients show up pretty much immediately, but around 1500 are missing. It eventually turns out that this is because these 1500 machines all had the SMS client duplicated on them in a Ghost image, and now we’ve maintained that ID through the ConfigMgr upgrade.</p>
<p>A bit of a nightmare.</p>
<p>In the past under SMS we would have just deleted the SMSCFG.INI from the Windows folder and restarted the SMS Agent Host service which would have regenerated the GUID, these days the ConfigMgr client certificates don’t much like this, so we have to be a little bit smarter about it. We have our own client installation wrapper, SMSSamurai which we use for the client deployment in the first instance. In a scenario where we know there is going to be difficulty with duplicate GUIDs, we have this wrapper generate a new GUID at install time, but in this instance the duplication was not anticipated.</p>
<p>The main problem now is that the machines need to be powered on to be repaired, so it’s a long slow process. I’ve messed around with trying to script this in Powershell, but there’s no WMI provider for regenerating the GUID, so I’ve fallen back on trusty old Tranguid.exe from the SMS 2003 resource kit and PSexec from Sysinternals.</p>
<p>I’ve created a batch file:</p>
<p><font color="#800000">REM Cleaining Up Duplicate GUIDS </font></p>
<p><font color="#800000">REM Firstly we kill off the SMS Agent Host (CCMEXEC) service on the remote machine      <br />TASKKILL /S %1 /IM CCMEXEC.EXE </font></p>
<p><font color="#800000">REM Next we generate a new GUID for the machine      <br />PSEXEC \\%1 -c Tranguid.exe /R </font></p>
<p><font color="#800000">REM Now we start the SMS Agent Service back up      <br />SC \\%1 START CCMEXEC</font></p>
<p>I save this as DeDupe.bat , then executing dedupe.bat <em>brokenclientmachinename </em>will fix the duplicate GUID.</p>
<p>You can check the fix on the client by checking the ClientIDManagerstartup.log:</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/04/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/04/image_thumb.png?w=377&#038;h=44" width="377" height="44" /></a> </p>
<p>The batch file above restarts the SMS Agent Host service once the GUID has been renewed. This will result, a couple of minutes later, in a new heartbeat discovery (DDR) being generated. If you are feeling particularly impatient you can kick off a DDR as soon as the batch file completes.</p>
<p>The final piece of the jigsaw is to run the batch file against all clients. To do this we create a “Non Clients” collection (where Client=NULL)</p>
<p><font color="#800000">select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,      <br /></font><font color="#800000">SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.Client is null</font> </p>
<p>Now use View-&#160; Export list to dump this collection to a NonClients.CSV file.</p>
<p>Finally, logged on as a user with admin rights on all PCs run the following:</p>
<p>for /f “skip=1 delims=,” %L in (NonClients.csv) do Dedupe.bat %L</p>
<p>It is possible to wrap this command in a ping task to check that the machine is powered on before attempting the remote commands which will speed the process up considerably.</p>
<p>Onsite here I’m finding that this is repairing around 200 clients per hour. That’s a little slow, so adding a ping test can improve things a bit.</p>
<p><font color="#800000">for /f “skip=1 delims=,” %L in (NonClients.csv) do ping –n 1 %L &amp;&amp; Dedupe.bat %L</font></p>
<p>The double &amp; in this command line allows CMD.exe to process the Dedupe.bat file to execute <u>if</u> the ping command produces an errorcode of 0, which it does if the machine responds.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/143/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/143/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/143/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=143&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/04/21/repairing-duplicate-guid-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/04/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>The WMI object contained an invalid value in property BIOSNumLock</title>
		<link>http://blog.quirkshop.co.uk/2010/03/11/the-wmi-object-contained-an-invalid-value-in-property-biosnumlock/</link>
		<comments>http://blog.quirkshop.co.uk/2010/03/11/the-wmi-object-contained-an-invalid-value-in-property-biosnumlock/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 10:09:46 +0000</pubDate>
		<dc:creator>John Quirk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://johnquirk.wordpress.com/2010/03/11/the-wmi-object-contained-an-invalid-value-in-property-biosnumlock/</guid>
		<description><![CDATA[Not an error I’ve come across before, but trying to start up a Configuration Manager VM I’ve not used in a while, Hyper-V Manager stated “The WMI object contained an invalid value in property BIOSNumLock” and that the machine was in in “saved-state-critical”. Opening up the properties of the machine and selecting then deselecting the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=137&subd=johnquirk&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Not an error I’ve come across before, but trying to start up a Configuration Manager VM I’ve not used in a while, Hyper-V Manager stated “The WMI object contained an invalid value in property BIOSNumLock” and that the machine was in in “saved-state-critical”.</p>
<p>Opening up the properties of the machine and selecting then deselecting the Num Lock option in the BIOS configuration made this go away.</p>
<p><a href="http://johnquirk.files.wordpress.com/2010/03/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://johnquirk.files.wordpress.com/2010/03/image_thumb.png?w=478&#038;h=103" width="478" height="103" /></a> </p>
<p>Very odd. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/johnquirk.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/johnquirk.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/johnquirk.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/johnquirk.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/johnquirk.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/johnquirk.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/johnquirk.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/johnquirk.wordpress.com/137/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/johnquirk.wordpress.com/137/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/johnquirk.wordpress.com/137/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.quirkshop.co.uk&blog=9407440&post=137&subd=johnquirk&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.quirkshop.co.uk/2010/03/11/the-wmi-object-contained-an-invalid-value-in-property-biosnumlock/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0c05b205a225cb14d007b8ac047c675d?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">johnquirk</media:title>
		</media:content>

		<media:content url="http://johnquirk.files.wordpress.com/2010/03/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>