Originally created by @outek in Datum as gaelcolas/Datum#52. As this is not a Datum but more DSC issue, I am duplicating the issue here. See for details.
I've noticed an error after the CU June for my 2016 Server, and i took me some time to find out, what possibly cause this error.
After the (update)reboot i was not longer able to build the mof files. The error message was this one:
===============================================================================
COMPILE ROOT CONFIGURATION
-------------------------------------------------------------------------------
/./Compile_Root_Configuration
C:\Temp\DSC\.build\DSC\ConfigData.build.ps1:63
-----------------------
FilteredNode:
-----------------------
PSDesiredStateConfiguration\Configuration : The term 'Set-PSTopConfigurationName' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At C:\Temp\DSC\RootConfiguration.ps1:7 char:1
+ configuration "RootConfiguration"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-PSTopConfigurationName:String) [Configuration], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CommandNotFoundException,Configuration
ERROR OCCURED DURING COMPILATION
Done /./Compile_Root_Configuration 00:00:15.2377078
As mentioned before, this happened only on a fresh patched buildserver.
I copied the Module PSDesiredStateConfiguration from an unpatched prod server to this server with the error to "C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration" and replaced this module. The feshly started build of the mof files went through as usual.
Originally created by @outek in Datum as gaelcolas/Datum#52. As this is not a Datum but more DSC issue, I am duplicating the issue here. See for details.
I've noticed an error after the CU June for my 2016 Server, and i took me some time to find out, what possibly cause this error. After the (update)reboot i was not longer able to build the mof files. The error message was this one:
As mentioned before, this happened only on a fresh patched buildserver.
I copied the Module PSDesiredStateConfiguration from an unpatched prod server to this server with the error to "C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration" and replaced this module. The feshly started build of the mof files went through as usual.