jl66
asked on
can we change the service log on user by DOS commands?
For the user log on the windows services, can I change the user and setup the password with DOS commands? For example, from
Log on as:
Local System account
to
This account: sysadm1
and set up the password.
Log on as:
Local System account
to
This account: sysadm1
and set up the password.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
how to get obj (YourUser)? The logic is
if obj != sysadm, then do
sc config YourService obj= YourUser password= YourPwd
end