CMD Simulator
System Informationconfig

CONFIG Command – View System Configuration in Windows

Learn how to view system configuration in Windows CMD. CONFIG displays OS, hardware, and device info. Guide covers syntax, MSConfig, SYSTEMINFO, and configuration troubleshooting.

Rojan Acharya·
Share

The CONFIG command displays system configuration information including operating system details, hardware information, and device status. In Windows Command Prompt environments and simulators, CONFIG shows the current system's OS version, platform, manufacturer, model, and optionally battery status when available. Use CONFIG for basic configuration or CONFIG /all for detailed output—essential for troubleshooting, system verification, and environment checks.

Whether you're a system administrator verifying deployment configurations, a developer checking environment details, or a power user troubleshooting system issues, understanding how to view and interpret system configuration is fundamental. Windows offers several tools for configuration: CONFIG (in simulators and some environments), SYSTEMINFO for comprehensive system data, and MSConfig for startup and boot configuration.

This comprehensive guide covers CONFIG syntax, what configuration data it displays, how it relates to SYSTEMINFO and MSConfig, practical examples for common scenarios, troubleshooting tips, and frequently asked questions. By the end, you'll confidently view and interpret system configuration from the command line.

What Is the CONFIG Command?

The CONFIG command is a system information utility that displays current configuration values for the computer and its operating system. It provides a quick snapshot of the environment: OS name and version, platform, manufacturer, model, and in some implementations, battery level and charging status.

CONFIG is available in Windows Command Prompt simulators, learning environments, and some embedded or custom Windows environments. On standard Windows installations, the equivalent functionality is provided by SYSTEMINFO (comprehensive system data) and MSConfig (System Configuration utility for startup and boot settings).

The command's output helps with troubleshooting (verifying OS version, checking platform), deployment verification (confirming correct environment), and environment documentation (recording system state for support or development).

CONFIG vs SYSTEMINFO vs MSConfig

  • CONFIG: Quick system snapshot; OS, platform, hardware identifiers; available in simulators and some environments
  • SYSTEMINFO: Comprehensive Windows system data; hotfixes, network config, uptime; built into all Windows
  • MSConfig: System Configuration utility; startup programs, boot options, services; run msconfig to open GUI

Use CONFIG for quick checks in supported environments. Use SYSTEMINFO for full system reports on standard Windows. Use MSConfig for managing startup and boot configuration.

Syntax

CONFIG [/all]

Parameters

ParameterDescription
(none)Displays basic system configuration
/allDisplays detailed configuration including extended device information

Output typically includes:

  • Operating system name and version
  • Platform (e.g., web, win32)
  • Manufacturer and model
  • Battery level and charging status (when available)

How to Use CONFIG Command

Display Basic Configuration

Run CONFIG without arguments to see the standard configuration summary:

CONFIG

Output example:

Windows Configuration

Operating System: Windows
Manufacturer: ...
Model: ...
OS Version: 10.0.0
Platform: web

This provides a quick verification of the environment you're working in.

Display Detailed Configuration

Use /all for extended configuration data when supported:

CONFIG /all

This may include additional device details, battery information, and extended system identifiers depending on the environment.

Verify Environment Before Scripts

Run CONFIG at the start of batch files or scripts to log the environment:

CONFIG > config_log.txt

This creates a record of the system state for troubleshooting or audit purposes.

Combine with Other Commands

Use CONFIG output as input for other operations:

CONFIG | FIND "OS"

This filters the output to show only lines containing "OS".

Common Use Cases

  1. Verify deployment environment – Use CONFIG to confirm the correct OS version, platform, and hardware before running deployment scripts or installations.

  2. Troubleshooting environment issues – Use CONFIG to document the system state when reporting bugs or requesting support.

  3. Check battery status – In mobile or battery-powered environments, CONFIG shows battery level and charging state for power management decisions.

  4. Environment documentation – Run CONFIG and redirect output to a file for audit trails, compliance documentation, or support tickets.

  5. Script initialization – Use CONFIG at the start of scripts to verify the environment meets requirements before proceeding.

  6. Learning and training – Use CONFIG in command simulators to understand system configuration concepts without affecting production systems.

  7. Compare environments – Run CONFIG on different systems to compare configurations during migration or troubleshooting.

  8. Automated reporting – Include CONFIG output in automated system reports or monitoring dashboards.

  9. Support ticket attachment – Capture CONFIG output when opening support tickets to provide environment context.

  10. Build verification – Use CONFIG in CI/CD pipelines to verify build agents have expected configuration.

  11. Remote support – Have users run CONFIG and share output for remote troubleshooting sessions.

  12. Compliance checks – Use CONFIG output to verify systems meet organizational configuration standards.

Tips and Best Practices

  1. Redirect output for records – Use CONFIG > config.txt to save configuration for later reference or attachment to support tickets.

  2. Use SYSTEMINFO on standard Windows – If CONFIG is not available, use SYSTEMINFO for comprehensive system data on all Windows installations.

  3. Run as Administrator when needed – Some configuration details may require elevated privileges for full visibility.

  4. Combine with FIND – Filter CONFIG output: CONFIG | FIND "version" to locate specific values.

  5. Document before changes – Run CONFIG before making system changes to have a baseline for comparison.

  6. Use in scripts – Include CONFIG (or SYSTEMINFO) in deployment and maintenance scripts for environment verification.

  7. Check platform-specific behavior – CONFIG output may vary by environment (simulator vs. native Windows); document expected output for your context.

  8. Verify battery before long operations – In mobile environments, check CONFIG battery level before running resource-intensive tasks.

  9. Include in runbooks – Add CONFIG to troubleshooting runbooks as a standard first step for environment verification.

  10. Use for training – CONFIG in simulators provides safe practice for system configuration concepts.

  11. Compare before and after – Run CONFIG before and after configuration changes to verify the impact.

  12. Understand output format – Familiarize yourself with CONFIG output structure for your environment to interpret results correctly.

Troubleshooting Common Issues

"CONFIG is not recognized" Error

Problem: Running CONFIG produces "'config' is not recognized as an internal or external command."

Cause: CONFIG may not be available on standard Windows installations. It is present in simulators and some custom environments.

Solution:

  • Use SYSTEMINFO instead for comprehensive system data on standard Windows
  • Use MSConfig (run msconfig) for startup and boot configuration
  • Verify you're in an environment that supports CONFIG (e.g., command simulator)

Prevention: Check environment documentation. Have SYSTEMINFO as fallback for standard Windows.

CONFIG Shows Limited Information

Problem: CONFIG output seems incomplete or minimal.

Cause: Environment may provide limited configuration data; some details require native APIs or administrator privileges.

Solution:

  • Use CONFIG /all if supported for extended output
  • Use SYSTEMINFO on Windows for full system report
  • Run as Administrator for additional visibility

Prevention: Understand your environment's CONFIG capabilities. Use SYSTEMINFO when you need comprehensive data.

Battery Information Not Shown

Problem: CONFIG does not display battery level or charging status.

Cause: Battery information requires device APIs; desktop systems and some environments don't have battery hardware.

Solution:

  • Battery data is typically available only on devices with batteries (laptops, tablets)
  • Use powercfg /batteryreport on Windows for detailed battery information
  • Accept that CONFIG may omit battery data in desktop or headless environments

Prevention: Don't rely on CONFIG for battery data in all environments. Use powercfg for battery-specific needs.

Output Format Differs from Expected

Problem: CONFIG output structure or fields don't match documentation.

Cause: CONFIG implementation may vary by environment (simulator, embedded system, custom build).

Solution:

  • Review environment-specific documentation
  • Use SYSTEMINFO for consistent output on standard Windows
  • Parse output flexibly in scripts to handle variations

Prevention: Test CONFIG in your target environment and document the actual output format.

Related Commands

SYSTEMINFO – Comprehensive System Data

SYSTEMINFO displays detailed Windows system information including OS configuration, hardware, hotfixes, and network configuration. Use when CONFIG is unavailable or when you need full system data.

Example:

SYSTEMINFO

When to use: Standard Windows systems, comprehensive reports, troubleshooting, audit documentation.

MSConfig – System Configuration Utility

MSConfig opens the System Configuration utility for managing startup programs, boot options, and services. Run msconfig from Command Prompt or Run dialog.

Example:

msconfig

When to use: Troubleshooting startup issues, disabling startup programs, changing boot configuration.

VER – Windows Version

VER displays the Windows version number. Use for quick version checks.

Example:

VER

When to use: Quick version verification, minimal output needed.

HOSTNAME – Computer Name

HOSTNAME displays the computer name. Use for network and identification checks.

Example:

HOSTNAME

When to use: Verifying computer identity, network configuration, script logic.

IPCONFIG – Network Configuration

IPCONFIG displays TCP/IP network configuration. Use for network troubleshooting.

Example:

IPCONFIG /all

When to use: Network configuration, IP address verification, DNS settings.

Frequently Asked Questions

What does the CONFIG command do?

CONFIG displays system configuration information including operating system, platform, manufacturer, model, and optionally battery status. It provides a quick snapshot of the environment for verification and troubleshooting.

Is CONFIG available on all Windows systems?

CONFIG may not be available on standard Windows installations. It is present in command simulators, learning environments, and some custom builds. On standard Windows, use SYSTEMINFO for comprehensive system data.

What is the difference between CONFIG and SYSTEMINFO?

CONFIG provides a quick configuration snapshot and may be environment-specific. SYSTEMINFO is built into all Windows and provides comprehensive system data including hotfixes, network config, and uptime. Use SYSTEMINFO when CONFIG is unavailable.

What does CONFIG /all do?

CONFIG /all displays detailed configuration when supported, including extended device information and additional system identifiers. Output varies by environment.

How do I view system configuration on standard Windows?

Use SYSTEMINFO for comprehensive system data. Use msconfig to open the System Configuration utility for startup and boot settings. Use VER for quick version check.

Can CONFIG show battery information?

In environments that support it, CONFIG may display battery level and charging status. This is typically available on devices with batteries (laptops, tablets). Desktop systems usually don't show battery data.

How do I save CONFIG output to a file?

Redirect output: CONFIG > config.txt or CONFIG /all > config_detailed.txt. This creates a file with the configuration for later reference or support tickets.

Why doesn't CONFIG work on my Windows PC?

CONFIG may not be a standard Windows command on your system. Use SYSTEMINFO instead, which is built into all Windows versions and provides comprehensive system information.

Can I filter CONFIG output?

Yes, use pipe and FIND: CONFIG | FIND "OS" or CONFIG | FIND "version". This shows only lines matching your search term.

How do I get startup configuration?

Use MSConfig for startup configuration: run msconfig to open the System Configuration utility. CONFIG and SYSTEMINFO show system info, not startup settings.

Is CONFIG the same as MSConfig?

No. CONFIG displays system configuration (OS, hardware). MSConfig is the System Configuration utility for managing startup programs, boot options, and services. Run msconfig to open the MSConfig GUI.

How do I check Windows version from command line?

Use VER for quick version, or SYSTEMINFO | FIND "OS Name" for full OS details. CONFIG may also show version when available in your environment.

Quick Reference Card

CommandPurposeExample Use Case
CONFIGDisplay basic configurationQuick environment check
CONFIG /allDisplay detailed configurationExtended system info
CONFIG > file.txtSave output to fileDocumentation, support
CONFIG | FIND "term"Filter outputFind specific values
SYSTEMINFOFull system data (Windows)When CONFIG unavailable
msconfigSystem Configuration utilityStartup, boot settings

Try CONFIG Command Now

Ready to practice viewing system configuration? Use our Windows Command Simulator to run CONFIG commands in your browser. No installation required—practice CONFIG, CONFIG /all, and output redirection in a safe environment.

Explore the full Commands Reference for more Windows CMD utilities, including SYSTEMINFO for comprehensive system data, IPCONFIG for network configuration, and HOSTNAME for computer identification.

Summary

The CONFIG command provides a quick snapshot of system configuration including OS, platform, hardware, and optionally battery status. Use CONFIG for environment verification, troubleshooting, and documentation in supported environments. On standard Windows, use SYSTEMINFO for comprehensive system data and MSConfig for startup configuration.

Remember that CONFIG availability varies by environment—command simulators and learning tools include it, while standard Windows may not. Always have SYSTEMINFO as a fallback for full system reports. Master CONFIG and related commands for effective system administration and troubleshooting in Windows environments.