Windows API reference

SetEnvironmentVariableW

Creates, changes or deletes an environment variable.

Library
Kernel32.dll
Category
Helper
Suspicion
low
MITRE ATT&CK
Not mapped

Detection summary

SetEnvironmentVariableW has no direct Sysmon or kernel ETW event; only imports, user-mode hooks and surrounding behavior expose it.

Sources and documentation

Not yet human-reviewed. Page metadata generated .

Legitimate use

Common in general Windows applications; usage varies by application type.

Open SetEnvironmentVariableW in the interactive atlas