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:
- Assign Computer Startup
Scripts
- Assign Computer Shutdown
Scripts
- Assign User Logon
Scripts
- Assign User Logoff
Scripts
Additional considerations
- 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.