Posts

Showing posts from May, 2009

Running an application as a domain user when you are not a member of that domain ...

I have the privilege to be able to bring my laptop to work instead of using the computers provided by my customer. This grants me better hardware and less frustration, and thus I am a happier consultant. Issues arise, however, when I need to access shared resources. My client, for example, uses Integrated Security when accessing its SQL Server instances. Earlier consultants have solved this by accessing the SQL Server instances through a Virtual PC that is a member of the domain. This is a different approach: Start - Run - CMD: runas /env /netonly /user: domain \ user application Faked example: runas /env /netonly /user:EXAMPLE\BENNY "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe" This could easily be turned into shortcuts: - One to start an arbitrary application as your domain user - One specific for each application, ex. the above one for your SQL Server Management Console