I'm trying to write a batch script that will open a new instance of CMD under different credentials, and automatically launch a program from that instance.
My "runas" command is:
runas /user:USER@DOMAIN cmd
After typing in a password, a new cmd instance opens, but I can't get it to automatically run the program I want.
How do I do this?
Also, if it's possible to close the new cmd instance after it launches the program, that will be helpful.
Thanks