Windows API reference
WNetAddConnection2A
ANSI variant of WNetAddConnection2.
- Library
- Mpr.dll
- Category
- Lateral Movement
- Suspicion
- high
Detection summary
WNetAddConnection2A has no reviewed Sysmon/ETW event; correlate SMB connections and named pipes with the connection setup.
- Sysmon: No Sysmon event mapped
- ETW: No ETW provider mapped
- Notes: Use Sysmon 3 for network connections and Sysmon 17/18 for named pipes, plus EDR network/API telemetry. The ANSI API call is not recorded.
Sources and documentation
- Microsoft Learn documentation (direct documentation)
- MITRE ATT&CK T1021.002: Remote Services: SMB/Windows Admin Shares
- Microsoft Sysmon events
Last reviewed: . Page metadata generated .
Legitimate use
IT administration, backup, deployment and monitoring tools.
Related APIs
- WNetAddConnection2W — Mpr.dll