How long should I wait for the pending configuration to finish.

I have got my DSC Configuration to run and create a MOF file.

When I run the command “Start-DscConfiguration -ComputerName $systemID -Path .\Iweb -Wait -Verbose”

It tells me a reboot is required in order to finish the configuration. I notice that a Task has been created in the TaskSchedular that runs at start up.

I waited for about 15 minutes after the reboot to see if anything happend. Nothing did, so I tried to rerun the the script to see if I could kick start the process.

I get this message:

An old configuration is still pending. Please wait for the pending configuration to finish.

So the question is, How long do I wait? How can I tell if anything is happening at all?

Mike

Reboot won’t happen automatically if the LCM isn’t configured to do, which it isn’t by default. It’s waiting on YOU to reboot it. So, you may have done that (not sure, based on your message).

After that, the LCM will re-run about every 30min by default.

If it doesn’t seem to be working, the correct procedure is not to kick it in the pants :). “The DSC Book” as a WMI call you can make to try and jump-start it. However, when troubleshooting or testing, the right procedure is to first get the xDSCDiagnostics module on the target computer, start a trace, and then run your shenanigans. That way, you can get some log info as to what’s happening. You can check the log now, but it’s not as detailed without the tracing enabled first.

Oh, I did reboot it. I checked the scduled tasks and saw that the DSC task ran at start up with no errors.
I’ll look for the log and try and see what’s happening.

OK, I found an error in my script and corrected it. I reverted my test VM to it’s original snapshot and ran my script.
Everything looks good. I did get the message that it wanted a reboot before it could continue.

I ran Get-WinEvent –LogName “Microsoft-Windows-Dsc/Operational”

ProviderName: Microsoft-Windows-DSC

TimeCreated Id LevelDisplayName Message


8/27/2014 3:59:13 PM 4115 Information Job {29EB97C2-FE61-4504-A66E-F8ECF7CDBA20} : …
8/27/2014 3:59:12 PM 4160 Information Job {29EB97C2-FE61-4504-A66E-F8ECF7CDBA20} : …
8/27/2014 3:59:10 PM 4114 Information Job {29EB97C2-FE61-4504-A66E-F8ECF7CDBA20} : …
8/27/2014 3:59:10 PM 4102 Information Job {29EB97C2-FE61-4504-A66E-F8ECF7CDBA20} : …
8/27/2014 3:57:43 PM 4160 Information Job {C509372D-291B-4BBC-A608-AD6BD46298CC} : …
8/27/2014 3:57:35 PM 4102 Information Job {C509372D-291B-4BBC-A608-AD6BD46298CC} : …

I also ran Get-xDscOperation and Trace-xDscOperation

ComputerName SequenceId TimeCreated Result JobID AllEvents


DSCTESTI… 1 8/27/2014 3:59:13 PM Success 29eb97c2-fe61-4504-a66e-f8ecf7cdba20 {@{Message=Running…
DSCTESTI… 2 8/27/2014 3:57:43 PM Success c509372d-291b-4bbc-a608-ad6bd46298cc {@{Message=Configu…

PS C:\Windows\system32> Trace-xDscOperation

ComputerName EventType TimeCreated Message


DSCTESTI… OPERATIONAL 8/27/2014 3:59:10 PM Running consistency engine.
DSCTESTI… OPERATIONAL 8/27/2014 3:59:10 PM Configuration is sent from computer NULL by user sid S-1-5-18.
DSCTESTI… OPERATIONAL 8/27/2014 3:59:12 PM Registering the task with task scheduler after rebooting the machine
FPKDSCTESTI… OPERATIONAL 8/27/2014 3:59:13 PM Consistency engine was run successfully.

So it loks like everything is fine.

So, how long do I wait untill the process complets?? How can I tell what is happening, if anything.

Mike

You can’t, really. Keep in mind that this is something you’re meant to set and forget… on tens of thousands of servers. Not something you stare at :). Granted, when you’re testing, that kind of feedback is nice, but it isn’t what the technology is meant to do. If the consistency engine ran successfully, then it should be fine.

If you’re wanting to verify that some kind of change was made, you’d do so manually by checking whatever it is.