<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>snowland.se</title>
	
	<link>http://www.snowland.se</link>
	<description>mount /dev/brain | tail -f /var/log/thoughts | grep "systemcenter and other cool stuff" &gt;&gt; /pub/www</description>
	<lastBuildDate>Sat, 24 Oct 2009 13:55:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<thespringbox:skin xmlns:thespringbox="http://www.thespringbox.com/dtds/thespringbox-1.0.dtd">http://feeds.feedburner.com/snowland?format=skin</thespringbox:skin><geo:lat>60.602214</geo:lat><geo:long>15.586493</geo:long><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/snowland" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>OpsMgrDW Grooming</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/ec32erM8Vlc/</link>
		<comments>http://www.snowland.se/2009/10/24/opsmgrdw-grooming/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 13:55:52 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[SCOM]]></category>
		<category><![CDATA[Data Warehouse]]></category>
		<category><![CDATA[dwdatarp]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=382</guid>
		<description><![CDATA[After a while my demo environment with OpsMgr data warehouse (and loads of other stuff) needed some more space.
I haven&#8217;t looked in to grooming of the DW before. So as usual Google is a nice friend.  
Stefan Stranger has a nice post with loads of grooming information.
So what I did was to download the [...]]]></description>
			<content:encoded><![CDATA[<p>After a while my demo environment with OpsMgr data warehouse (and loads of other stuff) needed some more space.</p>
<p>I haven&#8217;t looked in to grooming of the DW before. So as usual Google is a nice friend. <img src='http://www.snowland.se/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><a href="http://blogs.technet.com/stefan_stranger/archive/2009/08/15/everything-you-wanted-to-know-about-opsmgr-data-warehouse-grooming-but-were-afraid-to-ask.aspx">Stefan Stranger</a> has a nice post with loads of grooming information.</p>
<p>So what I did was to download the <a href="http://blogs.technet.com/momteam/archive/2008/05/14/data-warehouse-data-retention-policy-dwdatarp-exe.aspx">dwdatarp</a> tool.</p>
<p>First I ran it to see the current status</p>
<pre class="brush: plain;">
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW
</pre>
<p>Looks like most of the datasets are stored 400 or 180 days&#8230; That is somewhat to much data for a demo environment.<br />
I took the values and divided them by 4. Then ran the following to free up 75% of the database.</p>
<pre class="brush: plain;">
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds Alert -a Raw -m 100
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds &quot;Client Monitoring&quot; -a Raw -m 8
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds &quot;Client Monitoring&quot; -a Daily -m 100
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds Configuration -a Raw -m 100
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds Event -a Raw -m 25
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds Performance -a Raw -m 45
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds Performance -a Hourly -m 100
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds Performance -a Daily -m 100
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds State -a Raw -m 45
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds State -a Hourly -m 100
dwdatarp.exe -s SNWSQL01 -d OperationsManagerDW -ds State -a Daily -m 100
</pre>
<p>OK&#8230; when you have a database full of free space you need to truncate it, but that&#8217;s another story&#8230;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=ec32erM8Vlc:HhBCCKfW3uM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=ec32erM8Vlc:HhBCCKfW3uM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=ec32erM8Vlc:HhBCCKfW3uM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=ec32erM8Vlc:HhBCCKfW3uM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=ec32erM8Vlc:HhBCCKfW3uM:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=ec32erM8Vlc:HhBCCKfW3uM:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=ec32erM8Vlc:HhBCCKfW3uM:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/ec32erM8Vlc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/10/24/opsmgrdw-grooming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/10/24/opsmgrdw-grooming/</feedburner:origLink></item>
		<item>
		<title>Federated Search of snowland.se</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/qWIjLEtGoIM/</link>
		<comments>http://www.snowland.se/2009/10/01/federated-search-of-snowland-se/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:03:09 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[Snowland.se]]></category>
		<category><![CDATA[Federated Search]]></category>
		<category><![CDATA[Open Search]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=377</guid>
		<description><![CDATA[Windows 7 have a cool feature that uses opensearch&#8230;
It gives you the ability to search webservices (and whatever that responds with XML). So after some lines of code here is a osdx-file that you can add to your Windows 7 installation.
snowland.osdx

]]></description>
			<content:encoded><![CDATA[<p>Windows 7 have a cool feature that uses opensearch&#8230;<br />
It gives you the ability to search webservices (and whatever that responds with XML). So after some lines of code here is a osdx-file that you can add to your Windows 7 installation.</p>
<p><a href='http://www.snowland.se/wp/wp-content/uploads/snowland.osdx'>snowland.osdx</a></p>
<p><img src="http://www.snowland.se/wp/wp-content/uploads/091001_federatedsearch.png" alt="091001_federatedsearch" title="091001_federatedsearch" class="alignnone size-full wp-image-378" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=qWIjLEtGoIM:kl6vhlpeOp0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=qWIjLEtGoIM:kl6vhlpeOp0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=qWIjLEtGoIM:kl6vhlpeOp0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=qWIjLEtGoIM:kl6vhlpeOp0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=qWIjLEtGoIM:kl6vhlpeOp0:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=qWIjLEtGoIM:kl6vhlpeOp0:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=qWIjLEtGoIM:kl6vhlpeOp0:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/qWIjLEtGoIM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/10/01/federated-search-of-snowland-se/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/10/01/federated-search-of-snowland-se/</feedburner:origLink></item>
		<item>
		<title>Outlook and meeting reminders</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/Z_KXdyYK7gY/</link>
		<comments>http://www.snowland.se/2009/09/27/outlook-and-meeting-reminders/#comments</comments>
		<pubDate>Sun, 27 Sep 2009 05:52:41 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[Good-to-have]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=371</guid>
		<description><![CDATA[I do not like the fact that the person sending a meeting request is the one deciding how long before the meeting a reminder would be set.
Since I don&#8217;t like the popup on my phone, I&#8217;m not using reminders.
So to get rid of incoming reminders I wrote a small script.
Press ALT+F11 and paste this code:

Sub [...]]]></description>
			<content:encoded><![CDATA[<p>I do not like the fact that the person sending a meeting request is the one deciding how long before the meeting a reminder would be set.</p>
<p>Since I don&#8217;t like the popup on my phone, I&#8217;m not using reminders.</p>
<p>So to get rid of incoming reminders I wrote a small script.</p>
<p>Press ALT+F11 and paste this code:</p>
<pre class="brush: vb;">
Sub snwRemoveMeetingReminder(Item As Outlook.MeetingItem)
    If TypeOf Item Is Outlook.MeetingItem Then
        Item.ReminderSet = False
        Item.Save

        Set Appt = Item.GetAssociatedAppointment(True)
        If Not Appt Is Nothing Then
            Appt.ReminderSet = False
            Appt.Save
        End If
    End If
End Sub
</pre>
<p>Then add the the script to incoming meeting requests.<br />
<img src="http://www.snowland.se/wp/wp-content/uploads/090927_outlook_rule.png" alt="090927_outlook_rule" title="090927_outlook_rule" class="alignnone size-full wp-image-372" /></p>
<p>Now the script will remove reminders on every incoming meeting request&#8230; It&#8217;s a client side rule, so you need to have Outlook running to get it to work.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=Z_KXdyYK7gY:dn-nutakwUU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=Z_KXdyYK7gY:dn-nutakwUU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=Z_KXdyYK7gY:dn-nutakwUU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=Z_KXdyYK7gY:dn-nutakwUU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=Z_KXdyYK7gY:dn-nutakwUU:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=Z_KXdyYK7gY:dn-nutakwUU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=Z_KXdyYK7gY:dn-nutakwUU:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/Z_KXdyYK7gY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/09/27/outlook-and-meeting-reminders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/09/27/outlook-and-meeting-reminders/</feedburner:origLink></item>
		<item>
		<title>Pimp my PXE-boot screen</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/A-US2_wgpI8/</link>
		<comments>http://www.snowland.se/2009/09/10/pimp-my-pxe-boot-screen/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:34:25 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[Snowland.se]]></category>
		<category><![CDATA[ASCII]]></category>
		<category><![CDATA[HEX]]></category>
		<category><![CDATA[Pimp]]></category>
		<category><![CDATA[PXE]]></category>
		<category><![CDATA[PXE Point]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=355</guid>
		<description><![CDATA[It was &#8220;a few&#8221; years ago since I did use a HEX-editor&#8230; but with a little time over last night I did a small hack to the PXE-boot files.
Why I did it&#8230;
1. I wanted to test if I still know how to use a HEX-editor
2. I don&#8217;t like the original text.
Do I need to mention: [...]]]></description>
			<content:encoded><![CDATA[<p>It was &#8220;a few&#8221; years ago since I did use a HEX-editor&#8230; but with a little time over last night I did a small hack to the PXE-boot files.</p>
<p>Why I did it&#8230;<br />
1. I wanted to test if I still know how to use a HEX-editor<br />
2. I don&#8217;t like the original text.</p>
<p>Do I need to mention: This is NOT supported by anyone and if you break any deployment-solution&#8230; don&#8217;t blame me.</p>
<p>First, make a backup (*doh*).</p>
<p>The files you are looking for are located on your PXE-point, X:\RemoteInstall\SMSBoot\x86 (and \x64)</p>
<p>I use XVI32 v2.51 <a href="http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm">www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm</a> to make the changes in the binary files.</p>
<p>Open up PXEBOOT.COM in XVI and search for &#8220;Press F12&#8243; (case sensitive).<br />
Then <strong>replace</strong> the text. If you have a shorter text, fill it out with blank spaces. If you have a longer text&#8230; tough luck. :-\</p>
<div class="text dean_ch" style="white-space: nowrap;">
&quot;Press F12 for network service boot&quot;<br />
&quot;Press F12 for snowland deployment &quot;<br />
&nbsp;</div>
<p>The original text:<br />
<img src="http://www.snowland.se/wp/wp-content/uploads/hexedit-press-f12.png" alt="hexedit-press-f12" title="hexedit-press-f12" width="674" height="491" class="alignnone size-full wp-image-356" /></p>
<p>And the changed text:<br />
<img src="http://www.snowland.se/wp/wp-content/uploads/hexedit-press-f12-snowland.png" alt="hexedit-press-f12-snowland" title="hexedit-press-f12-snowland" width="674" height="491" class="alignnone size-full wp-image-357" /></p>
<p>Save and test to PXE-boot a machine.<br />
(If you can&#8217;t see the new text, you probably need to copy the changed file to both the x86 and the x64 directory)</p>
<p>That wasn&#8217;t to hard, was it?<br />
If it was&#8230; don&#8217;t bother to try the WDSNBP.COM-file. <img src='http://www.snowland.se/wp/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p>The largest textblock that a user can see is the following text, this is what we want to change / pimp.</p>
<div class="text dean_ch" style="white-space: nowrap;">
The details below show the information relating to the PXE boot request for<br />
This computer. Please provide these details to your Windows Deployment Services<br />
Administrator so that this request can be approved.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; 3 &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp; &nbsp; 6 &nbsp; &nbsp; &nbsp; &nbsp; 7 &nbsp; &nbsp; &nbsp; &nbsp; 8<br />
12345678901234567890123456789012345678901234567890123456789012345678901234567890<br />
&nbsp;</div>
<p>The easy way is just to change the text to something else, but why not use some ascii-art?</p>
<p>If you want to use ascii-art, the maximum width is 51 chars (the width of the third line) and 3 lines high since you need to replace and not add/delete anything.<br />
Of course the first and second line can be a bit longer.</p>
<p>So&#8230; start up some texteditor with monospace font (notepad will do) and create some ascii-art.</p>
<div class="text dean_ch" style="white-space: nowrap;">
&nbsp; &nbsp;__ &nbsp;_ &nbsp;_ &nbsp;__ &nbsp;_ &nbsp; &nbsp;_ _ &nbsp; &nbsp;__ &nbsp;_ &nbsp;_ __<br />
&nbsp; (__ &nbsp;|\ | | &nbsp;| | &nbsp; &nbsp;| | &nbsp; |__| |\ | | &nbsp;\ &nbsp;Deployment Services is loading&#8230;<br />
&nbsp; .__) | \| |__| &nbsp;\/\/ &nbsp;|__ | &nbsp;| | \| |__/<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; 3 &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp; &nbsp; 6 &nbsp; &nbsp; &nbsp; &nbsp; 7 &nbsp; &nbsp; &nbsp; &nbsp; 8<br />
12345678901234567890123456789012345678901234567890123456789012345678901234567890<br />
&nbsp;</div>
<p>Now that we have some ascii-art with loads of blank spaces we need to replace the right number of spaces with something that we can see.</p>
<div class="text dean_ch" style="white-space: nowrap;">
###__##_##_##__##_####_#_####__##_##_#__###################################<br />
##(__##|\#|#|##|#|####|#|###|__|#|\#|#|##\##Deployment#Services#is#loading&#8230;##<br />
##.__)#|#\|#|__|##\/\/##|__#|##|#|#\|#|__/#########<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; 3 &nbsp; &nbsp; &nbsp; &nbsp; 4 &nbsp; &nbsp; &nbsp; &nbsp; 5 &nbsp; &nbsp; &nbsp; &nbsp; 6 &nbsp; &nbsp; &nbsp; &nbsp; 7 &nbsp; &nbsp; &nbsp; &nbsp; 8<br />
12345678901234567890123456789012345678901234567890123456789012345678901234567890<br />
&nbsp;</div>
<p>The number of # should be <strong>exactly</strong> the same as the original text.</p>
<p>Start up XVI32 and load WDSNBP.COM, search for &#8220;The details below&#8221;&#8230; now comes the boring/tricky part. Replace the original text with your new ascii-art.</p>
<p>I did a small &#8220;translation&#8221;-file where I have the orignal row and the new row next to each other, like this for the second row.</p>
<div class="text dean_ch" style="white-space: nowrap;">
This computer. Please provide these defails to your Windows Deployment Services<br />
##(__##|\#|#|##|#|####|#|###|__|#|\#|#|##\##Deployment#Services#is#loading&#8230;##<br />
&nbsp;</div>
<p>Now you can see that the text &#8220;computer.&#8221; sould be replaced to &#8221;  |\ | | &#8220;. Yes, it will be hard to read and easy to do wrong.</p>
<p>There is a search/replace option in XVI32, if you use it remember: replace with the exact same number of characters.</p>
<p>Save, PXE-boot and enjoy&#8230; <img src='http://www.snowland.se/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>The original:<br />
<img src="http://www.snowland.se/wp/wp-content/uploads/f12-orginal.png" alt="f12-orginal" title="f12-orginal" width="726" height="237" class="alignnone size-full wp-image-360" /></p>
<p>The final result:<br />
<img src="http://www.snowland.se/wp/wp-content/uploads/f12-snowland.png" alt="f12-snowland" title="f12-snowland" width="726" height="237" class="alignnone size-full wp-image-361" /></p>
<p>The MD5-hash of the WDSNBP.COM and PXEBOOT.COM-files in both x86 and x64 directories is the same so you only have to make the changes in one of them.<br />
<img src="http://www.snowland.se/wp/wp-content/uploads/wdsnbp-md5-hash.png" alt="wdsnbp-md5-hash" title="wdsnbp-md5-hash" width="637" height="268" class="alignnone size-full wp-image-358" /></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=A-US2_wgpI8:AtC4HmTRIn8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=A-US2_wgpI8:AtC4HmTRIn8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=A-US2_wgpI8:AtC4HmTRIn8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=A-US2_wgpI8:AtC4HmTRIn8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=A-US2_wgpI8:AtC4HmTRIn8:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=A-US2_wgpI8:AtC4HmTRIn8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=A-US2_wgpI8:AtC4HmTRIn8:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/A-US2_wgpI8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/09/10/pimp-my-pxe-boot-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/09/10/pimp-my-pxe-boot-screen/</feedburner:origLink></item>
		<item>
		<title>OpsMgr-install – SQL Cluster and IP-Sec</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/HwE0-C4qPSw/</link>
		<comments>http://www.snowland.se/2009/08/20/opsmgr-install-sql-cluster-and-ip-sec/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 17:26:59 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[SCOM]]></category>
		<category><![CDATA[Cluster]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[IP-Sec]]></category>
		<category><![CDATA[Management Server]]></category>
		<category><![CDATA[MS]]></category>
		<category><![CDATA[RMS]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=349</guid>
		<description><![CDATA[At a customer-site today we discovered some interesting things installing a few OpsMgr management servers.
The scenario is:
- A active/active SQL Cluster running SQL 2005 SP3 (This is where we want to host the OpsMgr-database)
- A couple of Server 2008 as RMS and MS
When you install the database on you run the setup on one of [...]]]></description>
			<content:encoded><![CDATA[<p>At a customer-site today we discovered some interesting things installing a few OpsMgr management servers.</p>
<p>The scenario is:<br />
- A active/active SQL Cluster running SQL 2005 SP3 (This is where we want to host the OpsMgr-database)<br />
- A couple of Server 2008 as RMS and MS</p>
<p>When you install the database on you run the setup on one of the clusternodes&#8230; works fine.</p>
<p>Then&#8230; when it&#8217;s time to install the RMS the problems kicks in.<br />
A few steps in to the setup you are prompted to name the SQL-Server, Databasename and what port&#8230; this works fine.<br />
The next steps are for the accounts you want to use&#8230;<br />
Then when at the end of the progress bar the text says something like &#8220;Executing SQL Strings&#8221; it fails.</p>
<p>If you look in to the log file you can see that it cant create a connection to the SQL Server, kinda strange since it did verify that the database existed in the step where you point out server and name.</p>
<p>After trying everything we started to create logs&#8230; massive amount of logs, traces and dumps.<br />
We couldn&#8217;t see that the msiexec tried to connect to the SQL&#8230; so after googling, reading and googling some more we found the problem.</p>
<p>IP-Sec and the broker-service.</p>
<p>What happens is that the msiexec tries to connect to the SQL Server, what it does in a clustered environment is that it talks to the SQL Broker who then says &#8220;Hey the instance you are looking for is located on port 123&#8243;&#8230; But, when the broker responds, it doesn&#8217;t respond from the same IP as the SQL server.</p>
<p>And what do a standard IP-Sec-setup do with packages from &#8220;another&#8221; IP&#8230; drop.</p>
<p>So, to work around this you need to install the SQL Client on the RMS/MS.<br />
Then set up an alias (32-Bit alias if you are using a x64, if you are using a x86 you don&#8217;t have to bother) that&#8217;s named the same as the SQL-Server and with the right port.<br />
When that&#8217;s done you can install your RMS or MS.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=HwE0-C4qPSw:nwWQivwrJEg:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=HwE0-C4qPSw:nwWQivwrJEg:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=HwE0-C4qPSw:nwWQivwrJEg:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=HwE0-C4qPSw:nwWQivwrJEg:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=HwE0-C4qPSw:nwWQivwrJEg:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=HwE0-C4qPSw:nwWQivwrJEg:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=HwE0-C4qPSw:nwWQivwrJEg:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/HwE0-C4qPSw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/08/20/opsmgr-install-sql-cluster-and-ip-sec/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/08/20/opsmgr-install-sql-cluster-and-ip-sec/</feedburner:origLink></item>
		<item>
		<title>PSOL: Count files in SCCM-inboxes – Version 3</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/sdlf7pE2lMU/</link>
		<comments>http://www.snowland.se/2009/06/11/psol-count-files-in-sccm-inboxes-version-3/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 12:59:03 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[PSOL]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[Count]]></category>
		<category><![CDATA[Inboxes]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=342</guid>
		<description><![CDATA[A bit more simple version of the last script… this time as a PowerShell oneliner.

Get-ChildItem \\MYSERVER\SMS_C01\inboxes -Recurse &#124; Group-Object Directory &#124; Where { $_.Count -gt 1 }  &#124; Sort-Object Count -Descending &#124; Format-Table Count, Name -AutoSize

]]></description>
			<content:encoded><![CDATA[<p>A bit more simple version of the <a href="http://www.snowland.se/2008/12/02/count-files-in-sccm-inboxes-version-2/">last script</a>… this time as a PowerShell oneliner.</p>
<pre class="brush: powershell;">
Get-ChildItem \\MYSERVER\SMS_C01\inboxes -Recurse | Group-Object Directory | Where { $_.Count -gt 1 }  | Sort-Object Count -Descending | Format-Table Count, Name -AutoSize
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=sdlf7pE2lMU:eedsdQ0aq00:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=sdlf7pE2lMU:eedsdQ0aq00:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=sdlf7pE2lMU:eedsdQ0aq00:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=sdlf7pE2lMU:eedsdQ0aq00:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=sdlf7pE2lMU:eedsdQ0aq00:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=sdlf7pE2lMU:eedsdQ0aq00:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=sdlf7pE2lMU:eedsdQ0aq00:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/sdlf7pE2lMU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/06/11/psol-count-files-in-sccm-inboxes-version-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/06/11/psol-count-files-in-sccm-inboxes-version-3/</feedburner:origLink></item>
		<item>
		<title>Monitor connected consoles</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/zQlYqFL6oLs/</link>
		<comments>http://www.snowland.se/2009/06/08/monitor-connected-consoles/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 08:35:28 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[SCOM]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Connected]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[Monitor]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=301</guid>
		<description><![CDATA[A small and simple script to monitor number of connected SCOM-consoles.

Set oLocator = CreateObject(&#34;WbemScripting.SWbemLocator&#34;)
Set oWmi = oLocator.ConnectServer(&#34;.&#34;, &#34;root/snmp/localhost&#34;, &#34;&#34;)
Set oStats = oWmi.ExecQuery(&#34;select * from SNMP_RFC1213_MIB_tcpConnTable where tcpConnLocalPort = 5724 AND tcpConnLocalAddress &#60;&#62; '0.0.0.0' AND tcpConnLocalAddress &#60;&#62; '127.0.0.1'&#34;)

Set oAPI = CreateObject(&#34;MOM.ScriptAPI&#34;)
Set oBag = oAPI.CreatePropertyBag()
oBag.AddValue &#34;ConnectedConsoles&#34;, oStats.Count
oAPI.AddItem(oBag)
oAPI.ReturnItems

]]></description>
			<content:encoded><![CDATA[<p>A small and simple script to monitor number of connected SCOM-consoles.</p>
<pre class="brush: vb;">
Set oLocator = CreateObject(&quot;WbemScripting.SWbemLocator&quot;)
Set oWmi = oLocator.ConnectServer(&quot;.&quot;, &quot;root/snmp/localhost&quot;, &quot;&quot;)
Set oStats = oWmi.ExecQuery(&quot;select * from SNMP_RFC1213_MIB_tcpConnTable where tcpConnLocalPort = 5724 AND tcpConnLocalAddress &lt;&gt; '0.0.0.0' AND tcpConnLocalAddress &lt;&gt; '127.0.0.1'&quot;)

Set oAPI = CreateObject(&quot;MOM.ScriptAPI&quot;)
Set oBag = oAPI.CreatePropertyBag()
oBag.AddValue &quot;ConnectedConsoles&quot;, oStats.Count
oAPI.AddItem(oBag)
oAPI.ReturnItems
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=zQlYqFL6oLs:7Cv2cchsV0E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=zQlYqFL6oLs:7Cv2cchsV0E:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=zQlYqFL6oLs:7Cv2cchsV0E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=zQlYqFL6oLs:7Cv2cchsV0E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=zQlYqFL6oLs:7Cv2cchsV0E:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=zQlYqFL6oLs:7Cv2cchsV0E:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=zQlYqFL6oLs:7Cv2cchsV0E:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/zQlYqFL6oLs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/06/08/monitor-connected-consoles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/06/08/monitor-connected-consoles/</feedburner:origLink></item>
		<item>
		<title>Re-notify users of a alerts</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/7xu4j6yVCaM/</link>
		<comments>http://www.snowland.se/2009/05/12/re-notify-users-of-a-alerts/#comments</comments>
		<pubDate>Tue, 12 May 2009 09:20:08 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SCOM]]></category>
		<category><![CDATA[Alerts]]></category>
		<category><![CDATA[Notification]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=285</guid>
		<description><![CDATA[This little powershell-script will update all alerts with resolutionstate &#8220;New&#8221; and an age of at least 24 hours&#8230; and with that done the users subscribing to that alert will get a new notification.

$UpdateAlerts = Get-Alert &#124; where { $_.ResolutionState -eq 0 -and $_.LastModified -lt (get-date).AddHours(-24) }

foreach ($alert in $UpdateAlerts) { $alert.Update(&#34;Renotify operators of an untouched [...]]]></description>
			<content:encoded><![CDATA[<p>This little powershell-script will update all alerts with resolutionstate &#8220;New&#8221; and an age of at least 24 hours&#8230; and with that done the users subscribing to that alert will get a new notification.</p>
<pre class="brush: powershell;">
$UpdateAlerts = Get-Alert | where { $_.ResolutionState -eq 0 -and $_.LastModified -lt (get-date).AddHours(-24) }

foreach ($alert in $UpdateAlerts) { $alert.Update(&quot;Renotify operators of an untouched alert open for 24 hours&quot;) }
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=7xu4j6yVCaM:1CDqdre57ho:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=7xu4j6yVCaM:1CDqdre57ho:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=7xu4j6yVCaM:1CDqdre57ho:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=7xu4j6yVCaM:1CDqdre57ho:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=7xu4j6yVCaM:1CDqdre57ho:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=7xu4j6yVCaM:1CDqdre57ho:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=7xu4j6yVCaM:1CDqdre57ho:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/7xu4j6yVCaM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/05/12/re-notify-users-of-a-alerts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/05/12/re-notify-users-of-a-alerts/</feedburner:origLink></item>
		<item>
		<title>SCCM Console Extensions – Parameters</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/Hfg-fd_5s9s/</link>
		<comments>http://www.snowland.se/2009/05/06/sccm-console-extensions-parameters/#comments</comments>
		<pubDate>Wed, 06 May 2009 13:01:47 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[SCCM]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[GUID]]></category>
		<category><![CDATA[SUB]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=282</guid>
		<description><![CDATA[OK, so now you know the GUID for the right-click tool&#8230; but what about passing parameters?
There are a few standard SUB&#8217;s (parameters) that you can use, some are listed in this post: http://www.snowland.se/2008/05/28/sccm-console-extensions/
But if you take the example of GUID 5fb29b42-5d11-4642-a6c9-24881a7d317e that you can find under Software Distribution Packages / Packages / Some package / [...]]]></description>
			<content:encoded><![CDATA[<p>OK, so now you know the GUID for the right-click tool&#8230; but what about passing parameters?</p>
<p>There are a few standard SUB&#8217;s (parameters) that you can use, some are listed in this post: <a href="http://www.snowland.se/2008/05/28/sccm-console-extensions/">http://www.snowland.se/2008/05/28/sccm-console-extensions/</a></p>
<p>But if you take the example of GUID 5fb29b42-5d11-4642-a6c9-24881a7d317e that you can find under Software Distribution Packages / Packages / Some package / Package Status / Site Server / Right click on a distribution point</p>
<p>Say that you want to pass the server-name or the path to the package&#8230;</p>
<p>First off, open the <stron>E:\Program Files\Microsoft Configuration Manager\AdminUI\XmlStorage\ConsoleRoot\AdminConsole.xml</strong> in some editor.</p>
<p>Then search for the GUID and you will find something like this.</p>
<pre class="brush: xml;">
&lt;NodeDescriptions&gt;
  &lt;ResultPaneItemDescriptions&gt;
    &lt;ResultPaneItemDescription NamespaceGuid=&quot;5fb29b42-5d11-4642-a6c9-24881a7d317e&quot; DesignerName=&quot;Localize:Status scoped result panel definitioN&quot;&gt;
      &lt;Queries&gt;
        &lt;QueryDescription NamespaceGuid=&quot;54d25192-0e7a-47b2-a6f2-67ff764d41c6&quot; Type=&quot;WQL&quot; HelpTopic=&quot;e63a41d2-a2c2-4a52-bfbb-67dc0bd7b429&quot;&gt;
          &lt;SupportedTypes&gt;
            &lt;string&gt;SMS_PackageStatusDetailSummarizer&lt;/string&gt;
          &lt;/SupportedTypes&gt;
          &lt;Query&gt;SELECT * FROM SMS_PackageStatusDistPointsSummarizer WHERE PackageID='##SUB:PackageID##' AND SiteCode='##SUB:SiteCode##'&lt;/Query&gt;
          &lt;ReturnedClassType&gt;SMS_PackageStatusDistPointsSummarizer&lt;/ReturnedClassType&gt;
        &lt;/QueryDescription&gt;
      &lt;/Queries&gt;
    &lt;/ResultPaneItemDescription&gt;
  &lt;/ResultPaneItemDescriptions&gt;
&lt;/NodeDescriptions&gt;
</pre>
<p>A few lines below the GUID you find <strong><Query>SELECT * FROM SMS_PackageStatusDistPointsSummarizer WHERE Packa&#8230;</strong> Copy that line and replace/clean it up so that it is a valid WMI-query.<br />
Will look something like:</p>
<pre class="brush: sql;">
SELECT * FROM SMS_PackageStatusDistPointsSummarizer WHERE PackageID='XYZ00123' AND SiteCode='XYZ'
</pre>
<p>Next step is to start some WMI-browser and connect to <strong>root\SMS\site_XYZ</strong> and run the query and take a look at the columns.<br />
(I like to use <a href="http://www.ks-soft.net/hostmon.eng/wmi/index.htm">WMI Explorer</a>)</p>
<p>In the query above you will have columns like ServerNALPath, SourceNALPath, SourceVersion this is what you are looking for. <img src='http://www.snowland.se/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Use them in your extensions like this:</p>
<pre class="brush: xml;">
&lt;Executable&gt;
	&lt;FilePath&gt;myScript.vbs&lt;/FilePath&gt;
	&lt;Parameters&gt;##SUB:ServerNALPath## ##SUB:SourceNALPath## ##SUB:SourceVersion##&lt;/Parameters&gt;
&lt;/Executable&gt;
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=Hfg-fd_5s9s:G4PWfyh6Dt4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=Hfg-fd_5s9s:G4PWfyh6Dt4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=Hfg-fd_5s9s:G4PWfyh6Dt4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=Hfg-fd_5s9s:G4PWfyh6Dt4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=Hfg-fd_5s9s:G4PWfyh6Dt4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=Hfg-fd_5s9s:G4PWfyh6Dt4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=Hfg-fd_5s9s:G4PWfyh6Dt4:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/Hfg-fd_5s9s" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/05/06/sccm-console-extensions-parameters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/05/06/sccm-console-extensions-parameters/</feedburner:origLink></item>
		<item>
		<title>SCCM Console Extensions – Find the GUID</title>
		<link>http://feedproxy.google.com/~r/snowland/~3/NOZ5v3uf5Vw/</link>
		<comments>http://www.snowland.se/2009/05/06/sccm-console-extensions-find-the-guid/#comments</comments>
		<pubDate>Wed, 06 May 2009 12:41:12 +0000</pubDate>
		<dc:creator>riro</dc:creator>
				<category><![CDATA[SCCM]]></category>
		<category><![CDATA[VBScript]]></category>
		<category><![CDATA[Console]]></category>
		<category><![CDATA[Extensions]]></category>
		<category><![CDATA[GUID]]></category>

		<guid isPermaLink="false">http://www.snowland.se/?p=278</guid>
		<description><![CDATA[I wrote some about this topic in a post a while ago&#8230; did some more scripting around this today.
This VBScript will read the AdminConsole.xml and look for NameSpaceGuid&#8217;s, when it find one it will create a subdirectory (from where it is started) with the GUID and after that it will create a XML-file within that [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote some about this topic in <a href="http://www.snowland.se/2008/05/28/sccm-console-extensions/">a post</a> a while ago&#8230; did some more scripting around this today.</p>
<p>This VBScript will read the AdminConsole.xml and look for NameSpaceGuid&#8217;s, when it find one it will create a subdirectory (from where it is started) with the GUID and after that it will create a XML-file within that directory.<br />
The XML-file then points to an VBS-file with a couple of parameters. (Look further down for an example of a nice VBScript to use)</p>
<p><strong>Tip:</strong> Backup AdminUI\XmlStorage\Extensions\Actions before you start to play around with this.</p>
<pre class="brush: vb;">
Const cVbsFile = &quot;testExtension.vbs&quot; ' The file to call on right-click
Const cHKEY_LOCAL_MACHINE = &amp;H80000002
Set oReg=GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\.\root\default:StdRegProv&quot;)
oReg.GetStringValue cHKEY_LOCAL_MACHINE,&quot;SOFTWARE\Microsoft\ConfigMgr\Setup&quot;, &quot;UI Installation Directory&quot;, sSccmPath
Set oReg = Nothing

sSourcePath = Replace(WScript.ScriptFullName, WScript.ScriptName, &quot;&quot;)

Set oShell = CreateObject(&quot;WScript.Shell&quot;)
Set oFso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set oFile = oFso.OpenTextFile(sSccmPath &amp; &quot;\XmlStorage\ConsoleRoot\AdminConsole.xml&quot;, 1)
Do While oFile.AtEndOfStream &lt;&gt; True
    sText = Trim(uCase(oFile.ReadLine))
    If InStr(sText, &quot;NAMESPACEGUID=&quot;) Then

		' Read the GUID from NameSpaceGuid param
		sGuid = sText
		sGuid = Right(sGuid, Len(sGuid) - InStr(sGuid, &quot;NAMESPACEGUID=&quot;) - 14)
		sGuid = Left(sGuid, InStr(sGuid, &quot;&quot;&quot;&quot;)-1)

		if not oFso.FolderExists(sSourcePath &amp; sGuid) Then
			WScript.Echo sSourcePath &amp; sGuid

			' Create the GUID folder
			oFso.CreateFolder sSourcePath &amp; sGuid

			' Create the XML-file with current Guid, Name &amp; ResourceID as parameter to source-VBScript
			Set oXmlFile = oFso.CreateTextFile(oShell.ExpandEnvironmentStrings(&quot;%TEMP%\snowland-guid-locator.xml&quot;), True)
			oXmlFile.WriteLine &quot;&lt;ActionDescription Class=&quot;&quot;Executable&quot;&quot; DisplayName=&quot;&quot;GUID - &quot; &amp; sGuid &amp; &quot;&quot;&quot; MnemonicDisplayName=&quot;&quot;GUID locator&quot;&quot; Description=&quot;&quot;snowland.se GUID locator&quot;&quot;&gt;&quot;
			oXmlFile.WriteLine &quot;&lt;Executable&gt;&quot;
			oXmlFile.WriteLine &quot;&lt;FilePath&gt;&quot; &amp; sSourcePath &amp; cVbsFile &amp; &quot;&lt;/FilePath&gt;&quot;
			oXmlFile.WriteLine &quot;&lt;Parameters&gt;&quot; &amp; sGuid &amp; &quot; ##Sub:Name## ##Sub:ResourceID## ##SUB:ItemName## ##SUB:NetworkOSPath## ##SUB:value##&lt;/Parameters&gt;&quot;
			oXmlFile.WriteLine &quot;&lt;/Executable&gt;&quot;
			oXmlFile.WriteLine &quot;&lt;/ActionDescription&gt;&quot;
			oXmlFile.Close

			' Copy XML to GUID-directory with name &quot;snowland-GUID.xml&quot; as name
			oFso.CopyFile oShell.ExpandEnvironmentStrings(&quot;%TEMP%\snowland-guid-locator.xml&quot;), sSourcePath &amp; sGuid &amp; &quot;\snowland-&quot; &amp; sGuid &amp; &quot;.xml&quot;
		End if
	End If
Loop
oFile.Close
</pre>
<p>So&#8230; when you restarted the console you will se GUID&#8217;s showing up. To get those GUID&#8217;s to the clipboard use a <strong>testExtension.vbs</strong> like this</p>
<pre class="brush: vb;">
Set oFso = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set oShell = CreateObject(&quot;WScript.Shell&quot;)

' Create a temporary file
Set oFile = oFso.CreateTextFile(oShell.ExpandEnvironmentStrings(&quot;%TEMP%\sccmXmlReader.tmp&quot;), True)

' Loop thru arguments
For i = 0 to WScript.Arguments.Count-1
	sOut = sOut &amp; Wscript.Arguments(i) &amp; VbCrLf
	' Write to file
	oFile.WriteLine Wscript.Arguments(i)
Next
' Close the file
oFile.Close

' Type the file to the clipboard
oShell.Run oShell.ExpandEnvironmentStrings(&quot;%SystemRoot%\System32\cmd.exe /c type %TEMP%\sccmXmlReader.tmp | %SystemRoot%\System32\clip.exe&quot;), 1, True

' Delete the file
oFso.DeleteFile oShell.ExpandEnvironmentStrings(&quot;%TEMP%\sccmXmlReader.tmp&quot;), True

' Send a message to the user
MsgBox sOut, vbOKOnly, &quot;Copied to clipboard&quot;
</pre>
<p>Will try to do a post about how to find the SUB&#8217;s&#8230;</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/snowland?a=NOZ5v3uf5Vw:7u91wXhm4mE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/snowland?i=NOZ5v3uf5Vw:7u91wXhm4mE:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=NOZ5v3uf5Vw:7u91wXhm4mE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/snowland?i=NOZ5v3uf5Vw:7u91wXhm4mE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=NOZ5v3uf5Vw:7u91wXhm4mE:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/snowland?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/snowland?a=NOZ5v3uf5Vw:7u91wXhm4mE:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/snowland?i=NOZ5v3uf5Vw:7u91wXhm4mE:D7DqB2pKExk" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/snowland/~4/NOZ5v3uf5Vw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.snowland.se/2009/05/06/sccm-console-extensions-find-the-guid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.snowland.se/2009/05/06/sccm-console-extensions-find-the-guid/</feedburner:origLink></item>
	</channel>
</rss>
