How to update linq to wmi for SubmitChange()?

Nov 10, 2008 at 11:45 PM
I want to change my ipaddress with linq to wmi,but I do not know how to update linq to wmi for SubmitChange.
WmiContext context = new WmiContext(@"\\.");
    var ipaddress = from ip in context.Source<Win32_NetworkAdapterConfiguration>() select ip;
            foreach (Win32_NetworkAdapterConfiguration ip in ipaddress)
            {
                if (ip.IPAddress != null)
                {
                    ip.IPAddress.SetValue("192.168.8.20", 0);

                 //how to SubmitChange?
                }
            }

    My email:niphone@live.cn

Developer
Jan 7, 2011 at 11:21 PM

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.

Developer
Jan 7, 2011 at 11:23 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.