If you have User Account Control (UAC) enabled, you may want to run a program elevated. That's easy using Start-Process and the -verb parameter. The next line launches an elevated PowerShell console:
Start-Process powershell -verb runas
If you have User Account Control (UAC) enabled, you may want to run a program elevated. That's easy using Start-Process and the -verb parameter. The next line launches an elevated PowerShell console: