Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? Monitor shutdown event and write registry value

Oct
5
0
Hi,

Fairly new TCC user here. I open a TCC window on login. It runs TCSTART.BTM and I'd like to set a background monitor going to watch for the OS shutdown event, and on that event write something to the registry.

Is there a way to do this, even if the TCC window gets closed and re-opened during my OS session?
The ON command seemed like it might work, but it appears to need the script running the whole time.
The PROCESSMONITOR command seems interesting, since it creates a thread to watch for the event (I could watch for a core Windows process to shut down, for instance), but I'm not sure if the background thread stays around even if TCC is closed ... I'm guessing not.

Maybe I could start a background TCC window via DETACH to watch for the event?

Thanks for the help...
-Steve
 
Maybe create a shutdown script in the Local Group Policy Editor? I haven't tried it myself, but it seems like it should work.
 

Similar threads

Back
Top