Per machine Windows 11Windows Server 2025
Supported on: At least Windows 11 Version 24H2
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\AppCompat |
|---|
| Value name | DisableAPISamping |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
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.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > App and Device Inventory > Turn off API Sampling
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat' -Name 'DisableAPISamping' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
ADMX: AppDeviceInventory.admx · policy name TurnOffAPISamping
Per machine Windows 11Windows Server 2025
Supported on: At least Windows 11 Version 24H2
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\AppCompat |
|---|
| Value name | DisableInstallTracing |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy controls the state of Install Tracing. Install Tracing is a mechanism that tracks application installs to help diagnose compatibility problems.
If you enable this policy, Install Tracing will not be run.
If you disable or do not configure this policy, Install Tracing will be turned on.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > App and Device Inventory > Turn off Install Tracing
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat' -Name 'DisableInstallTracing' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
ADMX: AppDeviceInventory.admx · policy name TurnOffInstallTracing
Per machine Windows 11Windows Server 2025
Supported on: At least Windows 11 Version 24H2
When the GPO stops applying: Windows removes the value (it is under a Policies branch). How cleanup works
| Registry key | HKLM\Software\Policies\Microsoft\Windows\AppCompat |
|---|
| Value name | DisableWin32AppBackup |
|---|
| Enabled writes | 1 (REG_DWORD) |
|---|
| Disabled writes | 0 (REG_DWORD) |
|---|
What it does (vendor explanation)
This policy controls the state of the compatibility scan for backed up applications. The compatibility scan for backed up applications evaluates for compatibility problems in installed applications.
If you enable this policy, the compatibility scan for backed up applications will not be run.
If you disable or do not configure this policy, the compatibility scan for backed up applications will be run.
Group Policy path: Computer Configuration > Administrative Templates > Windows Components > App and Device Inventory > Turn off compatibility scan for backed up applications
PowerShell equivalent (generated from the template)
New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat' -Force | Out-Null
New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\AppCompat' -Name 'DisableWin32AppBackup' -Value 1 -PropertyType DWord -Force
Group Policy or Intune is the supported way to set policies. Writing the same values directly works like a local policy and is removed by nothing: delete the values to return to "Not configured".
ADMX: AppDeviceInventory.admx · policy name TurnOffWin32AppBackup