shutdown script

  • Thread starter Thread starter tonym
  • Start date Start date
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
 
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
 
Back
Top