How to open an elevated cmd from a cmd

A geek tip! If you need to open an elevated command prompt USING the default ‘regular’ command prompt, you can do so by using the following command:

amdadmincmd How to open an elevated cmd from a cmd

runas /netonly /user:ack-pc\ack cmd

Replace ack with your admin user name.

Thanks Ramesh, MVP.

If you have liked this post, you might want to check out some more, on topics like , .

About AnandK@TWC

Anand aka HappyAndyK is an end-user Windows enthusiast, a Microsoft MVP in Windows Desktop Experience since 2007, and the Admin of TheWindowsClub.com, TheGeeksClub.com & WinVistaClub.com. Creating a System Restore Point before trying out a new software or a tweak is always recommended.
Follow on Google: +AnandK@TWC

Ads

Random Posts

  • Vemund Dyrkolbotn

    Even better : Make a file called “sudo.bat” in a path folder containing the following:
    @runas /netonly /user:[computer]\[admin-username] %1 %2 %3 %4 %5 %6 %7 %8 %9

    Replace [computer] with the computer name and [admin-username] with your admin user name. :-)

  • http://www.sitaram-pamarthi.com Sitaram

    Can any one explain me the user of /netonly switch? In which scenario this is useful?

© 2012 The Windows Club All Rights Reserved