Thursday, April 21, 2011

Run application with Administrator privileges

Go to start and type cmd to open windows console.
Use command runas:
runas /user:yourdomain\Administrator “copied path to the exe file”
When asked enter password for .


Example to run SQL Server Manager as Administrator user:
runas /user:CONTOSO\Administrator “c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe”

No comments:

Post a Comment