Shutdown script not running

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

Pegasus \(MVP\)

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
 
P

Patrick W.

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

Pegasus \(MVP\)

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

Stevta [MSFT]

The shutdown script will run under the system account. Does the system have
privilege to run the script?
 

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