Updating WMI Object

S

SR

When I use the System Management Objects in .Net I can retrieve a WMI object without a problem. When try to save changes to the WMI object I get an error (Invalid object). I'm using WMI and not ADSI because I can execute queries as a different user. Any help would be appreciated.
 
J

Jonathan Liu [MSFT]

What are you trying to change? Is tehre a particular class or properties you are trying to access and modify?

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


When I use the System Management Objects in .Net I can retrieve a WMI object without a problem. When try to save changes to the WMI object I get an error (Invalid object). I'm using WMI and not ADSI because I can execute queries as a different user. Any help would be appreciated.
 
S

SR

Properties of a user like the name, account enabled or user can change password. True ADSI can do these things but not in an alternate context. WMI will let you impersonate another user. ADSI can do the same but only with LDAP and we aren't using Active Directory (if you can believe that).

--
SR
What are you trying to change? Is tehre a particular class or properties you are trying to access and modify?

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


When I use the System Management Objects in .Net I can retrieve a WMI object without a problem. When try to save changes to the WMI object I get an error (Invalid object). I'm using WMI and not ADSI because I can execute queries as a different user. Any help would be appreciated.
 
S

SR

If you want to disable an account using WMI via system management objects how would that happen?

--
SR
What are you trying to change? Is tehre a particular class or properties you are trying to access and modify?

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


When I use the System Management Objects in .Net I can retrieve a WMI object without a problem. When try to save changes to the WMI object I get an error (Invalid object). I'm using WMI and not ADSI because I can execute queries as a different user. Any help would be appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top