<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/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>Use PowerShell to Easily Find the Key Property of a WMI Class</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/10/25/use-powershell-to-easily-find-the-key-property-of-a-wmi-class.aspx</link><description>Summary: Learn how to find the key property of a WMI class by using a Windows PowerShell function.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use PowerShell to Easily Find the Key Property of a WMI Class</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2011/10/25/use-powershell-to-easily-find-the-key-property-of-a-wmi-class.aspx#3463048</link><pubDate>Thu, 03 Nov 2011 13:12:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3463048</guid><dc:creator>Klaus Schulte</dc:creator><description>&lt;p&gt;Hi Ed,&lt;/p&gt;
&lt;p&gt;this maybe another important aspect of WMI ... a kind of &amp;quot;key experience&amp;quot; :-)&lt;/p&gt;
&lt;p&gt;But: I don&amp;#39;t know if you are like me and not so deeply involved in the world of WMI Qualifiers ...&lt;/p&gt;
&lt;p&gt;The first question I had to answer for myself is: What is the meaning of the &amp;quot;key&amp;quot; qualifier = why should I bother?&lt;/p&gt;
&lt;p&gt;Well, it looks like I&amp;#39;m going to find a kind of &amp;quot;primary key&amp;quot; ( Database jargon ) property that unambiguously identifies an instance of a special class needed to operate on this very special instance and no other similar , maybe even equaly named, instance. So if I want to distinguish my 10 running notepad.exe processes, I have to find the key property &amp;quot;handle&amp;quot; and use it to address a special notepad instance.&lt;/p&gt;
&lt;p&gt;Other questions I had: &amp;quot;Can there be more than one key for a class?&amp;quot; ( YES, similar to primary indexes in DB systems )&lt;/p&gt;
&lt;p&gt;&amp;quot;Are there classes without a key?&amp;quot; ( YES ... e.g. Singletons )&lt;/p&gt;
&lt;p&gt;So I concluded that the key property maybe something, I might want to know in cases where many instances of a class have been created.&lt;/p&gt;
&lt;p&gt;Klaus&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3463048" width="1" height="1"&gt;</description></item></channel></rss>