Jump to content

jcoffi

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by jcoffi

  1. On 12/20/2019 at 2:08 AM, Biswa said:

    It will create/update in Global phone book. But if a user has already created manually, then it won't work. Because,

    
    Get-VpnConnection -Name $Name -AllUserConnection

    will give no result. it will try to add a vpn which will through the error like VPN with same name already exists

    This is by design. In order for a VPN connection to be used by all users, it must be at a level where all users can access it. So the VPN runs as system. This is why you can't see it's connection listed in Windows as the user. To run Powershell as system, you can modify the command line or check it out here. 

     

    Start-Process -FilePath cmd.exe -Verb Runas -ArgumentList '/k C:\SysinternalsSuite\PsExec.exe -i -s powershell.exe'
×
×
  • Create New...