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.
SbieIni.exe queryex DefaultBox RecoverFolder
SbieIni.exe set DefaultBox RecoverFolder %Desktop%SbieIni.exe supports two primary workflows:
- Querying configuration values (read-only)
- Updating the configuration (
set,append,insert,delete)
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.
Purpose: inspect sections and settings.
How to list sections:
SbieIni.exe query *How to list settings in a section:
SbieIni.exe query DefaultBox *How to get the value(s) for a setting:
SbieIni.exe query DefaultBox RecoverFolderHow to expand variables to paths:
SbieIni.exe queryex DefaultBox RecoverFolderPurpose: modify configuration contents.
SbieIni.exe set <section> <setting> <value>SbieIni.exe append <section> <setting> <value>Note: in some builds insert may behave like append; test if order matters.
SbieIni.exe insert <section> <setting> <value>SbieIni.exe delete <section> <setting> <value>- 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).
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"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.
Some usage examples and operational notes were informed by community forum discussion archived.