Upravit

Sdílet prostřednictvím


Policy CSP - ADMX_MsiFileRecovery

Tip

This CSP contains ADMX-backed policies which require a special SyncML format to enable or disable. You must specify the data type in the SyncML as <Format>chr</Format>. For details, see Understanding ADMX-backed policies.

The payload of the SyncML must be XML-encoded; for this XML encoding, there are a variety of online encoders that you can use. To avoid encoding the payload, you can use CDATA if your MDM supports it. For more information, see CDATA Sections.

WdiScenarioExecutionPolicy

Scope Editions Applicable OS
✅ Device
❌ User
✅ Pro
✅ Enterprise
✅ Education
✅ Windows SE
✅ IoT Enterprise / IoT Enterprise LTSC
✅ Windows 10, version 2004 with KB5005101 [10.0.19041.1202] and later
✅ Windows 10, version 20H2 with KB5005101 [10.0.19042.1202] and later
✅ Windows 10, version 21H1 with KB5005101 [10.0.19043.1202] and later
✅ Windows 11, version 21H2 [10.0.22000] and later
./Device/Vendor/MSFT/Policy/Config/ADMX_MsiFileRecovery/WdiScenarioExecutionPolicy

This policy setting allows you to configure the recovery behavior for corrupted MSI files to one of three states:

Prompt for Resolution: Detection, troubleshooting, and recovery of corrupted MSI applications will be turned on. Windows will prompt the user with a dialog box when application reinstallation is required. This is the default recovery behavior on Windows client.

Silent: Detection, troubleshooting, and notification of MSI application to reinstall will occur with no UI. Windows will log an event when corruption is determined and will suggest the application that should be re-installed. This behavior is recommended for headless operation and is the default recovery behavior on Windows server.

Troubleshooting Only: Detection and verification of file corruption will be performed without UI. Recovery isn't attempted.

  • If you enable this policy setting, the recovery behavior for corrupted files is set to either the Prompt For Resolution (default on Windows client), Silent (default on Windows server), or Troubleshooting Only.

  • If you disable this policy setting, the troubleshooting and recovery behavior for corrupted files will be disabled. No troubleshooting or resolution will be attempted.

  • If you don't configure this policy setting, the recovery behavior for corrupted files will be set to the default recovery behavior.

No system or service restarts are required for changes to this policy setting to take immediate effect after a Group Policy refresh.

Note

This policy setting will take effect only when the Diagnostic Policy Service (DPS) is in the running state. When the service is stopped or disabled, system file recovery won't be attempted. The DPS can be configured with the Services snap-in to the Microsoft Management Console.

Description framework properties:

Property name Property value
Format chr (string)
Access Type Add, Delete, Get, Replace

Tip

This is an ADMX-backed policy and requires SyncML format for configuration. For an example of SyncML format, refer to Enabling a policy.

ADMX mapping:

Name Value
Name WdiScenarioExecutionPolicy
Friendly Name Configure MSI Corrupted File Recovery behavior
Location Computer Configuration
Path System > Troubleshooting and Diagnostics > MSI Corrupted File Recovery
Registry Key Name SOFTWARE\Policies\Microsoft\Windows\WDI{54077489-683b-4762-86c8-02cf87a33423}
Registry Value Name ScenarioExecutionEnabled
ADMX File Name Msi-FileRecovery.admx

Policy configuration service provider