none
Always On Device VPN - Won't connect at machine startup, unless from scheduled task. RRS feed

Answers

  • Hi ,

    You might need to check XML file.

    If you make a mistake in one of the tags, the script would run, however, all the parameters you have specified such Tunnel Type, Authentication Type and settings won't be configured (they will be lost) and the OS will leave the default values for regular VPN.

    So, our recommendation is, if this is the first time you are running the script, after script runs, you should go to the properties of the VPN and check the parameter you have specified in the script were configured properly.

    Best Regards,

    Candy


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    • Marked as answer by PeteL1 Monday, June 1, 2020 8:30 AM
    Friday, May 29, 2020 8:05 AM
  • Candy is correct. If the settings defined in ProfileXML did not get applied properly it indicates a syntax error in the XML file. Please review closely and ensure that it is configured correctly. You can find an example device tunnel profile XML here.

    https://github.com/richardhicks/aovpn/blob/master/ProfileXML_Device.xml

    In addition. you can use this free online XML formatter to check for XML formatting errors.

    https://www.freeformatter.com/xml-formatter.html

    A word of caution though. The free formatter will add a document encoding element which must be removed before you import it to your VPN profile.



    Richard M. Hicks
    Founder and Principal Consultant - Richard M. Hicks Consulting, Inc.
    directaccess.richardicks.com

    • Marked as answer by PeteL1 Monday, June 1, 2020 8:30 AM
    Saturday, May 30, 2020 6:54 PM

All replies

  • Hi ,

    You might need to check XML file.

    If you make a mistake in one of the tags, the script would run, however, all the parameters you have specified such Tunnel Type, Authentication Type and settings won't be configured (they will be lost) and the OS will leave the default values for regular VPN.

    So, our recommendation is, if this is the first time you are running the script, after script runs, you should go to the properties of the VPN and check the parameter you have specified in the script were configured properly.

    Best Regards,

    Candy


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    • Marked as answer by PeteL1 Monday, June 1, 2020 8:30 AM
    Friday, May 29, 2020 8:05 AM
  • Candy is correct. If the settings defined in ProfileXML did not get applied properly it indicates a syntax error in the XML file. Please review closely and ensure that it is configured correctly. You can find an example device tunnel profile XML here.

    https://github.com/richardhicks/aovpn/blob/master/ProfileXML_Device.xml

    In addition. you can use this free online XML formatter to check for XML formatting errors.

    https://www.freeformatter.com/xml-formatter.html

    A word of caution though. The free formatter will add a document encoding element which must be removed before you import it to your VPN profile.



    Richard M. Hicks
    Founder and Principal Consultant - Richard M. Hicks Consulting, Inc.
    directaccess.richardicks.com

    • Marked as answer by PeteL1 Monday, June 1, 2020 8:30 AM
    Saturday, May 30, 2020 6:54 PM
  • Hi ,

    Just want to confirm the current situations.

    Please feel free to let us know if you need further assistance.                   

    Best Regards,

    Candy


    Please remember to mark the replies as an answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com   

    Monday, June 1, 2020 1:47 AM
  • Hi Candy

    Thank you for your posting.  I'm having to work on something else for the moment, but will mark as answer because... well, two people on here are saying the same thing, and it makes sense :-)

    Regards,

    Pete.

    Monday, June 1, 2020 8:28 AM
  • Hi Richard

    Thank you for your response and the link to an example.  I'll lookout for the encoding in the formatter.

    Regards,

    Pete.


    Just wanted to update this to say that the example XML file worked perfectly after making changes and passing through the format checker for confirmation.

    Thanks again

    Pete.

    • Edited by PeteL1 Wednesday, June 3, 2020 9:08 AM Update to response
    Monday, June 1, 2020 8:30 AM