1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Run .bat program on logoff or shutdown

Discussion in 'Windows XP' started by Doug Sanders, Aug 16, 2010.

  1. Doug Sanders

    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
     
  2. VanguardLH

    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.
     

Share This Page