How can I start a batch script before logging in?
If you have Windows 8 Pro, open the search charm for apps using +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.