Quick sample that I use for running some of my dev tools as a domain user while connecting to my company network
http://share.linqpad.net/5klk2w.linq