CoNetrix Blog

Access Domain Resources When Connected to VPN

Posted on November 14, 2009 9:31 AM

A problem I have had since upgrading to Vista was being unable to access domain resources once I connect a VPN session to a customer site. Accessing file shares on our network or connecting to Activity would require me to run "cmdkey.exe /delete /ras" to clear the RAS credentials cached when the VPN was established. I never had this issue with my Windows XP installation. So, after getting fed up with always having to run the command, I finally found a solution. Which is to disable using RAS credentials on my VPN connections. To do so, follow these steps:

  1. Locate the .pbk file that contains the entry that you dial. To do so, click Start, type *.pbk in the Research Bar, and then press Enter.
    • Vista location (C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Network\Connections\Pbk
    • XP location (C:\Documents and Settings\All Users\Application Data\Microsoft\Network\Connections\Pbk)
  2. Open the file in Notepad.
  3. Locate the following entry: UseRasCredentials=1
  4. Modify the entry to the following: UseRasCredentials=0
  5. On the File menu, click Save, and the click Exit.

Related Posts

Comments

Comment by Jammin

May 10, 2010 7:33 PM

This has saved me much frustration. Just stating the obvious but if you have more than one VPN connection setup you need to find all instances of UseRasCredentials= and change them.

I'm now happily VPN'd to two different networks at once, while retaining access to local resources.

Thanks!

Comment by Jammin

May 10, 2010 7:35 PM

I'd also like to say that this change in Vista is counter-intuitive.

It makes more sense to have to authenticate to the remote resource than to have to re-authenticate to the local ones (on a domain that you are already logged in to!)

Add Comment





[b][/b] - [i][/i] - [u][/u]- [quote][/quote]