I am running a command from the run line on the start menu, but when it runs the script, it says:
Warning: To preform some operations you must run an elevated Windows PowerShell console.
powershell.exe -Version 2 -NoLogo -NoExit -NoProfile -WindowStyle normal -ExecutionPolicy bypass -File C:\script\Run-Update.ps1
In Run-Update.ps1 I have:
import-module pswindowsupdate
get-WUHistory > C:\script\output.txt
Get-WUList >> C:\script\output.txt
How do I run this as elevlated?