Open FallenGameR opened 5 years ago
xPendingReboot is fickle :-)
CCM_ClientUtilities: Invalid namespace can be avoided by specifying SkipCcmClientSDK = $True. that's just the check to see if SCCM thinks a reboot is needed; and the class isn't available if you don't have the SCCM client.
As for the no actual reboot, ensure the LCM is allowed to reboot the node
(Get-DscLocalConfigurationManager).RebootNodeIfNeeded
must be $true; if not set if before hand with set-DscLocalConfigurationManager
Thanks @brinkers
@brinkers
So, by default it doesn't check to see if the SCCM client is installed and just fails if it isn't? Why not default to not searching for the SCCM client and having SCCM admins opt-in since they know that its there?
This is related to #13. I will be addressing this when I move the resource to ComputerManagementDsc. @b3nt0 - your suggestion is correct and will be addressed during the migration.
There is an issue where regardless of the SCCM state of the client a reboot will never be triggered. This is because there is no check for the status in the Test-TargetResource. I'll be addressing this during the migration.
This has been fixed over in the new PendingReboot in ComputerManagementDsc. @gaelcolas - can you close this one?
Details of the scenario you tried and the problem that is occurring
I'm using xPendingReboot at the and of my configuration, but the logs suggest that: 1) xPendingReboot couldn't query CCM_ClientUtilities because it failed to find some needed namespace 2) Reboot is required anyway and it was not done.
Verbose logs showing the problem
Suggested solution to the issue
Fix it please =) Or provide a workaround.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)