We oftenly work on a non-admin account on our Windows computer especially if we are under a Corporate or Enterprise Management/Infrastructure. Many times we install software or make some changes on our computer that needs an admin privileges. We do some troubleshooting using a Windows command prompt. This article will help you make it work like a Sudo command similar to Linux terminal.
Command called runas it allows a user to run specific tools and programs with different permissions than the user’s current logon provides.
runas [{/profile|/noprofile}] [/env] [/netonly] [/smartcard] [/showtrustlevels] [/trustlevel] /user:UserAccountName program
To start a command shell as a administrator simply run:
runas /noprofile /user:Administrator cmd