A MainMode SA.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.
Syntax
class MSFT_NetMainModeSA : CIM_IKESAEndpoint
{
uint16 KeyModule;
string LocalEndpoint;
string RemoteEndpoint;
uint32 MaxQMSAs;
string LocalFirstId;
string LocalSecondId;
string RemoteFirstId;
string RemoteSecondId;
string OtherGroupId;
uint64 ExtendedFilterId;
uint16 LocalUdpEncapsulationPort;
uint16 RemoteUdpEncapsulationPort;
string IkePolicyKey;
uint64 VirtualIfTunnelId;
uint16 AuthenticationMethod;
uint16 CipherAlgorithm;
uint16 GroupId;
uint16 HashAlgorithm;
uint64 InitiatorCookie;
string OtherAuthenticationMethod;
string OtherCipherAlgorithm;
string OtherHashAlgorithm;
uint64 ResponderCookie;
string VendorID;
uint64 IdleDurationSeconds;
uint64 LifetimeKilobytes;
uint64 LifetimeSeconds;
boolean PacketLoggingActive;
uint8 RefreshThresholdSecondsPercentage;
uint8 RefreshThresholdKbytesPercentage;
string NameFormat;
string OtherTypeDescription;
uint16 ProtocolIFType;
uint16 ProtocolType;
string SystemCreationClassName;
string SystemName;
string CreationClassName;
string Name;
uint16 AvailableRequestedStates[];
uint16 EnabledDefault;
uint16 EnabledState;
string OtherEnabledState;
uint16 RequestedState;
datetime TimeOfLastStateChange;
uint16 TransitioningToState;
datetime InstallDate;
uint16 OperationalStatus[];
string StatusDescriptions[];
string Status;
uint16 HealthState;
uint16 CommunicationStatus;
uint16 DetailedStatus;
uint16 OperatingStatus;
uint16 PrimaryStatus;
string InstanceID;
string Caption;
string Description;
string ElementName;
};
Members
The MSFT_NetMainModeSA class has these types of members:
Properties
The MSFT_NetMainModeSA class has these properties.
AuthenticationMethod
Data type: uint16
Access type: Read-only
This field is ignored.
AvailableRequestedStates
Data type: uint16 array
Access type: Read-only
This field is ignored.
Caption
Data type: string
Access type: Read-only
Used in CimInstance.ToString(). A short string for describing this instance when debugging.
CipherAlgorithm
Data type: uint16
Access type: Read-only
The actual encryption algorithm used by the SA.
None (0)
DES (2)
3DES (6)
AES-128 (65001)
AES-192 (65002)
AES-256 (65003)
AES-GCM-128 (65004)
AES-GCM-192 (65005)
AES-GCM-256 (65006 )
CommunicationStatus
Data type: uint16
Access type: Read-only
This field is ignored.
CreationClassName
Data type: string
Access type: Read-only
Reserved for internal use by the WMI provider only.
Description
Data type: string
Access type: Read-only
This field is ignored.
DetailedStatus
Data type: uint16
Access type: Read-only
This field is ignored.
ElementName
Data type: string
Access type: Read-only
This field is ignored.
EnabledDefault
Data type: uint16
Access type: Read-only
This field is ignored.
EnabledState
Data type: uint16
Access type: Read-only
This field is ignored.
ExtendedFilterId
Data type: uint64
Access type: Read-only
Filter ID from the QM policy matching the extended mode filter
GroupId
Data type: uint16
Access type: Read-only
The property GroupId gives the phase 1 security association key exchange group. Well-known group identifiers from RFC2412, Appendix E, are: Group 1='768 bit prime', Group 2='1024 bit prime', Group 3 ='Elliptic Curve Group with 155 bit field element', Group 4= 'Large Elliptic Curve Group with 185 bit field element', and Group 5='1536 bit prime'. Note that only groups 1, 2, 14, 19, 20, and 24 are acceptable in Windows 8.
None (0)
DH Group 1 (1)
DH Group 2 (2)
DH Group 14 (14)
DH Group 19 (19)
DH Group 20 (20)
DH Group 24 (24 )
HashAlgorithm
Data type: uint16
Access type: Read-only
The actual hash algorithm used by the SA.
None (0)
MD5 (2)
SHA-1 (3)
SHA-256 (65001)
SHA-384 (65002)
AES-GMAC-128 (65003)
AES-GMAC-192 (65004)
AES-GMAC-256 (65005 )
HealthState
Data type: uint16
Access type: Read-only
This field is ignored.
IdleDurationSeconds
Data type: uint64
Access type: Read-only
This field is ignored.
IkePolicyKey
Data type: string
Access type: Read-only
GUID of the main mode policy provider context corresponding to this SA
InitiatorCookie
Data type: uint64
Access type: Read-only
This field is ignored.
InstallDate
Data type: datetime
Access type: Read-only
This field is ignored.
InstanceID
Data type: string
Access type: Read-only
A string that uniquely identifies this instance within the PolicyStore.
KeyModule
Data type: uint16
Access type: Read-only
The Key Module used to negotiate the SA and its child SA's.
LifetimeKilobytes
Data type: uint64
Access type: Read-only
This field is ignored.
LifetimeSeconds
Data type: uint64
Access type: Read-only
This field is ignored.
LocalEndpoint
Data type: string
Access type: Read-only
The address of the local endpoint the SA applies to.
LocalFirstId
Data type: string
Access type: Read-only
The first authentication local identity
LocalSecondId
Data type: string
Access type: Read-only
The second authentication local identity
LocalUdpEncapsulationPort
Data type: uint16
Access type: Read-only
Local UDP encapsulation port for NAT-T
MaxQMSAs
Data type: uint32
Access type: Read-only
The maximum number of Quick Mode SA's that may be established with this SA before it must be renegotiated.
Name
Data type: string
Access type: Read-only
Reserved for internal use by the WMI provider only.
NameFormat
Data type: string
Access type: Read-only
This field is ignored.
OperatingStatus
Data type: uint16
Access type: Read-only
This field is ignored.
OperationalStatus
Data type: uint16 array
Access type: Read-only
This field is ignored.
OtherAuthenticationMethod
Data type: string
Access type: Read-only
This field is ignored.
OtherCipherAlgorithm
Data type: string
Access type: Read-only
This field is ignored.
OtherEnabledState
Data type: string
Access type: Read-only
This field is ignored.
OtherGroupId
Data type: string
Access type: Read-only
Extensions to GroupId
OtherHashAlgorithm
Data type: string
Access type: Read-only
This field is ignored.
OtherTypeDescription
Data type: string
Access type: Read-only
This field is ignored.
PacketLoggingActive
Data type: boolean
Access type: Read-only
This field is ignored.
PrimaryStatus
Data type: uint16
Access type: Read-only
This field is ignored.
ProtocolIFType
Data type: uint16
Access type: Read-only
This field is ignored.
ProtocolType
Data type: uint16
Access type: Read-only
This field is ignored.
RefreshThresholdKbytesPercentage
Data type: uint8
Access type: Read/write
Qualifiers: MinValue (0), MaxValue (100), Override ("RefreshThresholdKbytesPercentage")
This property is ignored.
RefreshThresholdSecondsPercentage
Data type: uint8
Access type: Read/write
Qualifiers: MinValue (0), MaxValue (100), Override ("RefreshThresholdSecondsPercentage")
This property is ignored.
RemoteEndpoint
Data type: string
Access type: Read-only
The address of the remote endpoint the SA applies to.
RemoteFirstId
Data type: string
Access type: Read-only
The first authentication remote identity
RemoteSecondId
Data type: string
Access type: Read-only
The second authentication remote identity
RemoteUdpEncapsulationPort
Data type: uint16
Access type: Read-only
Remote UDP encapsulation port for NAT-T
RequestedState
Data type: uint16
Access type: Read-only
This field is ignored.
ResponderCookie
Data type: uint64
Access type: Read-only
This field is ignored.
Status
Data type: string
Access type: Read-only
This field is ignored.
StatusDescriptions
Data type: string array
Access type: Read-only
This field is ignored.
SystemCreationClassName
Data type: string
Access type: Read-only
Reserved for internal use by the WMI provider only.
SystemName
Data type: string
Access type: Read-only
Reserved for internal use by the WMI provider only.
TimeOfLastStateChange
Data type: datetime
Access type: Read-only
This field is ignored.
TransitioningToState
Data type: uint16
Access type: Read-only
This field is ignored.
VendorID
Data type: string
Access type: Read-only
This field is ignored.
VirtualIfTunnelId
Data type: uint64
Access type: Read-only
ID/Handle to virtual interface tunneling state
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 8 |
| Minimum supported server | Windows Server 2012 |
| Namespace | Root\StandardCimv2 |
| MOF | WFasCim.mof |
| DLL | WFasCim.dll |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors (upstream author metadata: windowssdkdev). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
