Launch script in a new window on schedule, as admin
Solution 1:
Crate scheduled task:
- Chose admin account for task execution.
- Select option
Run whether user is logged on or not
Configure time schedule:
Create action:
- Enter PowerShell in
Program/scrip
field - In Add arguments field enter
-File
argument with path to script and-ExecutionPolicy
argument withbypass
value. (-ExecutionPolicy bypass
)