Command Syntax
BCU-console uses the following general syntax:help - Display Help
Show the help screen with all available commands and switches.Syntax
Example Output
uninstall
Uninstall one or more applications using a .bcul uninstall list file.Syntax
Parameters
| Parameter | Required | Description |
|---|---|---|
[drive:][path]filename | Yes | Path to the .bcul uninstall list file that specifies which applications to uninstall |
Switches
| Switch | Description | Default |
|---|---|---|
/Q | Use quiet (silent) uninstallers wherever possible | Off (use loud uninstallers) |
/U | Unattended mode - do not ask user for confirmation | Off (prompt for confirmation) |
/V | Verbose logging mode - show detailed information | Off (normal output) |
/J or /J=<Level> | Clean up leftover junk after uninstall. If no level specified, defaults to VeryGood | Off (no junk cleanup) |
Junk Cleanup Levels
The/J switch accepts the following confidence levels:
VeryGood (Recommended)
VeryGood (Recommended)
Safest option - Only removes registry entries and files with very high confidence that they are leftover junk. This is the default if you use
/J without specifying a level.Good
Good
Moderate risk - Removes items with good confidence. May include some files that could potentially be shared with other applications.
Questionable
Questionable
High risk - Removes items that might still be in use by other applications. Use with extreme caution.
Bad
Bad
Very high risk - May remove important data. Only use if you fully understand the consequences.
Unknown
Unknown
Extreme risk - Not recommended. May cause system instability or data loss.
Examples
Example Output
Return Codes
| Code | Meaning | When It Occurs |
|---|---|---|
0 | Success | All applications uninstalled successfully, or no matches found |
1 | Invalid arguments | Invalid command syntax |
13 | Unexpected error | System exception during uninstall process |
87 | Invalid syntax | Missing filename or file does not exist |
1223 | Cancelled | User pressed N when prompted for confirmation |
export
Export installed application information to an XML file for inventory management, compliance auditing, or backup purposes.Syntax
Parameters
| Parameter | Required | Description |
|---|---|---|
[drive:][path]filename | Yes | Path where the XML export file should be saved |
Switches
| Switch | Description | Default |
|---|---|---|
/Q | Quiet mode - suppress progress messages during app scanning | Off |
/U | Unattended mode - suppress progress messages | Off |
/V | Verbose logging - show detailed scanning information | Off |
The
/Q and /U switches affect the application scanning process, not the export itself. They suppress progress messages during the “Looking for applications” phase.Examples
Example Output
XML Output Format
The exported XML file contains comprehensive application data:Return Codes
| Code | Meaning | When It Occurs |
|---|---|---|
0 | Success | Export completed successfully |
1 | Invalid arguments | Invalid command syntax |
13 | Unexpected error | System exception during export |
87 | Invalid syntax | Missing filename or invalid path |
list
Display a formatted list of all installed applications in the console.Syntax
Switches
| Switch | Description | Default |
|---|---|---|
/Q | Quiet mode - suppress progress messages during scanning | Off |
/U | Unattended mode - suppress progress messages | Off |
/V | Verbose logging - show detailed scanning information | Off |
Examples
Example Output
Output Format
The list command displays applications in a three-column format:| Column | Width | Content | Truncated |
|---|---|---|---|
| Display Name | 40 characters | Application name | Yes, if longer than 40 chars |
| Version | 20 characters | Version number | Yes, if longer than 20 chars |
| Source | 40 characters | Publisher website or About URL | Yes, if longer than 40 chars |
Return Codes
| Code | Meaning | When It Occurs |
|---|---|---|
0 | Success | List displayed successfully |
1 | Invalid arguments | Invalid command syntax |
13 | Unexpected error | System exception during scanning |
Global Switches Reference
These switches can be used with any command:/Q - Quiet Mode
/Q - Quiet Mode
Description: Use quiet (silent) uninstallers wherever possible and suppress progress messages during application scanning.Behavior:
- Suppresses “Looking for applications” progress messages
- For
uninstallcommand: Uses silent uninstallers instead of interactive installers - Does not affect confirmation prompts (use
/Ufor that)
- Running in scripts where you want minimal output
- When you don’t want installer windows to appear during uninstallation
- Scheduled tasks and automation scenarios
/U - Unattended Mode
/U - Unattended Mode
Description: Runs the command without any user interaction. All confirmation prompts are bypassed.Behavior:
- Skips all “Do you want to continue? [Y]es/[N]o” prompts
- Automatically proceeds with operations
- Displays warning: “Running in unattended mode. To abort press Ctrl+C or close the window.”
- Suppresses application scanning progress messages
- Fully automated scripts and scheduled tasks
- Remote execution scenarios
- When you’re certain about the operation and don’t need confirmation
/V - Verbose Mode
/V - Verbose Mode
Description: Enables detailed logging and shows additional information during operation.Behavior:Example verbose output:
- Shows detailed progress messages during application scanning
- Displays ”-> Inner message” lines with additional context
- Helps troubleshoot issues by providing more information
- Debugging issues with uninstall lists
- Understanding what the tool is doing during scanning
- First-time testing before automating
/J - Junk Cleanup
/J - Junk Cleanup
Description: After uninstalling applications, automatically scan for and remove leftover registry entries, files, and folders.Behavior:WARNING: Use extreme caution when choosing any level below VeryGood. There are no warranties.Example:
- Runs junk cleanup after successful uninstallation
- Defaults to “VeryGood” confidence level if no level specified
- Shows list of junk items found before deleting (unless
/Uis used) - Prompts for confirmation before deleting (unless
/Uis used)
Return Codes Summary
All BCU-console commands use these standard return codes:0 - Success
The operation completed successfully. All applications were uninstalled, exported, or listed without errors.
1 - Invalid Arguments
Command syntax error or invalid parameters. Check your command syntax.
13 - Unexpected Error
An unhandled system exception occurred. Check the console output for details.
87 - Invalid Syntax
Missing required arguments or invalid file path. Verify your file paths exist.
1223 - Cancelled
The operation was cancelled by the user pressing ‘N’ at a confirmation prompt.
Error Handling in Scripts
Always check return codes in your scripts to handle errors appropriately:Next Steps
CLI Overview
Learn about BCU-console features and use cases
Scripting Guide
Real-world automation examples and script templates
