How to run program from command line with elevated rights

Solution 1:

It looks like this utility - Hidden Start - will do what you wish if you use the /uac switch. Here's an example command line:

hstart /UAC "notepad.exe"

This will pop up the UAC dialog rather than ask for a password like runas does.

enter image description here

Solution 2:

There is a way to do this in PowerShell:

PS> Start-Process powershell -Verb runAs