<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://myitforum.com/cs2/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Number2 Blog - myITforum</title><subtitle type="html">&lt;a href="http://fusion.google.com/add?feedurl=http%3A//myitforum.com/cs2/blogs/jnelson/rss.aspx"&gt;&lt;img src="http://buttons.googlesyndication.com/fusion/add.gif" width="104" height="17" border="0" alt="Add to Google" /&gt;&lt;/a&gt;</subtitle><id>http://myitforum.com/cs2/blogs/jnelson/atom.aspx</id><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/default.aspx" /><link rel="self" type="application/atom+xml" href="http://myitforum.com/cs2/blogs/jnelson/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.20917.1142">Community Server</generator><updated>2008-01-11T01:14:00Z</updated><entry><title>UPDATE - ConfigMgr 2007 - Dynamic SQL to show missing hardware inventory </title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2009/03/13/132852.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2009/03/13/132852.aspx</id><published>2009-03-13T18:05:00Z</published><updated>2009-03-13T18:05:00Z</updated><content type="html">UPDATE: This is an update to yesterday&amp;#39;s post which used dynamic SQL to show missing hardware inventory in ConfigMgr. I noticed that we had like 95+ classes, but many of them had NO records for any clients whatsoever. To me, that indicates perhaps a class that doesn&amp;#39;t have anything turned on for it and is thus a waste of space to have in the query. So I quickly wrote a little more to first find only those classes which have at least one row and only use those classes in the list of hardware...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2009/03/13/132852.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=132852" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="configmgr" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/configmgr/default.aspx" /><category term="Dynamic SQL" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Dynamic+SQL/default.aspx" /><category term="hardware inventory" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/hardware+inventory/default.aspx" /><category term="v_GroupMap" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/v_5F00_GroupMap/default.aspx" /></entry><entry><title>M@d Skillz - ConfigMgr 2007 - Dynamic SQL to show missing hardware inventory</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2009/03/12/132833.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2009/03/12/132833.aspx</id><published>2009-03-13T00:23:00Z</published><updated>2009-03-13T00:23:00Z</updated><content type="html">My fellow ConfigMgr MVP Torsten Meringer hit me up with an interesting question this morning. He wanted to identify those machines that are missing hardware inventory. He mentioned the v_GroupMap view that shows you all of the hardware inventory classes (which I shamefully admit I didn&amp;#39;t know about until he pointed it out) and manually wrote a query to show which classes are missing from which machines. This is a pretty good idea, actually...I&amp;#39;ve done the same thing, only by writing a few...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2009/03/12/132833.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=132833" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="system center configuration manager" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/system+center+configuration+manager/default.aspx" /><category term="configmgr" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/configmgr/default.aspx" /><category term="Dynamic SQL" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Dynamic+SQL/default.aspx" /><category term="hardware inventory" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/hardware+inventory/default.aspx" /><category term="v_GroupMap" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/v_5F00_GroupMap/default.aspx" /></entry><entry><title>SMS/ConfigMgr - Create status MIFs using batch script with no dependencies</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2009/01/13/127487.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2009/01/13/127487.aspx</id><published>2009-01-13T20:39:00Z</published><updated>2009-01-13T20:39:00Z</updated><content type="html">In a past position, I&amp;#39;ve tried to use a utility from the Back Office Resource Kit called ismif32.exe to create status MIFs for those programs that aren&amp;#39;t MSI-based or don&amp;#39;t have the ability to create status mifs. The problem I&amp;#39;ve had is that it just didn&amp;#39;t always work. Usually there was some error about a DLL missing or some entry point not found or some such nonsense and I didn&amp;#39;t have the luxury of changing anything on the clients to get it to work. So, I did what any self...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2009/01/13/127487.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=127487" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="shell scripting" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/shell+scripting/default.aspx" /><category term="batch scripting" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/batch+scripting/default.aspx" /><category term="mif" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/mif/default.aspx" /><category term="status mif" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/status+mif/default.aspx" /></entry><entry><title>Digital Decor - Digital Pocket Viewer - How to get it to work (DPCI: 056-13-0705) (ASIN: B001GN416O) (Catalog #: 11018416)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/12/27/126075.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/12/27/126075.aspx</id><published>2008-12-27T17:39:00Z</published><updated>2008-12-27T17:39:00Z</updated><content type="html">OVERVIEW So, it&amp;#39;s Christmas time and you&amp;#39;ve either just received or just given the perfect $20 gift, a digital pocket viewer like the one from Digital Decor that you can find at Target DPCI: 056-13-0705 ASIN: B001GN416O Catalog #: 11018416 Just so you know we&amp;#39;re talking about the same thing, here are some of the specs and pictures: Style and color assortment may vary Digital Photo Frame 1MB Memory Storage Capacity Supports JPEG, BMP Resolution: 128x128 Operating Requirements: Windows...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/12/27/126075.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=126075" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="digital decor" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/digital+decor/default.aspx" /><category term="digital pocket viewer" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/digital+pocket+viewer/default.aspx" /></entry><entry><title>Calculate a client's subnet mask when defining subnet boundaries (using BITWISE AND "&amp;" in SQL)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/29/123627.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/29/123627.aspx</id><published>2008-10-29T19:36:00Z</published><updated>2008-10-29T19:36:00Z</updated><content type="html">OVERVIEW I was recently pointed to Jeff Gilbert&amp;#39;s blog where he has an article on determining a client&amp;#39;s subnet mask and using them in subnet boundaries. http://myitforum.com/cs2/blogs/jgilbert/archive/2007/08/21/how-to-determine-a-client-s-subnet-mask-when-defining-ip-subnet-boundaries.aspx Now, in that article is a VBScript script to calculate the subnet. It got me thinking...I usually just lay down some M@d SQL to do the same thing. Perhaps someone would want to see that. So here it is...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/29/123627.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=123627" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SQL" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SQL/default.aspx" /><category term="bitwise and" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/bitwise+and/default.aspx" /><category term="subnet boundaries" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/subnet+boundaries/default.aspx" /><category term="subnet" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/subnet/default.aspx" /></entry><entry><title>WQL - Using the bracket wildcard to match a range of version numbers (MNSCUG)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/17/123258.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/17/123258.aspx</id><published>2008-10-17T06:23:00Z</published><updated>2008-10-17T06:23:00Z</updated><content type="html">At the Minneapolis area System Center User Group meeting last night, I mentioned the notion of using LIKE and the bracket wildcard [] to match a range of version numbers (which incidentally works for versions, IP Addresses, IP Subnets, etc.) instead of using greater than or less than because of the way WQL/SQL does a dictionary sort, not a numerical sort. I mentioned that I had written an article describing how to do that, but that it was embedded in a broader article on something else. In case anyone&amp;#39;s...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/17/123258.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=123258" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SQL" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SQL/default.aspx" /><category term="wildcard" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/wildcard/default.aspx" /><category term="WQL" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/WQL/default.aspx" /><category term="bracket wildcard" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/bracket+wildcard/default.aspx" /></entry><entry><title>SMS 2003 - SQL to compare software on two systems</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/15/123216.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/15/123216.aspx</id><published>2008-10-16T03:34:00Z</published><updated>2008-10-16T03:34:00Z</updated><content type="html">OVERVIEW You want to look at the difference in software between 2 computers, but you either don&amp;#39;t have Desired Configuration Management (DCM) implemented, or you&amp;#39;d rather just compare the software without creating a DCM rule. The answer is actually fairly simple, in this article I&amp;#39;ll lay out how to do just that. I&amp;#39;ll use the software in Add/Remove Programs (v_Add_Remove_Programs) and software inventory (v_GS_SoftwareFile) as examples. These principles can be used to compare pretty...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/15/123216.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=123216" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="coalesce" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/coalesce/default.aspx" /><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="web report" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+report/default.aspx" /><category term="derived table" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/derived+table/default.aspx" /><category term="Compare Software" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Compare+Software/default.aspx" /></entry><entry><title>SMS 2003 - What do those C054 columns mean in reports? (Localized Name Lookup)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/02/122883.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/02/122883.aspx</id><published>2008-10-02T16:39:00Z</published><updated>2008-10-02T16:39:00Z</updated><content type="html">If you look at certain pre-canned reports that come with SMS 2003, you&amp;#39;ll notice some of them have wierd column names like C054, but show up in the report output as &amp;quot;Operating System&amp;quot;. The reason behind this is that SMS was designed as a multi-language application that should be able to easily change its output based on the different languages of the users. One of the first things you&amp;#39;re going to want to know is what are all those C054, C056, etc. columns (how high does it go) and...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/10/02/122883.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=122883" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="web reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+reports/default.aspx" /><category term="v_LocalizedNameLookup" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/v_5F00_LocalizedNameLookup/default.aspx" /></entry><entry><title>SMS 2003 - Query to pull logged on user records from all sources</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/28/121812.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/28/121812.aspx</id><published>2008-08-28T19:31:00Z</published><updated>2008-08-28T19:31:00Z</updated><content type="html">I was trolling the forums lately on MyITForm.com and was reading some conversations about logged on user records. It made me think of all the sources where you could get that information. Off the top of my head there&amp;#39;s V_GS_COMPUTER_SYSTEM.username0 V_HS_COMPUTER_SYSTEM.username0 V_GS_SYSTEM_CONSOLE_USER.SystemConsoleUser0 (SMS 2003 SP3 Asset Intelligence stuff) V_HS_SYSTEM_CONSOLE_USER.SystemConsoleUser0 V_R_SYSTEM.user_domain0\user_name0 If you unioned all of the records from those sources...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/28/121812.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=121812" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SQL" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SQL/default.aspx" /><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="CTE" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/CTE/default.aspx" /></entry><entry><title>SQL/WQL Tip - How to escape special SQL/WQL wildcard characters like % _ </title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/27/121684.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/27/121684.aspx</id><published>2008-08-27T07:31:00Z</published><updated>2008-08-27T07:31:00Z</updated><content type="html">THE PROBLEM You&amp;#39;ve written a SQL query or a WQL query (like an SMS/CM collection query) and you need to look for a string that has a percent % or underscore _ in it. The problem is, those characters are special wildcard characters to SQL/WQL. So how do you &amp;quot;escape&amp;quot; those characters and write a query to look for all records that have a percent sign or an underscore in them? THE SOLUTIONS SOLUTION 1 (for SQL and WQL) Use square brackets [] to signify you&amp;#39;re looking for that specific...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/27/121684.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=121684" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SQL" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SQL/default.aspx" /><category term="wildcard" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/wildcard/default.aspx" /><category term="WQL" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/WQL/default.aspx" /><category term="escape characters" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/escape+characters/default.aspx" /></entry><entry><title>SMS/SCCM vs Promisec Spectator - Part 2 of 2 (The rebuttal)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/22/121535.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/22/121535.aspx</id><published>2008-08-22T15:12:00Z</published><updated>2008-08-22T15:12:00Z</updated><content type="html">If you read my previous post on the blood-boiling comparison between SMS/SCCM &amp;amp; Promisec Spectator, you&amp;#39;ve likely developed all kinds of responses in your head about how they&amp;#39;re so wrong on SMS/SCCM. I couldn&amp;#39;t believe it so I just had to respond. THE REBUTTAL I&amp;#39;d like to address their points to make sure we&amp;#39;re being evaluated in the proper light, so the tone of this is simply an honest rebuttal of their points to them. This is delivered with no disrespect or malice, but with...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/22/121535.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=121535" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SCCM" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SCCM/default.aspx" /><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="promisec" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/promisec/default.aspx" /></entry><entry><title>SMS/SCCM vs Promisec Spectator - Part 1 of 2 (Their Comparison)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/22/121534.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/22/121534.aspx</id><published>2008-08-22T14:55:00Z</published><updated>2008-08-22T14:55:00Z</updated><content type="html">If you&amp;#39;re an SMS or SCCM guy and you want to get your blood boiling, just look at this writeup the people at Promisec created that compares SMS to their Promisec Spectator. I mean no disrespect to the people at Promisec, but man...this thing couldn&amp;#39;t be more wrong. Either they don&amp;#39;t really know what SMS does, or they&amp;#39;re comparing it to an alpha release of SMS 1.0, or they&amp;#39;ve had a temporary lapse in ethics in an effort to get a sale. http://www.myitforum.com/absolutefs/?f=17&amp;amp;fid...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/22/121534.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=121534" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SCCM" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SCCM/default.aspx" /><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="promisec" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/promisec/default.aspx" /></entry><entry><title>SQL 2005 Security - Revoke EXECUTE rights for PUBLIC on (potentially) unsafe extended stored procedures</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/16/121273.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/16/121273.aspx</id><published>2008-08-16T06:15:00Z</published><updated>2008-08-16T06:15:00Z</updated><content type="html">Where I work, we have an amazing crew of security architects and analysts who have decades of experience in all things security. Sure, at times they may seem paranoid, but that&amp;#39;s just because they&amp;#39;ve seen bad things that you and I couldn&amp;#39;t even dream up. Recently I&amp;#39;ve been going through our security baseline to verify we&amp;#39;re being as secure as possible with SQL (on the servers our team supports) and I&amp;#39;d like to share some code that will help identify any extended stored procedures...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/16/121273.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=121273" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="sql 2005" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sql+2005/default.aspx" /><category term="sql rights" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sql+rights/default.aspx" /><category term="extended stored procedures" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/extended+stored+procedures/default.aspx" /></entry><entry><title>SMS/SCCM &amp; Batch Files - Important notes on running .BAT files from UNC in SMS/SCCM</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/15/121348.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/15/121348.aspx</id><published>2008-08-15T21:31:00Z</published><updated>2008-08-15T21:31:00Z</updated><content type="html">THE PROBLEM When you run a .BAT file from a UNC path, the first thing you might notice is the warning about &amp;quot;UNC paths are not supported. Defaulting to the Windows Directory&amp;quot; All this really means is that the current working folder is your Windows folder, and not the UNC path to where the script is sitting. The problem with this is that any commands inside your .bat file that try to call or reference a file that you know is in the same UNC path as the .bat file will come up empty because...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/08/15/121348.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=121348" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SCCM" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SCCM/default.aspx" /><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="shell scripting" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/shell+scripting/default.aspx" /><category term="batch scripting" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/batch+scripting/default.aspx" /><category term="UNC" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/UNC/default.aspx" /></entry><entry><title>Troubleshooting 301 - Finding a needle (bad program) in a haystack (list of 150 programs) in 7 tries.</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/07/16/120023.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/07/16/120023.aspx</id><published>2008-07-16T20:06:00Z</published><updated>2008-07-16T20:06:00Z</updated><content type="html">THE PROBLEM Stay with me on this one, I think it&amp;#39;s a concept that every techie should understand and use at some point in their careers. The problem goes like this: There&amp;#39;s one program somewhere on your machine that&amp;#39;s conflicting with another and causing CPU spikes and bringing the computer to a standstill, but you don&amp;#39;t know which one. The problem is, you have 150 items in your Add/Remove Programs and you&amp;#39;ve been tasked with finding out which one is the problem. Now, many people...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/07/16/120023.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=120023" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="Troubleshooting" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Troubleshooting/default.aspx" /><category term="Binary Search" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Binary+Search/default.aspx" /></entry><entry><title>SMS Web Report (SQL 2005+) - Show SMS program execution chaining hierarchy visually using CTE (Common Table Expressions) in SQL 2005+</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/06/19/118724.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/06/19/118724.aspx</id><published>2008-06-20T00:10:00Z</published><updated>2008-06-20T00:10:00Z</updated><content type="html">In response to a request on the forums, here&amp;#39;s a SQL query that uses common table expressions (CTE) to visually return the program execution chain hierarchy. (something like this) 00000000 - ProgramA 00000001 - ProgramB 0000004 - ProgramE 00000002 - ProgramC 00000003 - ProgramD Here you can see that ProgramE is dependent upon ProgramB, which is dependent upon Program A. ProgramC&amp;amp;D have no dependents. NOTE: This only works in SQL 2005 or higher since CTE was introduced with 2005. WITH ProgramHierarchy...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/06/19/118724.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=118724" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="sql 2005" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sql+2005/default.aspx" /><category term="web reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+reports/default.aspx" /><category term="Program Chaining" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Program+Chaining/default.aspx" /><category term="CTE" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/CTE/default.aspx" /><category term="Common Table Expressions" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Common+Table+Expressions/default.aspx" /></entry><entry><title>SMS 2003 - Verify WMI Stability Backport on Windows XP/Server 2003 with this report SQL (deploy to them with this collection query WQL)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/06/04/118136.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/06/04/118136.aspx</id><published>2008-06-05T01:05:00Z</published><updated>2008-06-05T01:05:00Z</updated><content type="html">BACKGROUND (click HERE to skip to the summary) I&amp;#39;ve been looking into our client health a lot deeper recently and something that I keep coming back to is how fragile WMI seems. After some great conversations at MMS with some really bright folks, I started really trying to fix those unhealthy clients. I got to reading a blog that pointed to a blog what pointed to some Microsoft articles which gave me some good information. I&amp;#39;d like to share some of that information because it showed us that...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/06/04/118136.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=118136" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SCCM" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SCCM/default.aspx" /><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="web reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+reports/default.aspx" /><category term="WMI" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/WMI/default.aspx" /></entry><entry><title>SCCM 2007 - SCCM Permissions Matrix</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/30/117883.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/30/117883.aspx</id><published>2008-05-30T17:38:00Z</published><updated>2008-05-30T17:38:00Z</updated><content type="html">This SQL query pulls all SCCM permissions for each user and displays them in a matrix. Put this into an SCCM Web report. This should work for SQL 2000, SQL 2005 and higher. SELECT UCP.UserName, SO.ObjectName, MAX(CASE UCP.PermissionName WHEN &amp;#39;Administer&amp;#39; THEN &amp;#39;X&amp;#39; END) as [Administer], MAX(CASE UCP.PermissionName WHEN &amp;#39;Advertise&amp;#39; THEN &amp;#39;X&amp;#39; END) as [Advertise], MAX(CASE UCP.PermissionName WHEN &amp;#39;Create&amp;#39; THEN &amp;#39;X&amp;#39; END) as [Create], MAX(CASE UCP.PermissionName...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/30/117883.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=117883" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SCCM" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SCCM/default.aspx" /><category term="web report" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+report/default.aspx" /><category term="sql 2005" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sql+2005/default.aspx" /><category term="SQL 2000" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SQL+2000/default.aspx" /><category term="permissions" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/permissions/default.aspx" /><category term="system center configuration manager" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/system+center+configuration+manager/default.aspx" /></entry><entry><title>SMS 2003 - SMS Permissions Matrix</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/30/117881.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/30/117881.aspx</id><published>2008-05-30T17:32:00Z</published><updated>2008-05-30T17:32:00Z</updated><content type="html">This SQL query pulls all SMS permissions for each user and displays them in a matrix. Put this into an SMS Web report. This should work for SQL 2000, SQL 2005 and higher. SELECT UCP.UserName, SO.ObjectName, MAX(CASE UCP.PermissionName WHEN &amp;#39;Administer&amp;#39; THEN &amp;#39;X&amp;#39; END) as [Administer], MAX(CASE UCP.PermissionName WHEN &amp;#39;Advertise&amp;#39; THEN &amp;#39;X&amp;#39; END) as [Advertise], MAX(CASE UCP.PermissionName WHEN &amp;#39;Create&amp;#39; THEN &amp;#39;X&amp;#39; END) as [Create], MAX(CASE UCP.PermissionName...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/30/117881.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=117881" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="web report" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+report/default.aspx" /><category term="sql 2005" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sql+2005/default.aspx" /><category term="SQL 2000" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SQL+2000/default.aspx" /><category term="permissions" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/permissions/default.aspx" /></entry><entry><title>M@d Skillz - SMS Status Messages - ASP to show all MessageIDs and their meanings</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/21/117428.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/21/117428.aspx</id><published>2008-05-21T05:23:00Z</published><updated>2008-05-21T05:23:00Z</updated><content type="html">THE PROBLEM So I&amp;#39;m digging through the SMS status message views (v_StatusMessage, v_StatMsgAttributes, v_StatMsgInsStrings, v_StatMsgModuleNames) to find some pretty specific data to do my job, but I was having trouble understanding what all the messageIDs mean. First, I did what any good techie does and did a Google search to see if there&amp;#39;s a list of all MessageIDs and their meanings. You come across what seems like the perfect Excel spreadsheet from Microsoft showing exactly what you need...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/05/21/117428.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=117428" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS Web Reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+Web+Reports/default.aspx" /><category term="web report" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+report/default.aspx" /><category term="web reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+reports/default.aspx" /><category term="sms report" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sms+report/default.aspx" /><category term="v_StatMsgAttributes" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/v_5F00_StatMsgAttributes/default.aspx" /><category term="v_StatusMessage" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/v_5F00_StatusMessage/default.aspx" /><category term="Status Messages" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Status+Messages/default.aspx" /><category term="v_StatMsgInsStrings" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/v_5F00_StatMsgInsStrings/default.aspx" /><category term="ASP" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/ASP/default.aspx" /></entry><entry><title>M@d Skillz - Use data outside the SMS DB in your SMS Web Reports</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/04/04/114622.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/04/04/114622.aspx</id><published>2008-04-04T05:32:00Z</published><updated>2008-04-04T05:32:00Z</updated><content type="html">OVERVIEW (note: this is written with SMS 2003 &amp;amp; SQL 2005 in mind because that&amp;#39;s the environment I&amp;#39;m in right now, but I believe if the equivalent work was done in SCCM or in SQL 2000, the outcome would be the same...just a hunch) If you&amp;#39;re like any normal SMS administrator, you&amp;#39;ve played around with SMS web reports and started getting some pretty useful data out of your SMS database. The addition of web reports to SMS was quite a great addition because it really made rolling your...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/04/04/114622.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=114622" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="web reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+reports/default.aspx" /><category term="ANSI_NULLS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/ANSI_5F00_NULLS/default.aspx" /><category term="ANSI_WARNINGS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/ANSI_5F00_WARNINGS/default.aspx" /><category term="External data" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/External+data/default.aspx" /><category term="Linked Server" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Linked+Server/default.aspx" /><category term="Heterogeneous queries" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Heterogeneous+queries/default.aspx" /><category term="Distributed Queries" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Distributed+Queries/default.aspx" /><category term="stored procedures" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/stored+procedures/default.aspx" /></entry><entry><title>VBScript - (UPDATED) Script to export SMS Web report results to an Excel spreadsheet</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/04/02/114527.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/04/02/114527.aspx</id><published>2008-04-02T07:06:00Z</published><updated>2008-04-02T07:06:00Z</updated><content type="html">BACKGROUND In a previous post I created a VBScript in response to a discussion in the forums where somebody wanted to automatically run a report once per month and was looking for ideas. I wrote a first draft of the script and it was OK. Go check out that post first if you haven&amp;#39;t already. I&amp;#39;ve since updated it to handle extended characters like ® and ™ by using ADODB.Stream...but as long as I had the script open, I decided now was a good time to add XLS output (not just CSV) so we can have...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/04/02/114527.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=114527" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="SMS Web Reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+Web+Reports/default.aspx" /><category term="vbscript" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/vbscript/default.aspx" /><category term="CSV" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/CSV/default.aspx" /><category term="Export" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Export/default.aspx" /><category term="Microsoft.XmlHttp" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Microsoft.XmlHttp/default.aspx" /><category term="Excel.Application" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Excel.Application/default.aspx" /><category term="ADODB" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/ADODB/default.aspx" /><category term="XLS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/XLS/default.aspx" /><category term="ADODB.Stream" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/ADODB.Stream/default.aspx" /><category term="Excel" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Excel/default.aspx" /></entry><entry><title>SMS 2003 Performance - The performance benefits of an x64 DP in a busy SMS 2003 hierarchy</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/27/114306.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/27/114306.aspx</id><published>2008-03-27T14:45:00Z</published><updated>2008-03-27T14:45:00Z</updated><content type="html">QUICK BACKGROUND Although x64 is officially unsupported in SMS 2003 for any site components, the reality is that you CAN put the Distribution Point role on an x64 server in SMS 2003. Now, I&amp;#39;m sure like us some of you have tried but get all kinds of 500 level errors out of IIS. The problem is that the SMSFILEISAPI filter for SMS is 32-bit but ASP.NET is in 64-bit mode. When the DP role is installed by default, that ISAPI filter seems to get put into the SYSTEM32\INETSRV folder which on an x64...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/27/114306.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=114306" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="perfmon" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/perfmon/default.aspx" /><category term="x64" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/x64/default.aspx" /><category term="Distribution Points" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Distribution+Points/default.aspx" /><category term="Windows" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Windows/default.aspx" /></entry><entry><title>Perfmon - Common counters to find bottlenecks on a server with SQL (SMS/SCCM/SCOM)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/26/114267.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/26/114267.aspx</id><published>2008-03-26T18:10:00Z</published><updated>2008-03-26T18:10:00Z</updated><content type="html">I&amp;#39;m seriously busy right now at my day job so I don&amp;#39;t have time to get cr@zy with the det@ilz, but I would like to quickly post the Perfmon counters I use if I want to determine if a server has a processor, memory, network or disk bottleneck. Performance monitoring is kindof a voodoo arts kinda thing so everyone has their own special pixie dust counter that they use to look for problems. Because of this you may find that I&amp;#39;m missing a counter you would be using or I&amp;#39;ve got some counters...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/26/114267.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=114267" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="performance monitoring" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/performance+monitoring/default.aspx" /><category term="perfmon" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/perfmon/default.aspx" /></entry><entry><title>WinBatch - Script to add boundaries to SMS</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/17/113762.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/17/113762.aspx</id><published>2008-03-17T14:56:00Z</published><updated>2008-03-17T14:56:00Z</updated><content type="html">This is a VERY old script I wrote in 2000 for SMS 2.0, that I&amp;#39;ve used for SMS 2003 too. I have no idea how well it works anymore, but I know it worked for SMS 2.0 and SMS 2003 RTM. The purpose of it is to add a range of boundaries to SMS without having to go through them by hand one-by-one. Back in 2000, I was heavy into WinBatch and was teaching a WinBatch class so it was easy to whip something up that walked through the SMS console clicking buttons on behalf of the user. I&amp;#39;m sure I&amp;#39;d...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/17/113762.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=113762" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="Winbatch" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Winbatch/default.aspx" /><category term="sms 2.0" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sms+2.0/default.aspx" /><category term="Boundaries" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Boundaries/default.aspx" /></entry><entry><title>VBScript - Script to export SMS Web report results to a CSV file</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/10/113587.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/10/113587.aspx</id><published>2008-03-10T18:01:00Z</published><updated>2008-03-10T18:01:00Z</updated><content type="html">THE PROBLEM You want to automatically run a set of SMS Web reports, but you don&amp;#39;t have something like SQL Server Reporting Services installed (which would give you the ability to have people subscribe to reports and have them delivered a bunch of ways). So, you need the ability to run SMS Web reports unattended and save the results somewhere. THE SOLUTION (Get the full code here--&amp;gt; ExportSMSReport.txt &amp;lt;-- rename to .VBS) (UPDATED 3/24/2008 Made OpenTextFile support unicode so special characters...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/03/10/113587.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=113587" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS Web Reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+Web+Reports/default.aspx" /><category term="vbscript" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/vbscript/default.aspx" /><category term="CSV" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/CSV/default.aspx" /><category term="Export" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Export/default.aspx" /><category term="Microsoft.XmlHttp" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Microsoft.XmlHttp/default.aspx" /></entry><entry><title>Windows Shell Script - Better way to run CMD as System</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/02/15/112673.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/02/15/112673.aspx</id><published>2008-02-15T17:00:00Z</published><updated>2008-02-15T17:00:00Z</updated><content type="html">Most people are familiar with using AT to open a command prompt as SYSTEM (LOCAL SYSTEM) at 11:05 /interactive cmd.exe This will open a command prompt as system (or actually, as whatever account the task scheduler service is running under) This works OK but trying to script it is a complicated mess, plus you have to wait a minute or so for the window to pop up...and if the task scheduler service is running as another user then you&amp;#39;re not really getting your prompt to run as SYSTEM. So, a better...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/02/15/112673.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=112673" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="shell scripting" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/shell+scripting/default.aspx" /><category term="command prompt" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/command+prompt/default.aspx" /><category term="LOCAL SYSTEM" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/LOCAL+SYSTEM/default.aspx" /><category term="CMD" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/CMD/default.aspx" /><category term="SC" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SC/default.aspx" /><category term="SYSTEM" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SYSTEM/default.aspx" /></entry><entry><title>SMS 2003 Database - Where can I find things?</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/22/111757.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/22/111757.aspx</id><published>2008-01-23T05:57:00Z</published><updated>2008-01-23T05:57:00Z</updated><content type="html">Here is a list of common items that people want to query for and some locations they&amp;#39;re found in the SMS database I&amp;#39;m basing this on SMS 2003, we have SP3+ Depending on your setup, you may not have some of these views in your environment or they may be empty. You may also find other places where these items exist. This is not indended to be an exhaustive list, just a quick reference of items that most people want to see in a web report at some point and the places you can find these items...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/22/111757.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=111757" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="SMS Web Reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+Web+Reports/default.aspx" /><category term="web reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+reports/default.aspx" /><category term="views" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/views/default.aspx" /></entry><entry><title>M@d Skillz - SMS Web Reports - Passing a delimited list to SMS Web Reports like a table - (also convert list to rows in SQL)</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/16/111355.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/16/111355.aspx</id><published>2008-01-16T11:25:00Z</published><updated>2008-01-16T11:25:00Z</updated><content type="html">BACKGROUND Pass multiple items into a single parameter? With SMS Web reports, there&amp;#39;s a lot of power in being able to pass parameters to your report query and have it substitute those values into the SQL code. It really saves you a lot of time not having to write your own front end for your SQL queries. But the way the SMS Web Report process was designed seems to be focused around passing parameters that are single strings, not multiple lines of text or delimited lists. If you pass in a really...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/16/111355.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=111355" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="SMS" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS/default.aspx" /><category term="UDF" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/UDF/default.aspx" /><category term="user defined functions" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/user+defined+functions/default.aspx" /><category term="SMS 2003 SP3" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003+SP3/default.aspx" /><category term="SMS 2003" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003/default.aspx" /><category term="SMS 2003 SP2" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+2003+SP2/default.aspx" /><category term="Microsoft Systems Management Server" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/Microsoft+Systems+Management+Server/default.aspx" /><category term="SMS Web Reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/SMS+Web+Reports/default.aspx" /><category term="web report" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+report/default.aspx" /><category term="webreport" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/webreport/default.aspx" /><category term="smsschm_users" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/smsschm_5F00_users/default.aspx" /><category term="webreport_approle" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/webreport_5F00_approle/default.aspx" /><category term="sql 2005" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sql+2005/default.aspx" /><category term="web reports" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/web+reports/default.aspx" /><category term="user defined function" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/user+defined+function/default.aspx" /><category term="sms report" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sms+report/default.aspx" /><category term="sms 2.0" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sms+2.0/default.aspx" /><category term="sms 1.2" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/sms+1.2/default.aspx" /><category term="list to rows" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/list+to+rows/default.aspx" /><category term="udf_Split" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/udf_5F00_Split/default.aspx" /><category term="delimited list" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/delimited+list/default.aspx" /><category term="list to table" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/list+to+table/default.aspx" /><category term="list to column" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/list+to+column/default.aspx" /></entry><entry><title>SQL Function - Convert Bytes to KB, MB, GB, TB, PB or EB and format the output to human readable format</title><link rel="alternate" type="text/html" href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/11/111351.aspx" /><id>http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/11/111351.aspx</id><published>2008-01-11T07:14:00Z</published><updated>2008-01-11T07:14:00Z</updated><content type="html">When you query a bunch of SMS/SCCM data that has it&amp;#39;s output in bytes or KB or MB, often times you want that expressed in a more human readable format. This function takes 2 parameters: a number, and the unit of measurement that number is in. Examples: Number : 1024 UOM : Bytes Results : 1.00 KB Number : 0.5 UOM : GB Results : 512.00 MB SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Number2 (John Nelson) - http://number2blog.com -...(&lt;a href="http://myitforum.com/cs2/blogs/jnelson/archive/2008/01/11/111351.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://myitforum.com/cs2/aggbug.aspx?PostID=111351" width="1" height="1"&gt;</content><author><name>jnelson</name><uri>http://myitforum.com/cs2/members/jnelson.aspx</uri></author><category term="user defined functions" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/user+defined+functions/default.aspx" /><category term="udf_FormatBytes" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/udf_5F00_FormatBytes/default.aspx" /><category term="byte conversion" scheme="http://myitforum.com/cs2/blogs/jnelson/archive/tags/byte+conversion/default.aspx" /></entry></feed>