-3

How can I run a powershell script with elevated permissions in windows 8.1 BEFORE any user logs on? I want it to execute at startup.

Thank you!

JBlack
  • 3
  • 2
  • Depending on context, you would either make it a system service (using Microsoft's `srvany` or a third-party alternative like `nssm`) or use group policy to run it as a startup script. – Harry Johnston Dec 17 '15 at 21:35

2 Answers2

0

You may want to review the use of a Group Policy script.

Brycej
  • 64
  • 3
0

The above was useful, the solution to this was quite simple after all.

In windows 8.1 go to "Run" > gpedit.msc > Computer Configuration > Windows Settings > Scripts (Startup/Shutdown).

It can also run PowerShell scripts.

JBlack
  • 3
  • 2