Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Launching an application when the users closes his session

Status
Not open for further replies.

davidchardonnet

Programmer
Mar 21, 2001
167
FR
Hello,

I want to launch automatically a program when the user closes his sessions or is turning off the computer.

Do you know how i can do that?

Thank you

David
 
Apply a script to the logoff policy on the machine.

If your PC is within a domain this will need to be done by the network administrators, anything specified on the local PC will get overwritten by the domain settings.

Write the script and test it, then to apply it open the Group policy editor (start -> run -> gpedit.msc), then go to
User Configuration -> Windows Settings -> Scripts (Logon/Logoff).
Run gpupdate to force the policy settings to refresh and voila.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top