When you right click a service in services.msc and go to properties and Log On, it lets you change it to Local System account, how can I switch to that setting with a batch command, I want to switch Telnet to use Local System Account.
Asked
Active
Viewed 1.2k times
2 Answers
3
I think you can use:
sc config "Service Name" obj= LocalSystem
Note: You need to open command prompt as Administrator.
shA.t
- 498
2
Use the versatile SC command:
sc config "<ServiceName>" obj= "<AccountName>" password= "<Password>"
Note: the spaces after "obj=" and "password=" are required!
CoreTech
- 1,771
-
This sets the Log On property of This account and not Local System account – Sunny Patel Mar 30 '16 at 18:35