Sudo in Windows


Notice: Undefined variable: post in /var/www/html/thesysad/thesysad/wp-content/plugins/facebook-like-and-comment/facebook.php on line 539

Notice: Trying to get property 'ID' of non-object in /var/www/html/thesysad/thesysad/wp-content/plugins/facebook-like-and-comment/facebook.php on line 539

Notice: Undefined variable: post in /var/www/html/thesysad/thesysad/wp-content/plugins/facebook-like-and-comment/facebook.php on line 539

Notice: Trying to get property 'ID' of non-object in /var/www/html/thesysad/thesysad/wp-content/plugins/facebook-like-and-comment/facebook.php on line 539

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
Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.