I’m attempting to convert this WMI query from Powershell into Bigix relevance. Any assistance would be greatly appreciated. In essence, I need to capture when this particular object in WMI reflects a pending reboot as it doesn’t always align with the results from the “Restart Needed” fixlet in Bigfix.
IF(Invoke-WmiMethod -Namespace “ROOT\ccm\ClientSDK” -Class CCM_ClientUtilities -Name DetermineIfRebootPending | select-object -ExpandProperty “RebootPending”)
{$Output = ‘True’}
ELSE
{$Output = ‘False’}
$Output