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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log Off

Status
Not open for further replies.
Nov 14, 2000
31
AU
I want to run a script when a users Logs Off from Windows. Does anyone know how I could link a script to this event?

Thanks.
 
Which OS, If it is Windows XP then you can do it via Group Policy, there is a logoff section where you can add scripts to run.

Steve
 
The Group Policy will work for XP or 2000. I looked into this a while back to find a scripting solution to a logout application we use.
There is a WMI call for ComputerShutdownEvent at:

Visual Basic also has a QueryUnLoad function that will run something on shutdown or exit.

Good luck.

Dana Hallenbeck
 
Thanks M8 the GP stuff works brilliantly. With regards to the WMI stuff I must admit I looked at that but knew not where to go with it. Would I need to create a listening program or something for that event.

Anyone know how where to start with this?

chuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top