Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

I am running a Script in task scheduler and need powershell to run as admin

$
0
0
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

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>