Share via

Use Startup, Shutdown, Logon, and Logoff Scripts

Applies To: Windows 7, Windows 8, Windows Server 2008 R2, Windows Server 2012

Group Policy allows you to associate one or more scripting files with four triggered events:

  • Computer startup

  • Computer shutdown

  • User logon

  • User logoff

You can use Windows PowerShell scripts, or author scripts in any other language supported by the client computer. Windows Script Host (WSH) supported languages are also used, including VBScript and Jscript.

This section contains these topics:

Additional considerations