How to open an elevated cmd from a cmd

October 18th, 2009 . Filed under: Tips. Tags:

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:

cmd admin cmd

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

Replace ack with your admin user name.

Thanks Ramesh, MVP.


Bookmark and Share

Related posts:

Recent posts:
  • List & information about Internet Explorer versions
  • How to re-enable Windows 7 Sticky Notes delete confirmation prompt
  • Microsoft Hardware blog launched.
  • Test Drive Internet Explorer 9
  • Bing Webmaster Center FAQs - Crawling, Ranking, Indexing explained

  • Popular posts:

    Comments

    By Vemund Dyrkolbotn on October 18th, 2009 at 2:02 PM

    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. :-)

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

     

    Leave a Comment