<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MemoSoup &#187; methods</title>
	<atom:link href="http://www.memosoup.com/tag/methods/feed" rel="self" type="application/rss+xml" />
	<link>http://www.memosoup.com</link>
	<description>Mix of the things I always forget</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:03:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WMI: list of the methods and properties</title>
		<link>http://www.memosoup.com/20091009/wmi-list-of-the-methods-and-properties.html</link>
		<comments>http://www.memosoup.com/20091009/wmi-list-of-the-methods-and-properties.html#comments</comments>
		<pubDate>Fri, 09 Oct 2009 15:02:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[VB]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[properties]]></category>
		<category><![CDATA[wmi]]></category>

		<guid isPermaLink="false">http://www.memosoup.com/?p=200</guid>
		<description><![CDATA[strComputer = &#34;.&#34; Set objWMIService=GetObject(&#34;winmgmts:{impersonationLevel=impersonate}!\\&#34; &#38; strComputer &#38; &#34;\root\cimv2&#34;) &#160; For Each objclass in objWMIService.SubclassesOf() &#160; &#160; intCounter=0 &#160; &#160; If Left(objClass.Path_.Class,5) = &#34;Win32&#34; Then &#160; &#160; &#160; &#160; For Each Qualifier in objClass.Qualifiers_ &#160; &#160; &#160; &#160; &#160; &#160; If UCase(Trim(Qualifier.Name)) = &#34;ASSOCIATION&#34; Then &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; intCounter = [...]]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container vb default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="vb codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">strComputer = <span style="color: #800000;">&quot;.&quot;</span><br />
<span style="color: #151B8D; font-weight: bold;">Set</span> objWMIService=<span style="color: #E56717; font-weight: bold;">GetObject</span>(<span style="color: #800000;">&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot;</span> &amp; strComputer &amp; <span style="color: #800000;">&quot;\root\cimv2&quot;</span>)<br />
&nbsp;<br />
<span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #8D38C9; font-weight: bold;">Each</span> objclass <span style="color: #8D38C9; font-weight: bold;">in</span> objWMIService.SubclassesOf()<br />
&nbsp; &nbsp; intCounter=0<br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">If</span> Left(objClass.Path_.Class,5) = <span style="color: #800000;">&quot;Win32&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #8D38C9; font-weight: bold;">Each</span> Qualifier <span style="color: #8D38C9; font-weight: bold;">in</span> objClass.Qualifiers_<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">If</span> UCase(Trim(Qualifier.Name)) = <span style="color: #800000;">&quot;ASSOCIATION&quot;</span> <span style="color: #8D38C9; font-weight: bold;">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intCounter = 1<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Next</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">If</span> x = 0 <span style="color: #8D38C9; font-weight: bold;">Then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; strComputer = <span style="color: #800000;">&quot;.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> objWMIService = <span style="color: #E56717; font-weight: bold;">GetObject</span> _<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<span style="color: #800000;">&quot;winmgmts:{impersonationLevel=impersonate}!\\&quot;</span> &amp; strComputer &amp; <span style="color: #800000;">&quot;\root\cimv2&quot;</span>)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #151B8D; font-weight: bold;">Set</span> strClass = objWMIService.<span style="color: #151B8D; font-weight: bold;">Get</span>(objClass.Path_.Class)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.Echo <span style="color: #800000;">&quot;PROPERTIES:&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #8D38C9; font-weight: bold;">each</span> strItem <span style="color: #8D38C9; font-weight: bold;">in</span> strClass.properties_<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.Echo objClass.Path_.Class &amp; vbTab &amp; strItem.name <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Next</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.Echo <span style="color: #800000;">&quot;METHODS:&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">For</span> <span style="color: #8D38C9; font-weight: bold;">Each</span> strItem <span style="color: #8D38C9; font-weight: bold;">in</span> strClass.methods_<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Wscript.Echo objClass.Path_.Class &amp; vbTab &amp; strItem.name <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">Next</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span><br />
&nbsp; &nbsp; <span style="color: #8D38C9; font-weight: bold;">End</span> <span style="color: #8D38C9; font-weight: bold;">If</span><br />
<span style="color: #8D38C9; font-weight: bold;">Next</span></div></div>
<p>Other scripts could be found <a href="http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/other/wmi/">here</a></p>
<div style="height:33px; padding-top:2px; padding-bottom:2px; clear:both;" class="zare366"><div style="float:left; width:100px; " class="zare366_facebook_like"> 
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.memosoup.com%2F20091009%2Fwmi-list-of-the-methods-and-properties.html&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;colorscheme=light&amp;height=27" 
					scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:27px;" allowTransparency="true"></iframe>
			</div><div style="float:left; width:90px; padding-left:10px;" class="zare366_google1"> 
				<g:plusone size="medium" href="http://www.memosoup.com/20091009/wmi-list-of-the-methods-and-properties.html" ></g:plusone>
			</div><div style="float:left; width:110px; padding-left:10px;" class="zare366_twitter"> 
				<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
					data-text="WMI: list of the methods and properties" data-url="http://www.memosoup.com/20091009/wmi-list-of-the-methods-and-properties.html">Tweet</a> 
			</div></div>
		<div style="display:none;"><a href="http://www.news365live.com">news and informations</a>&nbsp;<a href="http://news365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a><a href="http://worldnews365online.com">automotive,business,crime,health,life,politics,science,technology,travel</a></div><div style="clear:both;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.memosoup.com/20091009/wmi-list-of-the-methods-and-properties.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

