While working on few Powershell DSC (Desired State Configuration) script and pushing it on remote computer using Start-DscConfiguration command, but I was constantly receiving below error.
A configuration is pending. If you are in Pull mode, please run Update-DscConfiguration to pull a new configuration and apply it. If
you are in Push mode, please run Start-DscConfiguration command with -Force parameter to apply a new configuration or run
Start-DscConfiguration command with -UseExisting parameter to finish the existing configuration.
+ CategoryInfo : ResourceExists: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 11
+ PSComputerName : iis
To resolve this issue I checked help with Get-Help of Start-DscConfiguration cmdlet and used -Force parameter to resolve it. (The solution of the error is given in error itself)
Start-DscConfiguration -Wait -Path <MofConfigurationPath> -Verbose -Force
Usefule Articles
PowerShell remoting over HTTPS using self-signed SSL certificate
Configure Powershell WinRM to use OpenSSL generated Self-Signed certificate
Powershell WinRM HTTPs CA signed certificate configuration
Powershell Generate Self-signed certificate with Self-Signed Root CA Signer
PART 1 : POWERSHELL - CREATE LOCAL IIS WEB REPOSITORY FOR DSC MODULE
PART 2 : POWERSHELL - COPY DSC MODULE REMOTELY USING LOCAL WEB REPOSITORY
POWERSHELL CONVERT EXCEL TO DSC (DESIRED STATE CONFIGURATION) CONFIGURATION HASHTABLE FORMAT
Part 1: Build your first Microsoft PowerShell DSC pull server
Part 2: Generate target server node config for PowerShell DSC pull server
Part 3: Configure PowerShell DSC Local configuration manager LCM in pull mode and update configuration
How to force a PowerShell DSC client to refresh configuration from pull server