Use Startup, Shutdown, Logon, and Logoff Scripts

Applies To: Windows Server 2008

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 author scripts in any language supported by the client computer, with Windows Script Host (WSH) supported languages being the most common. WSH-supported languages include VBScript and Jscript.

This section contains these topics:

Additional considerations

For more information about scripting, see the Group Policy Script Center (

Community Additions