configure test command tests a configuration file against the current system state without making any changes.
Syntax
Arguments
Path to YAML configuration file or URL
Options
Configuration file path or URL (alternative to positional argument)
Test configuration from history by ID
Path to PowerShell modules directory
Path to custom DSC processor
Skip displaying configuration details before testing
Accept configuration agreements without prompting
Examples
Test configuration file:Output Format
Shows test results for each resource:Test Results
Each resource shows:- Current State - Actual system state
- Desired State - Target state from configuration
- Result - Whether they match
Use Cases
Dry Run
Check what changes would be made:Validate Configuration
Ensure configuration is working as expected:Configuration Drift Detection
Check if system has drifted from previous configuration:Exit Codes
0- All resources in desired state0x8A150033- Some resources not in desired state0x8A150031- Configuration file not found0x8A150032- Configuration parsing failed
The
test command never modifies the system. It only checks current state against desired state.