Skip to content

Set Compartment Mode

SetCompartmentMode overrides how SbieDll classifies a sandboxed process during initialization. It was introduced in 1.17.0 / 5.72.0. The override changes only the DLL's application-compartment flag; it does not change the sandbox mode enforced by the driver or create a Windows AppContainer. 1 2

Syntax

SetCompartmentMode=(y|n)

In Sandboxie.ini, y forces the DLL's flag on and n forces it off. The sandbox's effective value takes precedence over the global fallback. If the effective value is missing or not recognized, SbieDll uses the driver-reported flag. 2

Usage

To force only the DLL-side application-compartment flag for one sandbox:

[DefaultBox]
SetCompartmentMode=y

Reload the configuration and restart the affected processes. The DLL can now use compartment-mode behavior even if the driver's sandbox mode is unchanged. To configure an actual application compartment instead, see No Security Isolation. 2 3

See also