Help removing DSC resource from config

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Greg Altman Greg Altman 5 months, 3 weeks ago.

  • Author
    Posts
  • #42627
    Profile photo of Greg Altman
    Greg Altman
    Participant

    This is a bit of a "non-standard" situation. Specifically, I'm using DSC to configure the Windows 10 desktops in our Call Center and Warehouse Offices. So the "shoot it and build another" solution I would use on a server doesn't apply here.

    The specific problem is that I included the "xPendingReboot" resource in the initial configuration. This worked well to solve a package installation problem I had during initial setup. However, it's causing problems for some users due to inconvenient reboots. OK so take it out of the config, recreate the mof, new checksum, let DSC do it's thing. So far so good.
    BUT...
    When I run a "get-dscconfiguration" against my testing node, the xPendingReboot is still there! There is no Ensure property that I can find, so I can't use "Ensure = Absent"...

    So I'm kind of at a loss as to what to do to correct this problem..... Suggestions?
    Thanks in advance!

  • #42631
    Profile photo of Arie H
    Arie H
    Participant

    Hi,
    How did you set the LCM on the node in relation to Reboots ?

    Do you just see it as existing resource or is it actually still rebooting after the node applied the new mof (without the xPendingReboot module) ?

    If youre bothered for seeing the resource still exiting on the station, remove the folder from the modules folder, where you placed them initialy.

  • #42633
    Profile photo of Greg Altman
    Greg Altman
    Participant

    Arie,
    I've got the LCM set for RebootNodeIfNeeded = True.
    Yes I just saw it when doing a Get-DscConfiguration, I haven't seen it throw an "Unexpected reboot" yet so this may be much ado about nothing.

    Thanks for the insight!

You must be logged in to reply to this topic.