Running an Application on a Different Domain
- by Mark Flory
Were I am contracting at right now has a new development domain. Because of IT security rules it is fairly isolated from the domain my computer normally logs into (for e-mail and such). I do use a VM to log directly into the domain but one of my co-workers found this command to run things on your box but in the other domain. Pretty cool.
For example this runs SQL Server Management Tool for SQL Server 2008:
runas /netonly /user:{domain}\{username} "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\ssms.exe"
And this runs visual studios:
runas /netonly /user:{domain}\{username} "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"
It does not solve the problem I wanted to solve which would be to be able to assign Users/Groups in Team Explorer. It instead still uses the domain I am logged into's groups.