How can I start a batch script before logging in?

I have set up my computer to boot at the same time everyday when I am not home. I need it to run a batch file without anyone touching it right when it boots.

I have added a shortcut to the file in the "startup" folder. However, the script doesn't run until I log on and select the desktop from the metro interface.

Is there a way to have this script run without logging in?


If you have Windows 8 Pro, open the search charm for apps using Windows logo key‌+Q, type gpedit.msc and open the Local Group Policy Editor.

  • Under Computer Configuration / Windows Settings you'll find Scripts (Startup/Shutdown)

  • Under User Configuration / Windows Settings you'll find Scripts (Logon/Logoff)

Specify your batch file or PowerShell script here.