I am running a script that I know for a fact works when I run it in an administrator window. When I run it without being elevated it doesn't work. I added this into a task to run everyday at 11:00 but I cant figure out how to run this script as admin.
I tried to go to properties and run as admin but its grayed out and I looked under UAC and its on medium. This is running on server 2008R2. I was hoping maybe I could do like a powershell.exe -verb runas C:\users\XXX\script.ps1 but that didn't work.
Please help
Please help