When multiple AMSI (Antimalware Scan Interface) providers are installed on a Windows machine, as in your case with Windows Server 2016, all registered AMSI providers are called sequentially whenever a scan request is made (e.g., when PowerShell executes a script). Each provider returns a result of type AMSI_RESULT, indicating whether it considers the content malicious or clean.
What Happens Internally
The AMSI system collects the results from all the registered providers and uses the most severe result to determine the final action. The severity of AMSI results generally increases in the following order:
AMSI_RESULT_CLEAN (0)
AMSI_RESULT_NOT_DETECTED (1)
AMSI_RESULT_DETECTED (32768)
AMSI_RESULT_BLOCKED_BY_ADMIN_START (16384)
... (others higher)
If even one provider returns a result equal to or more severe than AMSI_RESULT_BLOCKED_BY_ADMIN_START (0x4000), the content is blocked — regardless of what other providers report.
Specific to Your Case
Since one AMSI provider returns:
AMSI_RESULT_BLOCKED_BY_ADMIN_START, and
- others return
AMSI_RESULT_CLEAN,
The final result will be AMSI_RESULT_BLOCKED_BY_ADMIN_START, because it is the most severe result among all.
Consequence
- The PowerShell script will be blocked from execution.
- The user may see an error such as:
"Operation stopped due to an AMSI policy."
- This behavior reflects a “fail-safe” design: better to block possibly harmful content than allow it through due to disagreement between providers.
Additional Notes
AMSI_RESULT_BLOCKED_BY_ADMIN_START typically means that an admin has enforced a group policy, such as via AppLocker or WDAC (Windows Defender Application Control), to block the specific script or operation.
- It may not indicate malware per se, but rather that execution is restricted by administrative rules.
What To Do If You Think It Was a False Positive
-
Identify which AMSI provider returned AMSI_RESULT_BLOCKED_BY_ADMIN_START.
-
If it's being caused by Defender, you can use:
Get-MpPreference | Select-Object -ExpandProperty ExclusionPath
… or adjust Defender/MDAC policies.
-
If it’s a third-party provider (e.g., Symantec, McAfee, etc.), check the provider’s logs or configuration to create appropriate exclusions or handle the detection.
Summary
If even one AMSI provider returns AMSI_RESULT_BLOCKED_BY_ADMIN_START, the script is blocked — regardless of other providers returning clean results.