To perform certain customized functions, scripts can be run when Windows Operating System starts or shuts down. The method to execute a script at startup or shutdown varies with different versions.
Windows: To automate some routine tasks that nobody likes doing during the day, you can use Group Policy Editor to make your PC run a script when you shut it down or log off a user account. To set up ...