Forum Discussion
Colin_McCrae
8 years agoCommunity Hero
Some suggestions here: http://stackoverflow.com/questions/7690994/powershell-running-a-command-as-administrator
I've done self-elevation to Admin rights in BATCH file scripts. But never Powershell. The concept looks similar through. Add a block of script at the start that checks the current rights and elevates if required. That's how the BATCH version works too.
Related Content
- 6 years agoStevenJ61