<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://wmug.co.uk/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Lionel's configmgr blog : CCM_UpdateStatus</title><link>http://wmug.co.uk/wmug/b/orientalcrusher/archive/tags/CCM_5F00_UpdateStatus/default.aspx</link><description>Tags: CCM_UpdateStatus</description><dc:language>en-US</dc:language><generator>6.x Production</generator><item><title>Checking Patch Statuses through WMI</title><link>http://wmug.co.uk/wmug/b/orientalcrusher/archive/2011/05/02/checking-patch-statuses-through-wmi.aspx</link><pubDate>Mon, 02 May 2011 09:58:00 GMT</pubDate><guid isPermaLink="false">10c3822e-6a55-4a1a-8d52-5181c69a645b:4112</guid><dc:creator>Lionel</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://wmug.co.uk/wmug/b/orientalcrusher/rsscomments.aspx?WeblogPostID=4112</wfw:commentRss><comments>http://wmug.co.uk/wmug/b/orientalcrusher/archive/2011/05/02/checking-patch-statuses-through-wmi.aspx#comments</comments><description>&lt;p&gt;Normally the optimal and quickest way to determine if a patch has definitely been installed on a system is to use WMI. That&amp;#39;s where the SCCM client primarily gets its information from to report back to its parent. There are several ways you can go about but the ways i&amp;#39;ve found to be ideal for me are described below:&lt;/p&gt;
&lt;p&gt;Through the command prompt:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;On the system which you wish to query, open up command prompt&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;Run &amp;quot;Wmic /namespace:\\root\ccm\softwareupdates\updatesstore path CCM_UpdateStatus get status, Article, Bulletin, UniqueId&amp;quot; &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;This will show you ALL updates on the particular system. I&amp;#39;ve added additional information for reference but you can always play around with what you wish to see returned.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;This is best for an overview and you can quickly do a &lt;em&gt;find or filter &lt;/em&gt;to determine a patch status if you pipe it to a txt file. &lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Through the Wbemtest User Interface:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;Start &amp;quot;WBEMTEST&amp;quot; from a run prompt &lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;Connect to the namespace &amp;quot;\\&amp;lt;computername&amp;gt;\root\ccm\softwareupdates\updatesstore&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;Select the Query button and using WQL, create a statement that suits your needs. Some examples are below:&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&amp;nbsp; 
&lt;ul&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;Searching for a Missing Patch that is for Web Components would be:&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;&amp;nbsp;select * from ccm_updatestatus where status = &amp;quot;missing&amp;quot; and title like &amp;quot;%web%&amp;quot;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;Searching for all installed patches would be:&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div style="PADDING-LEFT:30px;"&gt;select * from ccm_updatestatus where status = &amp;#39;installed&amp;#39;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;&amp;nbsp;&lt;img height="375" width="462" src="http://wmug.co.uk/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-00-07-metablogapi/wmi.JPG" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;Depending on your requirements / needs, have fun! Wbemtest is very useful for quick references to WMI to determine patch statuses whenever you are suspecting the integrity of data received from SCCM due to possible sync issues. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://wmug.co.uk/aggbug.aspx?PostID=4112&amp;AppID=114&amp;AppType=1&amp;ContentType=0" width="1" height="1"&gt;</description><category domain="http://wmug.co.uk/wmug/b/orientalcrusher/archive/tags/CCM_5F00_UpdateStatus/default.aspx">CCM_UpdateStatus</category><category domain="http://wmug.co.uk/wmug/b/orientalcrusher/archive/tags/sccm+2007/default.aspx">sccm 2007</category><category domain="http://wmug.co.uk/wmug/b/orientalcrusher/archive/tags/Software+Updates/default.aspx">Software Updates</category><category domain="http://wmug.co.uk/wmug/b/orientalcrusher/archive/tags/Wbemtest/default.aspx">Wbemtest</category><category domain="http://wmug.co.uk/wmug/b/orientalcrusher/archive/tags/wmi/default.aspx">wmi</category><category domain="http://wmug.co.uk/wmug/b/orientalcrusher/archive/tags/wql/default.aspx">wql</category></item></channel></rss>