Thursday, May 16, 2013

Running LINQPad as different user


Often you will need to impersonate LINQPad to perform some scripts in the context of other user (permissions etc).
LINQPad has no function of its own so what I do is use this simple command in a bat file:

runas /profile /user:domain\spAppPool "c:\Tools\LinqPad\2.0\LINQPad.exe"

Optionally you can right click on LINQPad exe while holding shift to "Run as different user..."



1 comment:

Colton Oconnor said...

.NET developer should learn LINQ and to use right tool and LINQPad is the right tool which provide flexible UI. It also populated the domain in a hierarchical treelist which allows us to enjoy using drag & drop plus intellisence in its expression editor.