Please help in modification for below code for getting results on desired date.
curl -k --insecure --user XXXX:XXXX --data-urlencode “relevance=(id of computer of it, Names of Computer of it, concatenation “”|”" of values of it) of results whose (exists values of it) of bes property ““Patch and Install Date””"
((if (exists property “HotFixID” of it) then (string value of property “HotFixID” of it) else ("")), (if (exists property “InstalledOn” of it) then ((if (exists hexadecimal integer (it)) then (((month of it as integer as string&"/"& day_of_month of it as integer as string&"/"&year of it as string) of ((january 1 of 1601)+((hexadecimal integer (it)/(864000000000))day))) of it) else (it)) of string value of property “InstalledOn” of it) else ("")), (if (exists property “Description” of it) then (string value of property “Description” of it) else (""))) of select objects " from Win32_QuickFixEngineering" of WMI
Output for patch and install date are -
KB2957689, 5/18/2016,
KB981391, 10/8/2010,
KB981391, 7/26/2014,
above is the relevance code for Patch & install date, and below is the cURL script for fetching its data in xml file.
Requirement is to capture data on recent date or any specific date from “Patch & install date” output. Currently when I running above script its fetching all data.