Win 10 auto-vpn

If you want to add/get global vpn connections so they are available to all users not just the current one then you need the -AllUserConnection parameter.

So

$Connection = Get-VpnConnection -Name $ProfileName -AllUserConnection