For those of you who have Windows XP Pro, you can create and run logoff and shutdown scripts using the Group Policy Editor. To get to this tool, go to START->RUN and type "gpedit.msc".
To enable logoff scripts, in the left-hand panel expand "Windows Settings" under "User Configuration", then expand "Scripts", and in the right-hand panel double-click on "Logoff". In the dialogue box that opens, click the "Add" button, then the "Browse" button in the next window. Right-click in the browse window that opens, select "New" and create a text file named "exp.cmd". Right-click on the created file, and select "edit" to open the file.
Likewise, to create shutdown scripts, do the above, but instead of expanding "Windows Settings" under "User Configuration", expand "Windows Settings" under "Computer Configuration" instead.
To allow shutdown and logoff scripts to run without a time limit (necessary, for example, if you use them to run Eraser for freespace clearing), in the left-hand window expand "Administrative Templates" under "Computer Configuration", then expand "System" and select "Scripts". In the right-hand windows, double-click on "Maximum wait time for Group Policy scripts". Select the "Enable" radio button, and set the number of seconds to zero (0).
I'm investigating whether or not logoff and shutdown scripts can be run in Windows XP Home edition (by editing the registry, for example). One possibility would be to put links to these scripts in the Windows XP Home "Startup" folder under the Start Menu. It wouldn't run on shutdown (on startup instead), but it should still work fine.
I'll list the contents of my logoff and shutdown scripts in my next posts.
To enable logoff scripts, in the left-hand panel expand "Windows Settings" under "User Configuration", then expand "Scripts", and in the right-hand panel double-click on "Logoff". In the dialogue box that opens, click the "Add" button, then the "Browse" button in the next window. Right-click in the browse window that opens, select "New" and create a text file named "exp.cmd". Right-click on the created file, and select "edit" to open the file.
Likewise, to create shutdown scripts, do the above, but instead of expanding "Windows Settings" under "User Configuration", expand "Windows Settings" under "Computer Configuration" instead.
To allow shutdown and logoff scripts to run without a time limit (necessary, for example, if you use them to run Eraser for freespace clearing), in the left-hand window expand "Administrative Templates" under "Computer Configuration", then expand "System" and select "Scripts". In the right-hand windows, double-click on "Maximum wait time for Group Policy scripts". Select the "Enable" radio button, and set the number of seconds to zero (0).
I'm investigating whether or not logoff and shutdown scripts can be run in Windows XP Home edition (by editing the registry, for example). One possibility would be to put links to these scripts in the Windows XP Home "Startup" folder under the Start Menu. It wouldn't run on shutdown (on startup instead), but it should still work fine.
I'll list the contents of my logoff and shutdown scripts in my next posts.