Problem with a script execution for stopping services.

A

angelmoreno

Hi,
I have a problem with a little script that stops four services.
When I test the script in a command line, the script runs correctly,
and it stops the services.
The problem is when I schedule the script with the at command, the
scheduler have an error, and the services don't stopped.

Any idea?

The service which executes the task programmer is started with the
local system account.
The local system account has permissions in the script and the
container folder.

Very thanks...
 
P

Pegasus \(MVP\)

angelmoreno said:
Hi,
I have a problem with a little script that stops four services.
When I test the script in a command line, the script runs correctly,
and it stops the services.
The problem is when I schedule the script with the at command, the
scheduler have an error, and the services don't stopped.

Any idea?

The service which executes the task programmer is started with the
local system account.
The local system account has permissions in the script and the
container folder.

Very thanks...

Let's have a look at your script and also at the error
message you get. You can capture it like so:

net stop "ServiceName" 1>>c:\log.txt 2>>&1
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top