Relevance syntax to find PC's pending reboot

(imported topic written by SteveRinMa)

Hello,

I am new to BigFix, we have just switched over from SCCM 2007, my question is on writing relevance for a Fixlet or a group to target systems that are pending reboot after installing Windows updates, we suppress reboot in the Post actions tab.

We would like to have a Fixlet that when the relevance shows a PC pending reboot it will be rebooted Sunday morning between 2 AM and 6 AM, if it is still turned on and has not been rebooted.

So far I have tried the following

If Exists

“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired” then True

else False

This works in the Debugger, but will not populate PC’s in a Fixlet or group. I also tried adding a property, and this returns all PC’s as True, and I know they are not pending reboot.

We do have a relevance training class in 6 months, but cannot wait that long so if anyone has done this or has any suggestions please reply.

Thank you,

Steve

(imported comment written by Zakkus)

You can probably easily do this by using the “pending restart” inspector.

You can create a task that just has the relevance “pending restart”, and has an action that reboots the machine if relevant. Then just issue an action that only runs on sundays between 2 and 6 (set in the “execution” tab of the Take Action Dialog), and it should do what you want.

-Zak