How to Use Sudo on cmd code example Example: how to run sudo in windows Simply specify the user and command to run as follows: runas /user:Admin cmd