469,602 Members | 1,747 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

WMIC - change service user account

Hello,
I am trying to change a service from running under System Account to Domain User account.
I a running the following command:

wmic service <ServiceName> call change StartName = "<UserAccount@Domain.Name>" StartPassword = "<AccountPassword>"

I recieve "Succesful" notification but the command does not do what it suppose to do"

I value 21 instead 0.

Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 21;
};

Anyone have any idea what is wrong here?
Nov 23 '06 #1
1 5664
You need to define the service somewhere... Try:

wmic service where "name = '<ServiceName>'" call change StartName = "<UserAccount@Domain.Name>" StartPassword = "<AccountPassword>"
Nov 12 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Spudster3 | last post: by
3 posts views Thread by Ahmad Jalil Qarshi | last post: by
3 posts views Thread by Matt Lowrance | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.