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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stop/start service remotely 1

Status
Not open for further replies.

parker309

MIS
Jul 27, 2000
214
US
I have an NT server that is hosting a FlexLM manager. Sometime it hangs and requires a stop and restart of the service. I don't actually use the application so I never know when it is time to restart the service. I have written a .bat file that stops and starts the appropriate service. What I want to accomplish is to have that .bat file located on a public server somewhere and let the individual users run the .bat file when necessary. When you run the .bat file it wants to execute on the local machine that actually double-clicked the .bat file. How can I have a user in the domain click the .bat file and have it restart the service on that particular server? Thanks in advance.
 
PBXMAN! Thanks. That is exactly what I wanted. The netsvc command worked like a charm. Thanks again.

Now I have created a .bat that stops and starts the desired service. I want to give the .bat to an employee to execute when necessary, but don't want the employee to have admin privileges. Netsvc.exe requires admin rights, for obvious reasons, but there has to be a way to allow a specific user the right to run that command without giving him free reign. Thanks in advance.
 
Very useful link. Is there a utility that can automatically notify a desktop user or admin when a service that has been set to MANUAL or DISABLED has been started?
 
Netdd,

Not that im aware of - sorry. There might be some 3rd party app that does it, but nothing native to MS.
Pbxman
Systems Administrator

Please let Tek-Tips members know their posts were helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top