Muokkaa

Jaa


WinDbg - Restricted Mode

Restricted Mode

WinDbg logo with a magnifying glass inspecting bits.

This section describes how to enable the restricted mode feature that restricts the type of debugging sessions that can be started.

WinDbg provides you the ability to start a variety of debugging session types. However, in some circumstances you may not want WinDbg to be able to start certain debugging sessions. Restricted Mode limits the types of debugging sessions WinDbg can start to only remote debugging sessions and loading dump files.

Restricted mode can be enabled by Windows Defender Application Control (WDAC) policy or by registry key.

Configuration using Windows Defender Application Control (WDAC)

Restricted mode can be enabled by Windows Defender Application Control (WDAC) policy. WDAC policy can prevent local administrators from altering policy settings after a policy has been deployed. To enable restricted mode by WDAC policy, configure your policy with the following setting:

<Settings>
    <!-- Other settings -->
    <Setting Provider="Microsoft.WindbgX" Key="Settings" ValueName="EnableRestrictedMode">
        <Value>
            <Boolean>true</Boolean>
        </Value>
    </Setting>
</Settings>

Configuration using Registry Key

To enable restricted mode by registry key, set this registry key HKLM\SOFTWARE\Microsoft\WinDbg\EnableRestrictedMode to the DWORD value of 1.

This example command shows how to use the reg add command to add the key and set it to a value of 1.

PS C:\WINDOWS\system32> reg add HKLM\SOFTWARE\Microsoft\WinDbg /v EnableRestrictedMode /t REG_DWORD /d 1
The operation completed successfully.

See Also

WinDbg Features

WinDbg – Command line startup options