Key Root Path

Key Root Path

KeyRootPath is a sandbox setting in Sandboxie Ini. It specifies the registry location where the registry hive for a particular sandbox is mounted.

As with all sandbox settings, it may also be specified in the global section, and in that case will apply for all sandboxes where the setting is not also specified in the sandbox section.

See Sandbox Hierarchy for more information.

Usage:

   .
   .
   .
   [DefaultBox]
   KeyRootPath=\REGISTRY\USER\%BOXNAME%

The following substitution variables may be useful in this path.

  • The variable %SANDBOX% which expands to the name of the sandbox
  • The variable %USER% which expands to the user name
  • The variable %SID% which expands to the user security-ID (SID)
  • The variable %SESSION% which expands to the Terminal Services session number

If KeyRootPath is not specified, its default value is:

  • \REGISTRY\USER\Sandbox%USER%%SANDBOX%

The value must begin with the prefix \REGISTRY\USER\ or Sandboxie will not be able to mount the registry hive.

There is probably no reason to change the default value for this setting, and doing so is not recommended.

If Sandboxie cannot successfully mount or un-mount the sandboxed registry hive, it will issue messages SBIE1241 and SBIE2208, respectively.