Well, W2K has some pretty good features in regards to tasks such as these. You can enable a script to run either during logoff or shutdown.
The first thing to do would be to run MMC. Once up, go to the Console pull-down menu and select Add/Remove Snap-In.
Click the Add button and add the Group Policy snapin...I also add the User/Groups snapin so I have both available in the same console. Once you add them and click Ok you should see them both under Console Root.
Open the Local Computer Policy object/User Configurations/Windows Settings and highlight scripts. You should see both logon and logoff. Right click on Logoff and choose properties...you can then add a logoff script.
You can do the same to run a script at power off by going to the Computer Configuration/Windows Settings and scripts.
You can save this console so you can run it from a shortcut > console1.mmc
Doug
dxd_2000@yahoo.com