The below example is a batch file that has a shortcut on the deskto to run the script. cd C:\AdminToolz\runas /env /savecred /user:domain\username cmd