want to make sure I am doing it right. Getting lots of "Failure Count" when I run the baseline for Pending Reboots.
below is what I have created for the configuration Item
created a "Configuration Item" with settings to run the following powershell script - "Invoke-WmiMethod -Namespace "ROOT\ccm\ClientSDK" -Class CCM_ClientUtilities -Name DetermineIfRebootPending | select-object -ExpandProperty "RebootPending""
Set the compliance rule for Reboot Pending\Reboot State to Equal "False"
On some Collections (based on location/site), I am getting some results. but on some collections are am not getting any results.
Clients Settings - Computer Agent - Powershell execution policy = Bypass
Now, if I run this command (Invoke-WmiMethod -Namespace "ROOT\ccm\ClientSDK" -Class CCM_ClientUtilities -Name DetermineIfRebootPending) from my test computer that actually needs a reboot, it states as False in the "Reboot Pending" attribute. I also changed the ExecutionPolicy on my test computer to "Unrestricted" to see if it was a powershell issue.
Could it be GPO related?
thanks