Welcome Forums General PowerShell Q&A Add-VpnConnection

This topic contains 1 reply, has 2 voices, and was last updated by

1 month, 1 week ago.

  • Author
  • #129798

    Points: 64
    Rank: Member

    I'm writing a script to add VPN connection on Windows 10.  When I run the script, PowerShell asks "Transmitting the secret key over unsecure text stream... Do you want to continue?"

    I know I can enter -Force to stop the message, but is there a better way?  How can I transmit it securely via PowerShell?

  • #129831

    Points: 1,124
    Helping Hand
    Rank: Community Hero

    Never used VPN cmdlets, but from docs, I think -EncryptionLevel will do it, You can wait for more comments from others.

You must be logged in to reply to this topic.