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

Intercept Windows Logout or Shutdown?

Status
Not open for further replies.

Sharpharp

IS-IT--Management
Jun 9, 2009
29
GB
Is it possible to intercept a Windows logout or shutdown using Vbscript.

I want to automate a logout task, so if I have a vbscript which runs at LOGON, it could run in the background and look for a windows event such as logout and shutdown and run another vbscript.

Is it possible with vbscript?

Thanks
Sharpy
 
The PCs are not in a domain, and if I wanted to use local gpedit.msc I would not have posted on here.

Just need a scripting method to run a vbscript in the background to monitor for a shutdown and logoff, when intercepted, I need it to run another vbscript.

thanks
 
have a look at WMI event notification and subscriptions to those events, blocked method call or async
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top