I often connect to my work TFS instance over VPN. Becasue my home computer is not on the domain, I'm forced to enter my userid/password for each tf.exe command. Is there a way to cache or save this locally?
You can definitely do it! I am running off the domain on Windows XP. A coworker of mine just showed me how. Here are the steps:
That should do the trick for you. I hate TFS a little less now. ;)
In Win7 with VS2010, I was able to do the following when connected to my VPN,
Though I can't solve your problem completely, I can make half of it go away (this command is set up to run SSMS, not VS, though you can change it):
%windir%\system32\runas.exe /netonly /user:DOMAIN\UserID "C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWb.exe"
The "/netonly" switch on RUNAS.exe authenicates it at the destination, meaning that you can give it a username and password that you don't currently have access to the DC for. We use it to run SSMS and login using Integrated Authentication to a SQL Server that sits on a different domain. Even though I can't see to DC for that domain from my computer, this command still allows me to pass my username and password for that domain to that server.
You could set a shortcut to this command and it would only prompt you for your password when you launch VS, which makes this a little easier, as you don't have to type in your Domain\Username every time anymore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With