I am looking for an RP creation for 2016 and 2019. Below are the logic and i am unable to create analysis based on below logic it will be great if some one can help me.
Installed date
q: (("1 Jan 1601 " as date + ((value “InstallTimeHigh” of it as integer * 4294967296 + value “InstallTimeLow” of it as integer) / 10000000 * second )) of it as string | “No install record”) of (keys (unique values of names of values of keys “Owners” of keys whose (name of it starts with “Package_for_RollupFix~” and (value “CurrentState” of it as integer is contained by set of (112;128))) of it) of it) of keys “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages” of native registry
A: Thu, 28 Jan 2021
T: 214.382 ms
compliance status logic
Parameter PT= if current date <= Current Patch Tuesday then last month patch Tuesday else Current patch Tuesday
Compliance Status =if installed date < (Parameter PT) then Not Compliant else Compliant
Current patch Tuesday
(if (it > current date) then (it) else ( (it + 7day) of first tuesday of month_and_year of (current date ) ) ) of ( (it + 7day) of first tuesday of month_and_year of current date )
Lats patch Tuesday
(if (it > current date) then (it) else ( (it + 7day) of first tuesday of month_and_year of (current date - 1 * month ) ) ) of ( (it + 7day) of first tuesday of month_and_year of current date )