Search code examples
windowsbuild-processscriptingwise

How can I make Windows software run as a different user within a script?


I'm using a build script that calls Wise to create some install files. The problem is that the Wise license only allows it to be run under one particular user account, which is not the same account that my build script will run under. I know Windows has the runas command but this won't work for an automated script as there is no way to enter the password via the command line.


Solution

  • This might help: Why doesn't the RunAs program accept a password on the command line?