Partager via


MSFT_VpnConnection class

The MSFT_VpnConnection class provides a method to configure a virtual private network (VPN) connection profile.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[ClassVersion("1.0.0"), InPartition("local-system", "local-user"), dynamic, provider("VpnClientPSProvider"), AMENDMENT]
class MSFT_VpnConnection
{
  boolean AllUserConnection;
  string  Name;
  string  Profile;
};

Members

The MSFT_VpnConnection class has these types of members:

Methods

The MSFT_VpnConnection class has these methods.

Method Description
Set Creates or modifies a virtual private network (VPN) connection profile.

Properties

The MSFT_VpnConnection class has these properties.

AllUserConnection

Data type: boolean

Access type: Read-only

Qualifiers: key

True if the VPN connection profile is for all users; false if it is for a single user.

Name

Data type: string

Access type: Read-only

Qualifiers: key

The name of the VPN connection profile.

Profile

Data type: string

Access type: Read/write

The serialized and encoded string form of the VPN connection profile.

Requirements

Minimum supported client
Windows 8
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess\Client
MOF
VPNClientPSProvider.mof
DLL
VPNClientPSProvider.dll

See also

VpnConnection