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:
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:
For more information about scripting, see the Group Policy Script Center (http://go.microsoft.com/fwlink/?LinkID=66013).
Local Group Policy Editor and the Resultant Set of Policy snap-in are available in Windows Server 2008 R2 and Windows 7 Professional, Windows 7 Ultimate, and Windows 7 Enterprise. For more information, see http://go.microsoft.com/fwlink/?LinkId=139815.