title: How can a PowerShell script be automatically run on startup?
body: <p>I want to run my script at boot up time in windows 7</p>
  
  <p>I tried</p>
  
  <ol>
  <li><p>Setup a scheduled task to run at startup -  it doesn't run until someone logs in.</p></li>
  <li><p>Local GP to run script at startup - it doesn't run until someone logs in.</p></li>
  <li><p>Adding the scheduled task from a command prompt with admin - some time work some time not
  schtasks /create /tn "start" /sc onstart /delay 0000:30 /rl highest /ru system /tr "powershell.exe -file &lt;> </p></li>
  </ol>
  
  <p>any other method to this ?</p>