Updating WMI Object

  • Thread starter Thread starter SR
  • Start date Start date
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.
 
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.
 
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.
 
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.
 
Back
Top