What is the canonical way of knowing the mof has been applied successfully / unsuccessfully / still in progress.
I can tell that the mof has been applied because all the stuff is there on the machine (packages installed, files created, etc)
I run everything on one machine:
VERBOSE: Time taken for configuration job to complete is 0.215 seconds
But then whenever I run "Get-DscConfigurationStatus" on the node, I get:
unless I run "Stop-DscConfiguration", which ruins it, and means I have to run Update-DscConfiguration again.
Try using Get-DscLocalConfigurationManager. If it returns idle for Lcmstate then it is currently not applying a configuration. Once that is idle you can then run your other commands. You can expand upon this idea by using a loop (do-while) to basically wait until its idle and then proceed.
You must be logged in to reply to this topic.