Info
Content

Configuration Manager Command Line


Configuration manager (pscfg.exe) includes a number of command line options. These can be displayed if you call the process with the /? parameter.

Here's the list for reference:

Usage: PSCFG [-import:<file>] [-export:<file>] [-setup [-noodbc] [-nopsodbc]] [-psodbc] [-clean] [-quiet]
-import:<file> - imports configuration settings from named file
-export:<file> - exports configuration settings to named file
-setup - setup client workstation, can be used with -import parameter
-noodbc - turn off ODBC Driver manager install during setup
-nopsodbc - turn off PeopleSoft ODBC driver install during setup
-psodbc - install PeopleSoft ODBC Driver only
-clean - remove PeopleSoft registry entries, cache files and shortcut links
-quiet - quiet mode, suppress message boxes

Some of the really hand ones here for script purposes are the -import, -export and clean options.

Here are some examples:

To import settings from an existing configuration file:

pscfg.exe -import:C:\Example.cfg

To export the current settings in configuration manager to a file:

pscfg.exe -export:C:\Example.cfg

To remove all configuration manager settings and cache so you can import configuration settings with a clean slate:

pscfg.exe -clean
pscfg.exe -import:C:\Example.cfg

The last example makes a good basis for a batch script for switching environments.

Here's a simple batch file example that sets %PS_HOME%, cleans and load a new configuration.

@echo off
rem Load configuration for <Your Environment>

echo.
echo Setting %PS_HOME% to <Your PS_HOME>

set PS_HOME=<PS_HOME>

cd \
cd %PS_HOME%\bin\client\winx86

echo.
echo Cleaning existing configuration.
pscfg.exe -clean -quiet

echo.
echo Loading configuration for <Your Environment>
pscfg.exe -import:%PS_HOME%\<YourConfigurationFile>.cfg
No Comments
Back to top