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

how to shut down a service on a 2003 server from a NT box?

Status
Not open for further replies.

kb0ogt

IS-IT--Management
Jul 20, 2001
102
US
i am trying to get a bat file that i wrote tol shutdown and start a service that is running on a 2003 server from another machine running a log monitor file.

the machine that is running the log monitor i have a mapped drive pointing to the location of the bat file on the 2003 server.

I can run the bat file fine on the machine it works. but when i have the log monitor on the NT machine call that bat file i get an error stating that the service doesnt exist.

is this a 2003 security thing? how can i get the NT machine running the log monitor to call that bat file successfuly?
 
I recommend a tool called psexec. (I believe it is a sysinternals tool) It acts as a remote command line and will execute anything you want on the remote system. In a batch file the command would be something like:

psexec \\yourserverhere net stop "Your Service Name"

I use it with great success in a number of VB scripts for various administrative tasks.

Hope that helps.

LM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top