Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the IPsec custom policy configuration and restores the default configuration of a VPN profile.
Syntax
uint32 SetIpSecByDefault(
[in] string ConnectionName,
[in] boolean RevertToDefault,
[in] boolean PassThru,
[in] boolean Force,
[in] boolean AllUserConnection,
[out] VpnConnectionIPsecConfiguration cmdletOutput
);
Parameters
-
ConnectionName [in]
-
The name of the VPN connection profile.
-
RevertToDefault [in]
-
true to set the IPsec parameters to default values; otherwise, false.
-
PassThru [in]
-
true to return the VpnConnectionIPsecConfiguration object; otherwise false.
-
Force [in]
-
True to force the modification of IPsec configuration of the VPN profile; otherwise, false.
-
AllUserConnection [in]
-
True if the VPN connection profile is for all users; false if it is for a single user.
-
cmdletOutput [out]
-
When this method returns, contains the VpnConnectionIPsecConfiguration object. The destination EncryptionMethod, IntegrityCheckMethod, CipherTransformConstants, DHGroup, AuthenticationTransformConstants and PfsGroup fields are populated.
Requirements
| Minimum supported client |
Windows 8 |
| Minimum supported server |
Windows Server 2012 |
| Namespace |
Root\Microsoft\Windows\RemoteAccess\Client |
| MOF |
|
| DLL |
|