Shutdown script not running

  • Thread starter Thread starter Patrick W.
  • Start date Start date
P

Patrick W.

Any ideas why a shutdown script might not run? It works fine when I
double-click it or fire it from Start=>Run. The script is simple: wzzip a
few directories into a local file, copy to a zip drive then delete the local
file. It's configured via local computer group policy in the windows section
under shutdown script.

The user logged in when the script runs is a member of the administrators
group. The machine part of a Win2k domain (running AD), but there are no
policies set at the domain level.

I'm stumped.
 
As a starting point I recommend that you add some basic
diagnostics to your script in order to see if it actually takes
off and how far it gets. You should also examine the path
that is effective at that time.

@echo off
echo %date% %time%: Shutdown script starting > c:\shutdown.log
echo Path=%path% >> c:\shutdown.log
c:\tools\YourCommands.bat
echo %date% %time%: Shutdown script ended >> c:\shutdown.log
 
Thanks I will try. Since I'm doing a few steps in the script I'm confident
the problem isn't with the script itself (also, it works from command
prompt). For some reason the machine isn't running the script at all. Even
the fastest of scripts flash the "Windows is running shutdown scripts"
message during shutdown, and I'm not seeing that message at all.

In terms of path, the script is in c:\winnt\system32, and the wzzip program
directory is also in the system path.
 
There is no such thing as "system path" - this is an assumption
that you must first verify.

If you place a "pause" statement in your script file then you can
prevent the script screen from disappearing before your eyes.
 
The shutdown script will run under the system account. Does the system have
privilege to run the script?
 
Back
Top