Freigeben über


SetByCustomPolicy method of the PS_VpnServerIPsecConfiguration class

Updates an Internet Protocol Security (IPsec) VPN server configuration for custom policies.

Windows Server 2012: The order of the parameters for this method were changed in Windows Server 2012 R2.

Syntax

uint32 SetByCustomPolicy(
  [in]  boolean                     PassThru,
  [in]  uint32                      TunnelType,
  [in]  uint32                      IdleDisconnectSeconds,
  [in]  uint32                      SALifeTimeSeconds,
  [in]  uint32                      MMSALifeTimeSeconds,
  [in]  uint32                      SADataSizeForRenegotiationKilobytes,
  [in]  boolean                     CustomPolicy,
  [in]  uint32                      EncryptionMethod,
  [in]  uint32                      IntegrityCheckMethod,
  [in]  uint32                      SstpPorts,
  [in]  uint32                      CipherTransformConstants,
  [in]  uint32                      PfsGroup,
  [in]  uint32                      AuthenticationTransformConstants,
  [in]  uint32                      DHGroup,
  [in]  uint32                      Ikev2Ports,
  [in]  uint32                      L2tpPorts,
  [in]  uint32                      GrePorts,
  [out] VpnServerIPsecConfiguration cmdletOutput
);

Parameters

PassThru [in]

Indicates whether the VpnServerIPsecConfiguration parameter returns an object.

TunnelType [in]

The tunnel type of the server configuration.

Windows Server 2012: This parameter is not available before Windows Server 2012 R2.

IdleDisconnectSeconds [in]

A value that specifies the time, in seconds, after which an idle connection is terminated. Unless the idle time-out is disabled, the entire connection is terminated if the connection is idle for the specified interval.

SALifeTimeSeconds [in]

Lifetime of a security association (SA) in seconds, after which the SA is no longer valid.

MMSALifeTimeSeconds [in]

Lifetime of main mode security association (SA) in seconds, after which the MM SA is no longer valid.

Windows Server 2012 R2 and Windows Server 2012: This parameter is supported starting with Windows Server 2016.

SADataSizeForRenegotiationKilobytes [in]

The number of kilobytes that are allowed to transfer using a SA. After the transfer, the SA will be renegotiated.

CustomPolicy [in]

Specifies custom IKE IPsec policies.

EncryptionMethod [in]

Encryption method plumbed in IKE policy.

IntegrityCheckMethod [in]

Integrity method plumbed in IPsec policy.

SstpPorts [in]

The Secure Socket Tunneling Protocol (SSTP) of the VPN tunnel.

Windows Server 2012: This parameter is not available before Windows Server 2012 R2.

CipherTransformConstants [in]

Cipher plumbed in IPsec policy.

PfsGroup [in]

PFS Group plumbed in IPsec policy.

AuthenticationTransformConstants [in]

Auth transform plumbed in IPsec policy.

DHGroup [in]

DH Group Plumbed in IPsec policy.

Ikev2Ports [in]

Number of IKEv2 ports that are created.

L2tpPorts [in]

Number of L2TP ports that are created.

GrePorts [in]

Number of GRE ports that are created.

Windows Server 2012 R2 and Windows Server 2012: This parameter is supported starting with Windows Server 2016.

cmdletOutput [out]

The cmdlet output.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess
MOF
RAMgmtPSProvider.mof
DLL
RAMgmtPSProvider.dll

See also

PS_VpnServerIPsecConfiguration