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