SbieIni Command Line
SbieIni.exe is a small command-line utility for querying and updating the Sandboxie configuration file Sandboxie.ini. This page documents common invocation forms, examples for automation, and implementation references for maintainers.
Quick start
Overview
SbieIni.exe supports two primary workflows:
- Querying configuration values (read-only)
- Updating the configuration (
set,append,insert,delete)
Invocation summary
Basic forms:
SbieIni.exe query <section> [setting]
SbieIni.exe queryex [/expand] [/boxes] <section> [setting]
SbieIni.exe set|append|insert|delete [/passwd:********] [/drv] <section> <setting> <value>
Notes:
queryexis shorthand forquery /expand./boxeslists only enabled sandboxes./passwd:supplies a config password; if empty the utility will prompt interactively./drvroutes updates through the driver/service API; without/drvthe DLL helper path is used.
Querying configuration (read-only)
Purpose: inspect sections and settings.
How to list sections:
How to list settings in a section:
How to get the value(s) for a setting:
How to expand variables to paths:
Update operations (set / append / insert / delete)
Purpose: modify configuration contents.
Set — replace existing lines of a setting (or remove them if no value supplied)
Append — add a new value line after existing entries
Insert — add a new value line before existing entries
Note: in some builds insert may behave like append; test if order matters.
Delete — remove a value line that exactly matches the supplied value
Advanced and automation notes
- To delete an entire box:
SbieIni.exe set BoxName * ""(removes all lines for that section). Use with extreme caution. - Batch files: escape percent variables as
%%VAR%%. - If values include spaces, wrap them in double-quotes.
- Avoid running updates while
Sandboxie.iniis open/locked by another process. - For driver-level updates or automation where immediate driver state is required, use
/drv(service/driver must be available and caller needs necessary privileges).
Examples
SbieIni.exe query * | sort > Sections.txt
SbieIni.exe query DefaultBox RecoverFolder
SbieIni.exe queryex DefaultBox RecoverFolder
SbieIni.exe append DefaultBox Template RoboForm
SbieIni.exe set DefaultBox AutoRecover n
SbieIni.exe delete DefaultBox RecoverFolder "C:\Old\Path"
Implementation and references
The authoritative behavior lives in the apps/ini sources. Key implementation points:
apps/ini/cmd.c— argument parsing helpers.apps/ini/query.c— query implementation and SBIEDLL query helpers.apps/ini/update.c— update verbs,/passwdprompt,/drvvs DLL path.apps/ini/main.c— program entry and usage handling.
Forum/source note
Some usage examples and operational notes were informed by community forum discussion archived.