runAs
runAs copied to clipboard
The tool to run command under a specified user account on Windows.
runAs
runas .NET Core Global Tool
![JetBrains incubator project](http://jb.gg/badges/incubator.svg)
The runas .NET Core Global Tool allows to run a dotnet process under a specified user account. This tool is compatible with any dotnet CLI commands but the most obvious scenario is running dotnet tests:
-
to install the runas tool, run the command line
dotnet tool install -g dotnet-runas
-
run tests under a specified user account like
dotnet runas -u:username -p:password test
-
to uninstall the runas tool, run the command line
dotnet tool uninstall -g dotnet-runas
For Windows operation system it is possible to specify elevated permissions and other parameters.
:construction: For Linux and OSX operation systems username and password paramers are available.
plugin ![](http://jb.gg/badges/official.svg)
When building, testing, and deploying an application with TeamCity, you may need to run a build under a specific user account, different from the one used to run the build agent. The teamcity-runas plugin can be used to run TeamCity build steps under a specified user account on Windows, Mac or Linux.
![](https://github.com/JetBrains/teamcity-runas-plugin/blob/master/docs/RunAs.png)
runAs tool for windows
![JetBrains incubator project](http://jb.gg/badges/incubator.svg)
The runAs tool provides the ability to run a Windows process under a specified Windows user account.