The Change method modifies a service. The Win32_LoadOrderGroup parameter represents a grouping of system services defining execution dependencies. The services must be initiated in the order specified by the Load Order Group as the services are dependent on each other. These dependent services require the presence of the antecedent services in order to function correctly.

Note: In order to use the Change method to change a service from network service to local system, the StartName and StartPassword input parameters should be given the following values:

startname = “localsystem”

startpassword = “” this is important, it needs to be an empty string, NOT null

To change to network service:

startname = “NT AUTHORITY\NetworkService”

startpassword = “”

The method returns one of the following integer values:


UInt32 ReturnValue = Change(String ServiceDependencies, String LoadOrderGroupDependencies, String DisplayName, String PathName, UInt8 ServiceType, UInt8 ErrorControl, String StartMode, Boolean DesktopInteract, String StartName, String StartPassword, String LoadOrderGroup)


Return Value


See Also

Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

Content last updated: 2013-12-27 12:21:17 (UTC).