Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We've got a few apps that rely on windows authentication - a couple of web apps with AD auth turned on and we usually connect to our SQL servers with windows auth. This normally runs without a hitch. It doesn't work so well if we're VPN'd to a client site though.


Opening SSMS normally from the start menu, then picking a server that normally accepts windows auth, results in a message saying:

Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. (.Net SqlClient Data Provider)

If I drop to a command prompt and use runas /user:domain\user to launch SSMS I can successfully windows auth to our SQL server instances with that ssms process.

If I look in task manager, both copies of ssms.exe (start menu vs runas) have the same user, and I can see no discernible differences between the processes in procexp.

AD Auth websites

If I open IE and browse to any of our websites that require an authenticated windows user, I get the "who are you" prompt, and that dialog thinks I'm whoever the VPN user is. I can click "Use another account" and authenticate that way though.


Even Outlook prompts for a username when we are VPN'd!

It's affecting our Win7 and Vista machines. It's been a while since we had an XP box, but I don't recall having this issue on XP for what it's worth.

The VPN connections are just using the built in windows VPN connections, they're not fancy cisco VPNs or anything of that nature.

Does anyone know how to tell windows that I'd like to be my normal old primary domain user rather than the VPN user when authenticating to resources in our domain? Heck, I'd be happy with a solution that prompted me with the "who are you" if I was trying to access windows auth requiring resources on the client's VPN.


Apologies if this is more a superuser question, I wasn't sure which site it best suited. It's about networking and infrastructure and plagues all of our developers here, so I hope it's a serverfault Q.

share|improve this question
Are you using windows authentication when you connect to your VPN server? ie The VPN server uses AD or Windows Authentication. – Jack B Nimble Dec 4 '09 at 17:55
Erm, I think so. I believe username+password we put in when we connect to clients VPN servers is an AD username for their network. I hope that helps :-) – Dan F Dec 5 '09 at 4:17
up vote 7 down vote accepted

I was also having this same issue and found the solution here:

You'll need to locate your VPN connections .pbk file.

You can find it here:


Or if you have it set to allow all users to use the connection, you can find it here:


Edit it with a text editor and find the line that says:


Disable it by setting it to 0

share|improve this answer
NICE! Worked first time! – LucasS Mar 25 '13 at 21:08
DUDE! Thank you thank you thank you. – Dan F Mar 25 '13 at 21:10

We use Cisco VPN software for some off-site users. The VPN software prompts for credentials which queries against Active Directory to ensure username/password are correct and the user has rights to logon via VPN. But a successful authentication only establishes a connection to the network. Access to network resources relies on the authentication you provided to the workstation when you logged on.

This became an issue for us because users would logon to the laptop with cached credentials, establish a VPN connection, then change their password. They would then lockout their domain accounts because their user token had their old credentials. We have since advised these users to lock and unlock their workstation after changing their password while the VPN tunnel is established. This updates the user token and lets them access network resources using the updated credentials.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.