Batch file: run command in a cmd.exe launched as a different user using batch file
问题 Hi Folks I am a newbie to batch files and I am facing a challenge. I have to do following steps using a batch file automatically. Steps 1 and 3 I am able to figure out, however for step 2 i need your help: A. Run command prompt using a user: Comment: This I have figured out, I can do it using: @Echo Off runas /profile /savecred /user:xyzasa\asdasq "cmd" B. Make some registry changes using the command prompt which opened in the previous step Comment: I know this can be done using the reg add