Turn off API Sampling
Jump to overview

Policy overview

Key metadata and intent for this policy.

Computer
Category
Windows Components > App and Device Inventory
Supported on
At least Windows 11 Version 24H2

Supported OS tags: Windows11

This policy controls the state of API Sampling. API Sampling monitors the sampled collection of application programming interfaces used during system runtime to help diagnose compatibility problems. If you enable this policy, API Sampling will not be run. If you disable or do not configure this policy, API Sampling will be turned on.

Internal name
TurnOffAPISamping
Policy ID
de0ca6f6c5d7
Elements
0

Registry values

How enabled and disabled states update the registry.

ScopeRegistry locationTypeEnabled valueDisabled valueCopy
Computer
Path
Software\Policies\Microsoft\Windows\AppCompat
Value name
DisableAPISamping
REG_DWORD
HKLM
1
HKLM
0
Registry location
Type REG_DWORD · Computer
Path
Software\Policies\Microsoft\Windows\AppCompat
Value name
DisableAPISamping
Hive
HKLM
Enabled value
1
Disabled value
0

Policy elements

Inputs and configuration options exposed by this policy.

This policy has no additional user input fields.