Using Startup, Shutdown, Logon, and Logoff Scripts
Updated: April 17, 2012
Applies To: Windows 8, Windows Server 2008 R2, Windows Server 2012
Group Policy allows you to associate one or more scripting files to four triggered events:
You can use Windows PowerShell scripts, or author scripts in any other language supported by the client computer. Windows Script Host (WSH) supported languages and command files are also used, including VBScript and Jscript.
This section contains these topics:
Set Up Scripts on the Domain Controller
Assign Computer Startup Scripts
Assign Computer Shutdown Scripts
Assign User Logon Scripts
Assign User Logoff Scripts
For more information about scripting see the Group Policy Script Center (http://go.microsoft.com/fwlink/?LinkID=66013).