shutdown script

T

tonym

Hi all

i am trying to kick off a *.bat file on shutdown. I am setting this in the
"Local Computer Policy\Windows Settings\Scripts\Shutdown"

the batch file simply checks if a service is running, and based on an
%errorlevel% either shuts the service down using "net stop ....... " or
writes to a log file ..

for some reason I cant get the bat file to launch

I have tred using /interactive in the parameters setting but nothing..
doesnt it like .bat files?

any ideas appreciated

thnks

tm
 
P

Philip Nunn

are you trying to apply this policy to all of your domain pc's or just a DC?
If you want to apply it to your domain or an OU dont use the "Local Policy"
you need to use the GPMC or the ADUC snap-in to configure the policy.

Philip Nunn
 

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