• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Run .bat program on logoff or shutdown

D

Doug Sanders

Flightless Bird
I want to have a small .bat file when the user logs off or the machine is
shutting down.

What do I have to do to have this happen? I can't count on the employees to
remember to clear some files before they go home.

Any help would be appreciated.

Doug Sanders
 
V

VanguardLH

Flightless Bird
Doug Sanders wrote:

> I want to have a small .bat file when the user logs off or the machine is
> shutting down.
>
> What do I have to do to have this happen? I can't count on the employees to
> remember to clear some files before they go home.


Use a logoff script. Go look at the account properties and there is a
logon/logoff events you can define.

control.exe userpasswords2
Advanced tab
Advanced button

Look at the properties for an account. Under the Profile tab is where
you can define logon and logoff scripts. Since you mention "employees"
then perhaps you are operating a domain where you can push policies.
Ask in a Windows server or admin group on how to use GPO.
 
Top