<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Linq To WMI</title><link>http://linq2wmi.codeplex.com/project/feeds/rss</link><description>Linq to WMI is a project which was originally created by Emile Bosch &amp;#40;http&amp;#58;&amp;#47;&amp;#47;bloggingabout.net&amp;#47;blogs&amp;#47;emile&amp;#47;&amp;#41;. However, the project was created under an earlier version of the .NET 3.5 framework in 2005. It was later updated by Eden Ridgway &amp;#40;http&amp;#58;&amp;#47;&amp;#47;www.ridgway.co.za&amp;#47;&amp;#41;. This CodePlex project was added to maintain an open source version of those implementations for using WMI through Linq.      Enjoy &amp;#58;&amp;#41;</description><item><title>New Post: Win32_NetworkAdapterConfiguration</title><link>http://linq2wmi.codeplex.com/discussions/397829</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;&lt;span id="result_box" lang="en"&gt;&amp;nbsp; &lt;span&gt;Hello, &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span id="result_box" lang="en"&gt;&lt;span&gt;I generated&lt;/span&gt; &lt;/span&gt;&lt;span id="result_box" lang="en"&gt;&lt;span&gt;Win32_NetworkAdapterConfiguration class
&lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" lang="en"&gt;&lt;span&gt;with&lt;/span&gt; &lt;span&gt;LinqToWmi.ClassGenerator&lt;/span&gt;
&lt;span&gt;.&lt;/span&gt;&lt;br&gt;
&lt;span&gt;I've included&lt;/span&gt; &lt;span&gt;the generated file into&lt;/span&gt; &lt;span&gt;my c# solution.&lt;/span&gt;&lt;br&gt;
&lt;span&gt;However, I&lt;/span&gt; &lt;span&gt;can not&lt;/span&gt; &lt;span&gt;get my&lt;/span&gt; &lt;span&gt;IP address using&lt;/span&gt;
&lt;span&gt;Win32_NetworkAdapterConfiguration&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;br&gt;
&lt;span&gt;How can I do?&lt;/span&gt;&lt;br&gt;
&lt;span&gt;Thank you.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>titi14</author><pubDate>Wed, 03 Oct 2012 06:37:27 GMT</pubDate><guid isPermaLink="false">New Post: Win32_NetworkAdapterConfiguration 20121003063727A</guid></item><item><title>Source code checked in, #69709</title><link>http://linq2wmi.codeplex.com/SourceControl/changeset/changes/69709</link><description>Upgrade&amp;#58; New Version of LabDefaultTemplate.xaml. To upgrade your build definitions, please visit the following link&amp;#58; http&amp;#58;&amp;#47;&amp;#47;go.microsoft.com&amp;#47;fwlink&amp;#47;&amp;#63;LinkId&amp;#61;254563</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 22:10:56 GMT</pubDate><guid isPermaLink="false">Source code checked in, #69709 20121001101056P</guid></item><item><title>Source code checked in, #69708</title><link>http://linq2wmi.codeplex.com/SourceControl/changeset/changes/69708</link><description>Checked in by server upgrade</description><author>Project Collection Service Accounts</author><pubDate>Mon, 01 Oct 2012 22:06:45 GMT</pubDate><guid isPermaLink="false">Source code checked in, #69708 20121001100645P</guid></item><item><title>Created Issue: I am trying to consume wmi.core (.net 3.5) in my project(.net 4.0), getting error related to Linq "LogicalBinaryExpression" [22729]</title><link>http://linq2wmi.codeplex.com/workitem/22729</link><description>while querying visitors doesnt have LogicalBinaryExpression implemented in 4.0. since it is giving error. it is workin fine in 3.5 .net framework. but if i upgrade to 4.0 its not working. please provide me solution.&lt;br /&gt;find the attachemnet.&lt;br /&gt;consoleapplication is running becuase it is in 3.5 framwork.&lt;br /&gt;but test project is not running becuase it is in 4.0 framwork&lt;br /&gt;for both the projects wmi.core is 3.5 framwork only. how can i use wmi.core for my 4.0 project.&lt;br /&gt;</description><author>venkatbommina</author><pubDate>Thu, 10 May 2012 13:04:29 GMT</pubDate><guid isPermaLink="false">Created Issue: I am trying to consume wmi.core (.net 3.5) in my project(.net 4.0), getting error related to Linq "LogicalBinaryExpression" [22729] 20120510010429P</guid></item><item><title>New Post: Querying remote hosts not working?</title><link>http://linq2wmi.codeplex.com/discussions/249846</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thank you DBaines!&lt;/p&gt;&lt;/div&gt;</description><author>aderuwe</author><pubDate>Wed, 21 Sep 2011 22:07:21 GMT</pubDate><guid isPermaLink="false">New Post: Querying remote hosts not working? 20110921100721P</guid></item><item><title>New Post: Querying remote hosts not working?</title><link>http://linq2wmi.codeplex.com/discussions/249846</link><description>&lt;div style="line-height: normal;"&gt;&lt;blockquote style="padding-right: 0.25em; padding-left: 0.25em; padding-bottom: 0px; margin: 0.25em 1em 0px; padding-top: 0px; font-style: italic; border: #ccc 0.1em solid;"&gt;&lt;strong&gt;aderuwe wrote:&lt;/strong&gt;&lt;br /&gt;
&lt;p&gt;&amp;nbsp;&lt;span style="color: #000000;"&gt;Trying to query a remote host is not working for me. &amp;nbsp;In testing, I'm using the following:&lt;span style="color: #0000ff;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; (WmiContext context = &lt;span style="color: blue;"&gt;new&lt;/span&gt; WmiContext(&lt;span style="color: #a31515;"&gt;@"\\A_Remote_Machine"&lt;/span&gt;))&lt;br /&gt;{&lt;br /&gt; context.ManagementScope.Options.Impersonation = ImpersonationLevel.Impersonate;&lt;br /&gt; context.Log = Console.Out;&lt;br /&gt; QueryProcessors(context);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;I found that when you specify the WmiContext constructor with a suffix of the namespace you are connecting to everything works. So:&lt;/p&gt;
&lt;p&gt;&lt;span style="color: blue;"&gt;using&lt;/span&gt; (WmiContext context = &lt;span style="color: blue;"&gt;new&lt;/span&gt; WmiContext(&lt;span style="color: #a31515;"&gt;@&lt;a href="file://\\A_Remote_Machine\root\cimv2"&gt;\\A_Remote_Machine\root\cimv2&lt;/a&gt;&lt;/span&gt;))&lt;/p&gt;
&lt;p&gt;Is the ticket!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre style="color: black;"&gt;&lt;div style="color: black; background-color: white;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>DBaines</author><pubDate>Wed, 25 May 2011 16:20:08 GMT</pubDate><guid isPermaLink="false">New Post: Querying remote hosts not working? 20110525042008P</guid></item><item><title>New Post: Querying remote hosts not working?</title><link>http://linq2wmi.codeplex.com/discussions/249846</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:#000000"&gt;Trying to query a remote host is not working for me. &amp;nbsp;In testing, I'm using the following:&lt;span style="color:#0000ff"&gt;&lt;br&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="color:black"&gt;&lt;span style="color:blue"&gt;&lt;br&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style="color:black"&gt;&lt;span style="color:blue"&gt;using&lt;/span&gt; (WmiContext context = &lt;span style="color:blue"&gt;new&lt;/span&gt; WmiContext(&lt;span style="color:#a31515"&gt;@&amp;quot;\\A_Remote_Machine&amp;quot;&lt;/span&gt;))
{
	context.ManagementScope.Options.Impersonation = ImpersonationLevel.Impersonate;
	context.Log = Console.Out;
	QueryProcessors(context);
}
&lt;/pre&gt;
&lt;pre style="color:black"&gt;&lt;div style="color:black; background-color:white"&gt;&lt;pre&gt;&lt;span style="color:blue"&gt;private&lt;/span&gt; &lt;span style="color:blue"&gt;static&lt;/span&gt; &lt;span style="color:blue"&gt;void&lt;/span&gt; QueryProcessors(WmiContext context)
{
	&lt;span style="color:blue"&gt;var&lt;/span&gt; query = &lt;span style="color:blue"&gt;from&lt;/span&gt; processor &lt;span style="color:blue"&gt;in&lt;/span&gt; context.Source&amp;lt;Win32_Processor&amp;gt;()
			&lt;span style="color:blue"&gt;select&lt;/span&gt; processor;

	&lt;span style="color:blue"&gt;foreach&lt;/span&gt; (Win32_Processor processor &lt;span style="color:blue"&gt;in&lt;/span&gt; query)
	{
		Console.WriteLine(String.Format(&lt;span style="color:#a31515"&gt;&amp;quot;DeviceID: {0}&amp;quot;&lt;/span&gt;, processor.DeviceID));
		Console.WriteLine(String.Format(&lt;span style="color:#a31515"&gt;&amp;quot;Speed: {0} mhz&amp;quot;&lt;/span&gt;, processor.CurrentClockSpeed));
		Console.WriteLine(String.Format(&lt;span style="color:#a31515"&gt;&amp;quot;Usage: {0}%&amp;quot;&lt;/span&gt;, processor.LoadPercentage));
	}
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;br&gt;&lt;/pre&gt;
&lt;pre style="color:black"&gt;I'm getting the local processor, not the processor from A_Remote_Machine.  Any ideas?&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>aderuwe</author><pubDate>Tue, 15 Mar 2011 22:38:27 GMT</pubDate><guid isPermaLink="false">New Post: Querying remote hosts not working? 20110315103827P</guid></item><item><title>Source code checked in, #57055</title><link>http://linq2wmi.codeplex.com/SourceControl/changeset/changes/57055</link><description>Merge branch for feature addition.</description><author>hype8912</author><pubDate>Mon, 10 Jan 2011 13:57:00 GMT</pubDate><guid isPermaLink="false">Source code checked in, #57055 20110110015700P</guid></item><item><title>New Post: Project dead?</title><link>http://linq2wmi.codeplex.com/Thread/View.aspx?ThreadId=42140</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Project has been revived if it still matters to you.&lt;/p&gt;
&lt;/div&gt;</description><author>hype8912</author><pubDate>Sat, 08 Jan 2011 00:24:53 GMT</pubDate><guid isPermaLink="false">New Post: Project dead? 20110108122453A</guid></item><item><title>New Post: Non-default namespace classes</title><link>http://linq2wmi.codeplex.com/Thread/View.aspx?ThreadId=231326</link><description>&lt;div style="line-height: normal;"&gt;This discussion has been copied to a work item. Click &lt;a href="http://linq2wmi.codeplex.com/workitem/19618"&gt;here&lt;/a&gt; to go to the work item and continue the discussion.&lt;/div&gt;</description><author>hype8912</author><pubDate>Sat, 08 Jan 2011 00:24:10 GMT</pubDate><guid isPermaLink="false">New Post: Non-default namespace classes 20110108122410A</guid></item><item><title>Created Feature: Non-default namespace classes [19618]</title><link>http://linq2wmi.codeplex.com/workitem/19618</link><description>Hi, first - thanks for this nice project.&lt;br /&gt;&lt;br /&gt;I have a need to access non standard &amp;#40;aka not root&amp;#92;cimv2&amp;#41; wmi namespaces. I modified a copy of the code to be able to handle this. For reference the only changes I had to make are&amp;#58;&lt;br /&gt;&lt;br /&gt;Arguments.cs &amp;#40;adding&amp;#41;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;private string _wmiNs &amp;#61; &amp;#34;root&amp;#92;&amp;#92;cimv2&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#91;Argument&amp;#40;&amp;#34;wmins&amp;#34;, HelpText &amp;#61; &amp;#34;WMI namespace for class for&amp;#33;&amp;#34;&amp;#41;&amp;#93;&lt;br /&gt;        public string WmiNs&lt;br /&gt;        &amp;#123;&lt;br /&gt;            get &amp;#123; return _wmiNs&amp;#59; &amp;#125;&lt;br /&gt;            set &amp;#123; _wmiNs &amp;#61; value&amp;#59; &amp;#125;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;WmiObjectQuery.cs &amp;#40;changes&amp;#41;&lt;br /&gt;&lt;br /&gt;public ManagementObject GetMetaInformation&amp;#40;string name, string nameSpace&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            ManagementObject value &amp;#61; null&amp;#59;&lt;br /&gt;            ManagementScope scope &amp;#61; new ManagementScope&amp;#40;&amp;#64;&amp;#34;&amp;#92;&amp;#92;localhost&amp;#92;&amp;#34; &amp;#43; nameSpace&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;            ManagementPath path &amp;#61; new ManagementPath&amp;#40;name&amp;#41;&amp;#59;&lt;br /&gt;            ManagementClass management &amp;#61; new ManagementClass&amp;#40;scope, path, null&amp;#41;&amp;#59;&lt;br /&gt;   &lt;br /&gt;            foreach &amp;#40;ManagementObject child in management.GetInstances&amp;#40;&amp;#41;&amp;#41;&lt;br /&gt;            &amp;#123;            &lt;br /&gt;                value &amp;#61; child&amp;#59;&lt;br /&gt;                break&amp;#59;&lt;br /&gt;            &amp;#125;&lt;br /&gt;            management.Dispose&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;            return value&amp;#59;&lt;br /&gt;        &amp;#125;&amp;#91;Update&amp;#58;&amp;#93; forgot to add an example. Querying the WMI objects for BizTalk would look like this&amp;#58;  LinqToWmi.ClassGenerator.exe &amp;#47;wmi&amp;#58;MSBTS_HostInstance &amp;#47;wmins&amp;#58;root&amp;#92;MicrosoftBizTalkServer&lt;br /&gt;</description><author>hype8912</author><pubDate>Sat, 08 Jan 2011 00:23:59 GMT</pubDate><guid isPermaLink="false">Created Feature: Non-default namespace classes [19618] 20110108122359A</guid></item><item><title>New Post: How to update linq to wmi for SubmitChange()?</title><link>http://linq2wmi.codeplex.com/Thread/View.aspx?ThreadId=39639</link><description>&lt;div style="line-height: normal;"&gt;This discussion has been copied to a work item. Click &lt;a href="http://linq2wmi.codeplex.com/workitem/19617"&gt;here&lt;/a&gt; to go to the work item and continue the discussion.&lt;/div&gt;</description><author>hype8912</author><pubDate>Sat, 08 Jan 2011 00:23:20 GMT</pubDate><guid isPermaLink="false">New Post: How to update linq to wmi for SubmitChange()? 20110108122320A</guid></item><item><title>Created Feature: How to update linq to wmi for SubmitChange()? [19617]</title><link>http://linq2wmi.codeplex.com/workitem/19617</link><description>I want to change my ipaddress with linq to wmi,but I do not know how to update linq to wmi for SubmitChange.&lt;br /&gt;WmiContext context &amp;#61; new WmiContext&amp;#40;&amp;#64;&amp;#34;&amp;#92;&amp;#92;.&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; var ipaddress &amp;#61; from ip in context.Source&amp;#60;Win32_NetworkAdapterConfiguration&amp;#62;&amp;#40;&amp;#41; select ip&amp;#59;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; foreach &amp;#40;Win32_NetworkAdapterConfiguration ip in ipaddress&amp;#41;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;#123;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if &amp;#40;ip.IPAddress &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;#123;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ip.IPAddress.SetValue&amp;#40;&amp;#34;192.168.8.20&amp;#34;, 0&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;#47;&amp;#47;how to SubmitChange&amp;#63;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;#125;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; &amp;#125;&lt;br /&gt;&lt;br /&gt;&amp;#160;&amp;#160;&amp;#160; My email&amp;#58;niphone&amp;#64;live.cn&lt;br /&gt;</description><author>hype8912</author><pubDate>Sat, 08 Jan 2011 00:23:09 GMT</pubDate><guid isPermaLink="false">Created Feature: How to update linq to wmi for SubmitChange()? [19617] 20110108122309A</guid></item><item><title>New Post: How to update linq to wmi for SubmitChange()?</title><link>http://linq2wmi.codeplex.com/Thread/View.aspx?ThreadId=39639</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;I know this is an old post but I have just been added to the project and this is one of the things I've been working on. You should see this in the coming future.&lt;/p&gt;
&lt;/div&gt;</description><author>hype8912</author><pubDate>Sat, 08 Jan 2011 00:21:57 GMT</pubDate><guid isPermaLink="false">New Post: How to update linq to wmi for SubmitChange()? 20110108122157A</guid></item><item><title>Closed Feature: Default constructor for WmiContext [12271]</title><link>http://linq2wmi.codeplex.com/workitem/12271</link><description>Would be nice if that one had a default constructor for the local machine. Added one myself locally like this&amp;#58;&lt;br /&gt;&amp;#91;code&amp;#93;&lt;br /&gt;public WmiContext&amp;#40;&amp;#41;&lt;br /&gt; &amp;#58; this&amp;#40;&amp;#64;&amp;#34;&amp;#92;&amp;#92;.&amp;#34;&amp;#41; &amp;#123; &amp;#125;&lt;br /&gt;&amp;#91;&amp;#47;code&amp;#93;&lt;br /&gt;Comments: Resolved with changeset 56972.</description><author>hype8912</author><pubDate>Fri, 07 Jan 2011 22:24:18 GMT</pubDate><guid isPermaLink="false">Closed Feature: Default constructor for WmiContext [12271] 20110107102418P</guid></item><item><title>Source code checked in, #56972</title><link>http://linq2wmi.codeplex.com/SourceControl/changeset/changes/56972</link><description>Added new default constructor to call local machine.</description><author>hype8912</author><pubDate>Fri, 07 Jan 2011 22:24:16 GMT</pubDate><guid isPermaLink="false">Source code checked in, #56972 20110107102416P</guid></item><item><title>New Post: Non-default namespace classes</title><link>http://linq2wmi.codeplex.com/Thread/View.aspx?ThreadId=231326</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi, first - thanks for this nice project.&lt;/p&gt;
&lt;p&gt;I have a need to access non standard (aka not root\cimv2) wmi namespaces. I modified a copy of the code to be able to handle this. For reference the only changes I had to make are:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Arguments.cs (adding)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color:black;background-color:white"&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;private&lt;/span&gt; &lt;span style="color:blue"&gt;string&lt;/span&gt; _wmiNs = &lt;span style="color:#a31515"&gt;&amp;quot;root\\cimv2&amp;quot;&lt;/span&gt;;

[Argument(&lt;span style="color:#a31515"&gt;&amp;quot;wmins&amp;quot;&lt;/span&gt;, HelpText = &lt;span style="color:#a31515"&gt;&amp;quot;WMI namespace for class for!&amp;quot;&lt;/span&gt;)]
        &lt;span style="color:blue"&gt;public&lt;/span&gt; &lt;span style="color:blue"&gt;string&lt;/span&gt; WmiNs
        {
            &lt;span style="color:blue"&gt;get&lt;/span&gt; { &lt;span style="color:blue"&gt;return&lt;/span&gt; _wmiNs; }
            &lt;span style="color:blue"&gt;set&lt;/span&gt; { _wmiNs = value; }
        }
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;WmiObjectQuery.cs (changes)&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;span style="color:blue"&gt;public&lt;/span&gt; ManagementObject GetMetaInformation(&lt;span style="color:blue"&gt;string&lt;/span&gt; name, &lt;span style="color:blue"&gt;string&lt;/span&gt; nameSpace)
        {
            ManagementObject value = &lt;span style="color:blue"&gt;null&lt;/span&gt;;
            ManagementScope scope = &lt;span style="color:blue"&gt;new&lt;/span&gt; ManagementScope(&lt;span style="color:#a31515"&gt;@&amp;quot;\\localhost\&amp;quot;&lt;/span&gt; + nameSpace);

            ManagementPath path = &lt;span style="color:blue"&gt;new&lt;/span&gt; ManagementPath(name);
            ManagementClass management = &lt;span style="color:blue"&gt;new&lt;/span&gt; ManagementClass(scope, path, &lt;span style="color:blue"&gt;null&lt;/span&gt;);
   
            &lt;span style="color:blue"&gt;foreach&lt;/span&gt; (ManagementObject child &lt;span style="color:blue"&gt;in&lt;/span&gt; management.GetInstances())
            {            
                value = child;
                &lt;span style="color:blue"&gt;break&lt;/span&gt;;
            }
            management.Dispose();
            &lt;span style="color:blue"&gt;return&lt;/span&gt; value;
        }&lt;br&gt;&lt;br&gt;[Update:] forgot to add an example. Querying the WMI objects for BizTalk would look like this:&lt;br&gt;&amp;nbsp; LinqToWmi.ClassGenerator.exe /wmi:MSBTS_HostInstance /wmins:root\MicrosoftBizTalkServer&lt;/pre&gt;&lt;/div&gt;</description><author>RudolfHenning</author><pubDate>Mon, 18 Oct 2010 13:42:38 GMT</pubDate><guid isPermaLink="false">New Post: Non-default namespace classes 20101018014238P</guid></item><item><title>Source code checked in, #52373</title><link>http://linq2wmi.codeplex.com/SourceControl/changeset/changes/52373</link><description>Checked in by server upgrade</description><author>_TFSSERVICE</author><pubDate>Wed, 28 Jul 2010 17:08:20 GMT</pubDate><guid isPermaLink="false">Source code checked in, #52373 20100728050820P</guid></item><item><title>Patch Uploaded: #4437</title><link>http://linq2wmi.codeplex.com/SourceControl/PatchList.aspx</link><description>
&lt;p&gt;&lt;a href='http://www.codeplex.com/site/users/view/Kachalkov'&gt;Kachalkov&lt;/a&gt; has uploaded a patch.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Description:&lt;/b&gt;&lt;br /&gt;-ENH&amp;#58; LinqToSqlExtension added to solve the problem with variable value extract&lt;br /&gt;-ADD&amp;#58; Couple of SMS &amp;#40;SCCM&amp;#41; classes added as prototypes&lt;br /&gt;&lt;/p&gt;</description><author>Kachalkov</author><pubDate>Mon, 16 Nov 2009 05:23:08 GMT</pubDate><guid isPermaLink="false">Patch Uploaded: #4437 20091116052308A</guid></item><item><title>Created Issue: Default constructor for WmiContext</title><link>http://www.codeplex.com/linq2wmi/WorkItem/View.aspx?WorkItemId=12271</link><description>Would be nice if that one had a default constructor for the local machine. Added one myself locally like this&amp;#58;&lt;br /&gt;&amp;#91;code&amp;#93;&lt;br /&gt;public WmiContext&amp;#40;&amp;#41;&lt;br /&gt; &amp;#58; this&amp;#40;&amp;#64;&amp;#34;&amp;#92;&amp;#92;.&amp;#34;&amp;#41; &amp;#123; &amp;#125;&lt;br /&gt;&amp;#91;&amp;#47;code&amp;#93;&lt;br /&gt;</description><author>Svish</author><pubDate>Fri, 02 Jan 2009 00:29:32 GMT</pubDate><guid isPermaLink="false">Created Issue: Default constructor for WmiContext 20090102122932A</guid></item></channel></rss>