How can I make the xPendingReboot run last

Welcome Forums DSC (Desired State Configuration) How can I make the xPendingReboot run last

This topic contains 1 reply, has 1 voice, and was last updated by

 
Participant
2 years, 8 months ago.

  • Author
    Posts
  • #34893

    Participant
    Points: 0
    Rank: Member

    DependsOn is a pain because I have 4 different things it would have to depend on, I don't really like this.

    It would be great if I could just say last.

  • #34894

    Participant
    Points: 0
    Rank: Member

    Actually it's even worse because of the conditional nature of my config I don't even have something I can always depend on.

    Node $AllNodes.Where{$_.Roles -contains "WebRole"}.NodeName
    {
    WebConfiguration Web
    {
    }
    }

    Node $AllNodes.Where{$_.Roles -contains "SmtpRole"}.NodeName
    {
    SmtpConfiguration Smtp
    {
    }
    }

    Node $AllNodes.NodeName
    {
    #This is what I want to make sure runs last everytime
    xPendingReboot Reboot2
    {
    Name = "Reboot2"
    }
    }

The topic ‘How can I make the xPendingReboot run last’ is closed to new replies.