# Cannot retrieve DSC status in Windows 2016

**URL:** <https://forums.powershell.org/t/cannot-retrieve-dsc-status-in-windows-2016/8467>\
**Category:** DSC\
**Created:** [April 20, 2017, 9:00am UTC](https://forums.powershell.org/t/cannot-retrieve-dsc-status-in-windows-2016/8467 "2017-04-20T09:00:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![romaniapug](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@romaniapug](https://forums.powershell.org/u/romaniapug)\
**Post date:** [April 20, 2017, 9:00am UTC](https://forums.powershell.org/t/cannot-retrieve-dsc-status-in-windows-2016/8467/1 "2017-04-20T09:00:46Z")

</div>

Hi all,

I’m trying to apply DSC (PUSH mode) on Windows Server 2016 (Azure VM). All works fine, DSC finishes, I get the event 4251 (Operation Consistency Check or Pull completed successfully.), but when I try to get the status from PowerShell console, with Get-DscConfigurationStatus, I receive : **WarningMessage LCM failed to retrieve the configuration status for file: C:\Windows\System32\Configuration\ConfigurationStatus{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx}-0.mof**

This is the LCM config:  
**Job runs under the following LCM setting.  
ConfigurationMode: ApplyOnly  
ConfigurationModeFrequencyMins: 15  
RefreshMode: PUSH  
RefreshFrequencyMins: 30  
RebootNodeIfNeeded: NONE  
DebugMode: True**

Any idea why I can’t get the status? I need this in an automated pipeline, which determines that DSC has finished and continues with other configuration steps.  
FYI, this works perfectly on Windows Server 2012 R2 (Azure VM).  
Thanks,  
Sorin

---

<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:** [April 20, 2017, 8:55pm UTC](https://forums.powershell.org/t/cannot-retrieve-dsc-status-in-windows-2016/8467/2 "2017-04-20T20:55:16Z")

</div>

I can’t say why it is unable to retrieve the mof file. I am doing similar processing and run Test-DSCConfiguration with the path to my mof file to verify that I am in a compliant state. Seems like Get-DSCConfiguirationStatus would make sense, but I suppose you could do it either way?

---

<div class="post-metadata">

**Author:** ![romaniapug](https://avatars.discourse-cdn.com/v4/letter/r/8e7dd6/32.png) [@romaniapug](https://forums.powershell.org/u/romaniapug)\
**Post date:** [April 20, 2017, 11:00pm UTC](https://forums.powershell.org/t/cannot-retrieve-dsc-status-in-windows-2016/8467/3 "2017-04-20T23:00:03Z")

</div>

Thanks for the reply. Will try that too, but I still can’t figure out why Get-DscConfigurationStatus won’t work.

---

<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/cannot-retrieve-dsc-status-in-windows-2016/8467/4 "2024-05-16T21:16:45Z")

</div>

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


