Search code examples
vbscriptshutdown

Execution Order Shutdown Windows and GPEDIT.MSC Scripts


I have a question regarding the execution order while shutting down/logoff Windows and the scripts shutdown/logoff in the GPEDIT.MSC.

When I shutdown/logoff will the scripts in the gpedit.msc be executed before Windows closes everything or is it the other way around, that Windows closes every other running process and then starts the script?

Thank you.


Solution

  • After a few tests I found the answer. Windows first closes all running applications and then starts the scripts in the GPEDIT.MSC.