Continuing logging of a DSC target after it restarts

This topic contains 4 replies, has 4 voices, and was last updated by Profile photo of Zuldan Zuldan 2 years ago.

  • Author
  • #25670
    Profile photo of Tim Pringle
    Tim Pringle

    Hello folks.

    Looking for some advice. When I'm manually applying a DSC configuration to another system, I'll enable -VERBOSE and use the -WAIT parameter to see what's happening on my screen. If the target system has to restart during execution of a configuration (e.g. after computer renamed), the logging stops. Is there a way to resume or start logging again after the target system has restarted and it begins executing further actions in it's configuration MOF?

  • #25671
    Profile photo of Dave Wyatt
    Dave Wyatt

    You'll need to look to the Desired State Configuration\Operational event log for that. Previous versions of the WMF 5.0 preview had a Connect-DscConfiguration cmdlet which would take that info and display it to you at the console (including verbose output, etc), but it's not in the latest April preview for some reason. Not sure if they're making changes to it, or removing it, or what. Hopefully it or something similar is back in before the final release.

  • #25704
    Profile photo of Tim Pringle
    Tim Pringle

    Thanks Dave.

    I'll put it on Connect as a feature request.

    Will paste Connect URL here and on Twitter once it's submitted



  • #26347
    Profile photo of Stephen Owen
    Stephen Owen

    Hi Tim,

    Did you ever post that on Connect? I'd love to vote this up, as well!

  • #27223
    Profile photo of Zuldan

You must be logged in to reply to this topic.