Jump to content

Problem with a script execution for stopping services.


Recommended Posts

Guest angelmoreno
Posted

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...

  • Replies 1
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

Re: Problem with a script execution for stopping services.

 

 

"angelmoreno" <angelmoreno27@gmail.com> wrote in message

news:c7915ac3-8fd9-4219-8068-57906c483636@r66g2000hsg.googlegroups.com...

> 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


×
×
  • Create New...