Using runas Command
Using runas Command
To use the runas command, you need access to a graphical user interface (GUI). This command will not work in a shell environment.
You can execute the command as follows:
runas /user:$UserName powershellYou'll be prompted to enter the password for the specified user.
A new window will open, running as the user you specified.
Last updated