2

I'm trying get list of VPN connections configured in the system.

Searching the internet found this command line:

netsh interface show interface

But it only shows network adapters, no VPN connections are shown.

enter image description here

VPN connections were added using window's built-in "Set up a new connection or network" wizard.

Are there other methods I could use to get the list via CMD?

Giacomo1968
  • 55,001
vanowm
  • 265
  • I don't use that - too insecure. Try this: https://docs.microsoft.com/en-us/powershell/module/vpnclient/get-vpnconnection?view=windowsserver2022-ps – John Sep 13 '22 at 01:51
  • What's insecure? – vanowm Sep 13 '22 at 01:59
  • Microsoft VPN has been compromised mostly because it lacks IPSec security or very similar security – John Sep 13 '22 at 02:01
  • Which illustrates the reason you should edit your question to insure the information remains – Ramhound Sep 13 '22 at 03:32
  • Did you get the list you need from the Microsoft article? – John Sep 13 '22 at 11:26
  • No, it requires powershell. the systems I'm working with, has powershell v1.0 and it doesn't have VpnModule. – vanowm Sep 13 '22 at 11:40
  • Try a more advanced version of Power Shell. The document I posted has clear steps for getting a VPN list and the article has examples. – John Sep 13 '22 at 19:58
  • Unfortunately, still no go, installed PS 7.2.6 and still getting the same error. – vanowm Sep 14 '22 at 02:53

0 Answers0