runas /savecred… don't accept cmdkey /add (credentials)
问题 I have a problem with runas /savecred ... and cmdkey /add.... I have a batch file contains this line: runas /profile /savecred /user:MyDomain\MyUserName "MyProgram.exe" I'm logging to my computer as Administrator and I want to execute MyProgram.exe with another user: MyUserName. When I launch my batch file the firt time, it prompts for password for MyUserName, I type the password and it works nice !!! For second time, it don't ask for password because /savecred has saved MyUserName and