A common item for companies to put into place on their machines are scripts that run during various times that a user interacts with a computer. Most commonly, we refer to these as logon scripts, but that technically is only one of four different places where a self-running script can be initiated by Group Policy. Scripts are popular with IT departments because you can create a script to be as big or as small as you would like, and get that script to do many different things to the computer or user account.
Using a GPO, you can specify a script to run whenever a computer starts up or shuts down, and you can also specify a script to run whenever a user logs in or logs out. ...