en-US

Turn off API Sampling

Supported on: At least Windows 11 Version 24H2

Registry

HKLM Software\Policies\Microsoft\Windows\AppCompat

Value name: DisableAPISamping

Enabled: DisableAPISamping = 1

Disabled: DisableAPISamping = 0

Description

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.