RunIt automate the process of 'Run as' Authentication with simple settings:
<configSections>
<section name="enviroment" type="RunIt.Infra.Configuration.EnviromentConfigurationSection, RunIt"/>
</configSections>
<enviroment>
</enviroment>
<applications>
<add alias="" filename="" name=""/>
</applications>
- alias: this required attribute allows to RunIt run without directory and identify the application
- filename: this required attribute is a full filename with directory is locate de application
- name: this attribute describe the application.
Exemple Usage:
<enviroment>
<applications>
<add alias="sqlm" filename="%programfiles%/.../SqlManaagementStudio.exe" name="SQL Management Studio"/>
</applications>
</enviroment>
<enviroment>
<credentials>
<add name="" username="" password="" domain="" />
</credentials>
</enviroment>
- name: this required attribute identify a credential
- username: this required attribute is a username to authentication on Windows 'Run as'
- password: this required attribute is a password to authentication on Windows 'Run as'
- domain: this required attribute is a domain to authentication on Windows 'Run as'
Example Usage:
<enviroment>
<credentials>
<add name="dev" username="augusto.mesquita" password="l4zyp4ssw0rd" domain="MyWindowsDomain" />
</credentials>
</enviroment>
This way we have a configuration
<enviroment>
<applications>
<add alias="sqlm" filename="%programfiles%/.../SqlManaagementStudio.exe" name="SQL Management Studio"/>
</applications>
<credentials>
<add name="dev" username="augusto.mesquita" password="l4zyp4ssw0rd" domain="MyWindowsDomain" />
</credentials>
</enviroment>
Open the 'CMD' and go to RunIt assmbly folder, execute a command:
bin > RunIt.exe -e sqlm dev