次の方法で共有


SetVpnPorts method of the PS_RemoteAccessLocal class

This method sets the ports required by VPN to the default values based on the whether Vpn and/or site-to-site Vpn are enabled.

Syntax

uint32 SetVpnPorts(
  [in] boolean IsVpnEnabled,
  [in] boolean IsS2SVpnEnabled
);

Parameters

IsVpnEnabled [in]

Parameter indicating whether Vpn is enabled

IsS2SVpnEnabled [in]

Parameter indicating whether Site to Site Vpn is enabled

Requirements

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

See also

PS_RemoteAccessLocal