June 2014
To perform certain customized functions, scripts can be run when the Windows operating system starts or shuts down. The
method to execute a script at startup or shutdown varies with different versions of the Windows operating system. For the
professional and full editions, you don't need to modify the registry to run scripts. Instead, it is possible to add scripts at
startup from the policy editor of the local group. For all editions of Windows, modification in the registry is required to execute a
script at startup and shutdown. Backup the registry before making any changes to it.
This trick works in Windows XP, Vista and 7, but the method varies depending on your edition of Windows.