# Multiple DSC configs not working so well

**URL:** <https://forums.powershell.org/t/multiple-dsc-configs-not-working-so-well/11268>\
**Category:** DSC\
**Created:** [September 5, 2018, 1:20pm UTC](https://forums.powershell.org/t/multiple-dsc-configs-not-working-so-well/11268 "2018-09-05T13:20:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![willprather](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@willprather](https://forums.powershell.org/u/willprather)\
**Post date:** [September 5, 2018, 1:20pm UTC](https://forums.powershell.org/t/multiple-dsc-configs-not-working-so-well/11268/1 "2018-09-05T13:20:14Z")

</div>

We have a computer imaging process and part of this process lays down the “baseline” configs via a start-dscconfiguration cmdlet. Just after, we determine whether the computer is a desktop or laptop. If the computer is a laptop, we lay down our vpn client via another dsc configuration.

Not all the time, but often, the laptop dsc script fails. When it fails, we reboot the machine and attempt again until we hit 6 reboots. At six reboots, we let the machine stay there and a tech can go figure out what is wrong. Something about the time it takes for the tech to log in and look at the problem seems to allow something to clear and the same start-dscconfiguration cmdlet works with the laptop configuration.

Is there anything I could check before running the start-dscconfguration cmdlet for the laptop configuration to ensure that it is ready to process another configuration? I’m looking for any and all relevant pointers that I can go investigate. Just figured I would see if anyone has seen similar things before.

&nbsp;

Thanks

---

<div class="post-metadata">

**Author:** ![kvprasoon](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kvprasoon/32/4449_2.png) [@kvprasoon](https://forums.powershell.org/u/kvprasoon)\
**Post date:** [September 5, 2018, 1:44pm UTC](https://forums.powershell.org/t/multiple-dsc-configs-not-working-so-well/11268/2 "2018-09-05T13:44:03Z")

</div>

What is the error you are getting ? and When say _allow something to clear_ , What is that something ?

---

<div class="post-metadata">

**Author:** ![willprather](https://avatars.discourse-cdn.com/v4/letter/w/41988e/32.png) [@willprather](https://forums.powershell.org/u/willprather)\
**Post date:** [September 5, 2018, 4:44pm UTC](https://forums.powershell.org/t/multiple-dsc-configs-not-working-so-well/11268/3 "2018-09-05T16:44:31Z")

</div>

My logs are simply stating that after running Start-DSCconfiguration, the computer was still not in the desired state, but it doesn’t capture the actual error output from that cmdlet.

Perhaps that is a good place to start. These dsc scripts run as the local system unattended and write logs to a share. What is a good way to capture relevant output from the output of start-dscconfiguration?

As for the “something” comment I made initially. I was just stating that after leaving the machine powered on without rebooting for 10 or 15 minutes, “something” changes on the system and Start-DSCConfiguration actually gets the machine into the desired state. I am unsure of what that something is that is blocking DSC from working at that point in time. Thoughts on where to look?

---

<div class="post-metadata">

**Author:** ![kvprasoon](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kvprasoon/32/4449_2.png) [@kvprasoon](https://forums.powershell.org/u/kvprasoon)\
**Post date:** [September 5, 2018, 11:44pm UTC](https://forums.powershell.org/t/multiple-dsc-configs-not-working-so-well/11268/4 "2018-09-05T23:44:12Z")

</div>

You could probably check the DSC event logs.  
Operational Logs from _Application and Services Logs -\> Microsoft -\> Windows -\> Desired State Configuration_

---

<div class="post-metadata">

**Author:** ![devopsquest18](https://avatars.discourse-cdn.com/v4/letter/d/c6cbf5/32.png) [@devopsquest18](https://forums.powershell.org/u/devopsquest18)\
**Post date:** [November 16, 2018, 7:51am UTC](https://forums.powershell.org/t/multiple-dsc-configs-not-working-so-well/11268/5 "2018-11-16T07:51:04Z")

</div>

Our query is related to the same context.From ARM template tried to join the servers to domain and then install msb patches via custom script. Servers are getting joined to domain but the patches are not getting applied. Could you please help.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 9:16pm UTC](https://forums.powershell.org/t/multiple-dsc-configs-not-working-so-well/11268/6 "2024-05-16T21:16:24Z")

</div>

Closed on May 16, 2024, 9:16pm UTC


