Invoking powershell in administrator mode


#1

Hello, I’m trying to invoke powershell command but it will only work in administrator mode, any way to do that?


#2

If you call a script rather than a command I believe that you can add the first line which will elevate privileges to administrator…

Try this link for starters …

https://stackoverflow.com/questions/7690994/powershell-running-a-command-as-administrator