OS Dependent Logoff/Logon Script run via GPO

Use following VBS script Startup or Shutdown script.



with above script, on Windows 2000 it will execute regedit.exe, on Windows XP it will execute calc.exe, and on Windows 2003 it will execute notepad.exe.

You can change the file as you wish..

Disclaimer: All posts and opinions on this site are provided AS IS with no warranties. These are my own personal opinions and do not represent my employer’s view in any way.

One thought on “OS Dependent Logoff/Logon Script run via GPO

Leave a Reply

Your email address will not be published. Required fields are marked *