Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting a service

Status
Not open for further replies.

detroit

MIS
Sep 13, 2002
160
CA
How can I start a service from a login script, and make it so that the startup of that service is changed to automatic? For example. Windows installer service is a manual service. I want to change it on the workstation so that it is automatic.

Here's the trick. The PC is at another location, so I cannot just sit in front of it to do it. I also have no remote control software on it.

Any help would be appreciated.

Detroit
 
Use the batch command in the login script:

net start "servicename"

which should do the trick. Alternatively you can change it to auto startup if you can get there once and there is no need to change the login script as it will start every time the machine is rebooted.

John
 
The problem is, is that I need the service started automatically so that when the GPO is assigned, it will run before the user even logs into the PC.

I just need to know how to change the startup to automatic now....

Thanks

Detroit
 
Go to services control panel, highlight service, right click and choose properties and change the startup type to Automatic.

John
 
But the problem is that the machine is 300 miles away from me. There must be a way to do it from a login script and set the startup type to automatic.

Thanks

Detroit
 
If the machine is XP Pro, let the user use remote assistance and you can connect to it. If this is not feasible, or through other remote control software,
guide the user through it (if necessary upgrading their account temporarily to give full local administrator rights)

then get them to logoff and reboot the machine.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top