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
TurnOffAPISampling
Policy ID
f7a17fd0082a
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
DisableAPISampling
REG_DWORD
HKLM
1
HKLM
0
Registry location
Type REG_DWORD · Computer
Path
Software\Policies\Microsoft\Windows\AppCompat
Value name
DisableAPISampling
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.