By system environment variable, e.g.:
set GENII_CONFIG_DIR="/temp"
By command-line option, e.g.:
runContainer.bat --config-dir=/temp grid --config-dir=/temp shell
As a reminder, you can set the desired location of your state (both client-session and container-db state) using the "GENII_USER_DIR" system environment variable.