次の方法で共有


SetByEncryptionType method of the PS_VpnServerIPsecConfiguration class

Updates an Internet Protocol Security (IPsec) VPN server configuration for the specified encryption type.

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

Syntax

uint32 SetByEncryptionType(
  [in]  boolean                     PassThru,
  [in]  uint32                      TunnelType,
  [in]  string                      EncryptionType,
  [in]  uint32                      IdleDisconnectSeconds,
  [in]  uint32                      Ikev2Ports,
  [in]  uint32                      SADataSizeForRenegotiationKilobytes,
  [in]  uint32                      SALifeTimeSeconds,
  [in]  uint32                      MMSALifeTimeSeconds,
  [in]  uint32                      L2tpPorts,
  [in]  uint32                      SstpPorts,
  [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.

EncryptionType [in]

Specifies the type of encryption.

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.

Ikev2Ports [in]

Number of IKEv2 ports that are created.

SADataSizeForRenegotiationKilobytes [in]

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

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 property is not supported before Windows Server 2016.

L2tpPorts [in]

Number of L2TP ports that are created.

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.

GrePorts [in]

Number of GRE ports that are created.

Windows Server 2012 R2 and Windows Server 2012: This property is not supported before 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