13 Comments

  • Manu

    Hi,

    I follow all steps and I created vpn access, but when I try to log in, I got the message “we can’t access to your session because domain isn’t available” .

    My VPN connection works, even when I type my credentials I achieve to connect but when I got error message it clearly disconnect from router.

    any idea?
    Thanks you.

    • Ian

      Hi Manu,

      This sounds like a DNS issue from the message you get. If you log in and then connect the VPN manually can you ping the domain controller?
      Also, you mention a router, this works when you are using Microsoft Windows Server RRAS for the VPN rather than a VPN to a router.

      Hope this helps

      Ian

  • Brian Zellinger

    Thanks for the tutorial. Do you know if there is a way to auto log the user in using this method?

    • Ian

      Hi Brian,
      Thanks for your comment.
      I don’t think there should be a way to do this.
      This is too much of a security risk, to have the computer automatically log into a (business) network without a password as a minimum.
      I can’t think of a good reason to do this. If you would like to expand the scenario I may be able to help.
      If a computer is lost/stolen the whole network is vulnerable.
      Thanks
      Ian

  • Paolo

    Is there a way to add the additional network icon at login screen for existing VPN Connections? We use a IKEv2 certificate-based connection and the script provided about doesn’t work even if I want to create a second connection
    Thank you!

    • Ian

      Hi Paolo,
      Thanks for leaving a question. You could try “Set-VpnConnection -Name EXISITING_VPN_NAME -AllUserConnection $true”, where EXISTING_VPN_NAME is your current VPN name. Please let me know how you get on.
      Thanks
      Ian

    • JohnD

      I’m wondering if that suggestion for Paolo worked, as I have the exact same situation and would help to find out if this is possible. We need to change Domain on remote laptops, and need the VPN to be up and running prior to login. Thanks!

      • Ian

        Hi John,
        Unfortunately, I’ve not heard back from Paolo. If you do any testing and find a solution please post back to let us all know.
        Thanks
        Ian

  • Roger Leemann

    Hi
    I came this far on my own, however the stumbling block for me ist that in our environment we use different credentials for VPN and domain login. I haven’t found a way to first connect the VPN and then log in with differnet credentials to the domain. Is there any?
    Regards
    Roger

    • Ian

      Hi Roger,
      Thanks for your visit to my web site. I have just tested this from a non-domain PC (Windows 10 Pro) to a Windows domain, and the VPN connected but gave an error it was unable to log on to the computer. I was able to go back and log into the PC with my Pin and the VPN was connected. However, I would not use this method for end-users unfortunately as it’s not a clean process. Sorry, I’m not sure of a better way.
      Regards
      Ian

      • Roger Leemann

        Hi Ian

        Just a short follow-up. Thanks for the suggestion. Unfortunately in our case this doesn’t seem to work. The only way I found, is to login as another (local) user, turn on the vpn and then switch user. Not enduser friendly as they normally don’t know another login but at least I could get them started that way with a little help from my side via TeamViewer or some other remote support tool.
        Best regards
        Roger

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.