Using Startup, Shutdown, Logon, and Logoff Scripts
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:
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 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
For more information about scripting see the Group Policy Script Center (https://go.microsoft.com/fwlink/?LinkID=66013).