CmdID / PowerShell / Cmdlets / Add
Add-VpnConnection
Adds a VPN connection to the Connection Manager phone book. Windows Server PowerShell reference
From the Windows Server PowerShell reference 25 parameters Its page in the reference
Parameters
Show its 25 parameters
-AllUserConnectionIndicates that the cmdlet adds the VPN connection to the global phone book entries.-AsJobRuns the cmdlet as a background job.-AuthenticationMethodSpecifies the authentication method to use for the VPN connection.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-CustomConfigurationSpecifies an XML document that allows vendors to specify custom configuration information.-DnsSuffixSpecifies the DNS suffix of the VPN connection.-EapConfigXmlStreamSpecifies the contents of the EAP XML configuration file, which includes the EAP method ID.-EncryptionLevelSpecifies the encryption level for the VPN connection.-ForceIndicates that the pre-shared key (PSK) value is supplied over an insecure channel, if L2TP is used.-IdleDisconnectSecondsSpecifies the time, in seconds, before an idle connection is closed.-L2tpPskSpecifies the value of the PSK to be used for L2TP authentication.-MachineCertificateEKUFilterSpecifies an array of enhanced key usage (EKU) filters for Internet Key Exchange version 2 (IKEv2) machine certificate selection.-MachineCertificateIssuerFilterSpecifies the X509 certificate of the issuer filter for IKEv2 machine certificate selection.-Name, -ConnectionNameSpecifies the name of this VPN connection profile.-PassThruReturns an object representing the item with which you are working.-PlugInApplicationIDSpecifies the identifier for a third party application.-RememberCredentialIndicates that the credentials supplied at the time of first successful connection are stored in the cache.-ServerAddress, -ServerName, -DefaultServerSpecifies the address of the remote VPN server to which the client connects.-ServerListSpecifies an array of VPN servers.-SplitTunnelingIndicates that the cmdlet enables split tunneling for this VPN connection profile.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-TunnelTypeSpecifies the type of tunnel used for the VPN connection.-UseWinlogonCredentialIndicates that MSCHAPv2 or EAP MSCHAPv2 is used as the authentication method, and that Windows logon credentials are used automatically when connecting with this VPN connection profile.-WhatIf, -wiShows what would happen if the cmdlet runs.