Run As

I wrote this script to easily run any command I wanted to as a different user.

Simply copy the below quoted text into a .bat file and run it.

@echo off

set /p Domain=What is the domain you want to use?:

set /p UserName=What is the username you want to use?:

set /p Command=What command do you want to run?:

%windir%\system32\runas /user:%Domain%\%UserName% %Command%