( concatenations " - "of string values of ( property "HotFixID"ofit ; property "Description"ofit ; property "InstalledOn"ofit ) ofit ) ofitwhose ( 365 * day >= ( ( current date - it ) of ( itas date ) of ( ( ( itas integer as string ) of preceding text of last "/"of following text of first "/"ofit ) & " " & ( preceding text of first "/"ofitas integer as month as three letters ) & " " & ( following text of last "/"ofitas integer as string ) ) of string value of property "InstalledOn"ofit ) ) of select objects "HotFixID,Description,InstalledOn from Win32_QuickFixEngineering"of wmis
(concatenations " - "of string values of ( property "HotFixID"ofit ; property "Description"ofit ; property "InstalledOn"ofit ) ofit) ofitwhose( 365 * day >= ( (current date - it) of (itas date) of ( ((itas integer as string) of preceding text of last "/"of following text of first "/"ofit ) & " " & (preceding text of first "/"ofitas integer as month as three letters) & " " & (following text of last "/"ofitas integer as string)) of string value of property "InstalledOn"ofit) ) of select objects "HotFixID,Description,InstalledOn from Win32_QuickFixEngineering"of wmis
number of locked lines of files ( ( it & ".log"; it & ".bkg" ) of ( year ofitas string & month ofitas two digits & day_of_month ofitas two digits ) of ( ( it; it - 1*day ) of current date ) ) of folders "Logs"of folders "__Global"of data folders of client
number of locked lines of files ((it & ".log"; it & ".bkg") of (year ofitas string & month ofitas two digits & day_of_month ofitas two digits) of ( (it; it - 1*day) of current date)) of folders "Logs"of folders "__Global"of data folders of client
( concatenations of ( ( itas string ) of year of it; ( itas two digits ) of month of it; ( itas two digits ) of day_of_month ofit ) ) of ( it; it - 1 * day ) of current date
(concatenations of ((itas string) of year of it;(itas two digits) of month of it; (itas two digits) of day_of_month ofit)) of (it; it - 1 * day) of current date
files ( ( it & ".log"; it & ".bkg" ) of ( concatenations of ( ( itas string ) of year of it; ( itas two digits ) of month of it; ( itas string ) of day_of_month ofit ) ) of ( it; it - 1 * day ) of current date ) of folders "Logs"of folders "__Global"of data folders of clients
files ((it & ".log"; it & ".bkg") of (concatenations of ((itas string) of year of it;(itas two digits) of month of it; (itas string) of day_of_month ofit)) of (it; it - 1 * day) of current date) of folders "Logs"of folders "__Global"of data folders of clients
computer name, ( ( month ofitas two digits & "/" & day_of_month ofitas two digits & "/" & year ofitas string ) of dates ( local time zone ) of times generated of it, ( time of times ( local time zone ) of times generated ofit ) , concatenation of substrings separated by "%0d%0a"of ( preceding text of first "%0d%0a"of following text of last "Account Name:%09%09"ofit ) of ( descriptions ofit ) ) of records whose ( event id ofit=4740and now - time generated ofit < 1*day ) of ( security event log )
computer name, ((month ofitas two digits & "/" & day_of_month ofitas two digits & "/" & year ofitas string) of dates (local time zone) of times generated of it, (time of times (local time zone) of times generated ofit), concatenation of substrings separated by "%0d%0a"of (preceding text of first "%0d%0a"of following text of last "Account Name:%09%09"ofit) of (descriptions ofit)) of records whose (event id ofit=4740and now - time generated ofit < 1*day) of (security event log)
( ( now > item 1ofit ) AND ( if ( item 0ofit="once" ) then ( ( item 1ofit & item 2ofit ) ) elseif ( item 0ofit="daily" ) then ( ( item 1ofit + ( ( now - item 1ofit ) / day / item 3ofit * ( day * item 3ofit ) ) ) & item 2ofit ) elseif ( item 0ofit="weekly" ) then ( it & ( ( value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer ) * minute ) ) of ( maximum of ( it - 1*day; it - 2*day; it - 3*day; it - 4*day; it - 5*day; it-6 * day;it; it + 1*day; it + 2*day;it + 3*day;it + 4*day;it + 5*day;it + 6*day ) whose ( it < now AND ( ( ( value of setting "MaintenanceWindow_DaysOfWeek"of client as string as lowercase ) ) contains ( first 3of ( itas string ) as day_of_week as string as lowercase ) ) ) of ( ( ( current date - item 0ofit ) / ( item 3ofit * week ) * ( item 3ofit * week ) ) + item 0ofit & item 1ofit ) of ( ( ( ( date ( local time zone ) of item 1ofit - ( ( first 3of ( item 1ofitas string ) as day_of_week ) - sunday ) ) ) , time ( local time zone ) of item 1of it, item 2of it, item 3ofit ) ) ) elseif ( item 0ofit="monthly" ) then ( it & ( value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer * minute ) ) of ( ( if ( item 3ofit=0 ) then ( maximum of ( ( ifexists ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( current month & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) then ( ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( current month & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else nothing ) ; ( ifexists ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - month ) & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) then ( if ( current month as integer =1 ) then ( ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - month ) & ( ( current year ) - 1* year ) ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - month ) & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else nothing ) ; ( ifexists ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - ( 2*month ) ) & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) then ( if ( current month as integer =1 ) then ( ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - ( 2*month ) ) & ( ( current year ) - 1* year ) ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else ( ( first ( value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week ) of ( ( current month - ( 2*month ) ) & current year ) + ( ( value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1 ) * week ) ) ) & time ( local time zone ) of item 1ofit ) else nothing ) ) whose ( it < now ) ) else ( maximum of ( ( ifexists ( ( current month & ( day_of_month ( item 3ofit ) ) ) ) then ( ( ( current month & ( day_of_month ( item 3ofit ) ) ) & current year ) & time ( local time zone ) of item 1ofit ) else nothing ) ; ( ifexists ( ( ( current month - 1* month ) & ( day_of_month ( item 3ofit ) ) ) ) then ( if ( current month as integer =1 ) then ( ( ( ( current month - 1*month ) & ( day_of_month ( item 3ofit ) ) ) & ( current year - 1*year ) ) & time ( local time zone ) of item 1ofit ) else ( ( ( current month - 1*month ) & ( day_of_month ( item 3ofit ) ) ) & current year ) & time ( local time zone ) of item 1ofit ) else nothing ) ; ( ifexists ( ( ( current month - 2*month ) & ( day_of_month ( item 3ofit ) ) ) ) then ( if ( current month as integer =1 ) then ( ( ( ( current month - 2*month ) & ( day_of_month ( item 3ofit ) ) ) & ( current year - 1*year ) ) & time ( local time zone ) of item 1ofit ) else ( ( ( current month - 2*month ) & ( day_of_month ( item 3ofit ) ) ) & current year ) & time ( local time zone ) of item 1ofit ) else nothing ) ) whose ( it < now ) ) ) ) else error "invalid maintenance type" ) contains now ) of ( value of setting "MaintenanceWindow_RepeatType"of client, ( value of setting "MaintenanceWindow_StartTime"of client & " " & local time zone as string ) as time, ( value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer ) * minute, value of setting "MaintenanceWindow_RepeatInterval"of client as integer ) = value of setting "__Lockstate"of client as boolean
((now > item 1ofit) AND (if (item 0ofit="once") then ((item 1ofit & item 2ofit)) elseif (item 0ofit="daily") then ((item 1ofit + ((now - item 1ofit) / day / item 3ofit * (day * item 3ofit))) & item 2ofit) elseif (item 0ofit="weekly") then (it & ((value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer) * minute)) of (maximum of (it - 1*day; it - 2*day; it - 3*day; it - 4*day; it - 5*day; it-6 * day;it; it + 1*day; it + 2*day;it + 3*day;it + 4*day;it + 5*day;it + 6*day) whose (it < now AND (((value of setting "MaintenanceWindow_DaysOfWeek"of client as string as lowercase)) contains (first 3of (itas string) as day_of_week as string as lowercase))) of (((current date - item 0ofit) / (item 3ofit * week) * (item 3ofit * week)) + item 0ofit & item 1ofit) of ((((date (local time zone) of item 1ofit - ((first 3of (item 1ofitas string) as day_of_week) - sunday))) , time (local time zone) of item 1of it, item 2of it, item 3ofit))) elseif (item 0ofit="monthly") then (it & (value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer * minute)) of ((if (item 3ofit=0) then (maximum of ((ifexists (first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of (current month & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week)) then (((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of (current month & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else nothing) ; (ifexists (first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - month) & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week)) then (if (current month as integer =1) then (((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - month) & ((current year) - 1* year)) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else ((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - month) & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else nothing) ; (ifexists (first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - (2*month)) & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week)) then (if (current month as integer =1) then (((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - (2*month)) & ((current year) - 1* year)) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else ((first (value of setting "MaintenanceWindow_DaysOfWeek"of client as day_of_week) of ((current month - (2*month)) & current year) + ((value of setting "MaintenanceWindow_DayOrdinal"of client as integer - 1) * week))) & time (local time zone) of item 1ofit) else nothing)) whose (it < now)) else (maximum of ((ifexists ((current month & (day_of_month (item 3ofit)))) then (((current month & (day_of_month (item 3ofit))) & current year) & time (local time zone) of item 1ofit) else nothing) ; (ifexists (((current month - 1* month) & (day_of_month (item 3ofit)))) then (if (current month as integer =1) then ((((current month - 1*month) & (day_of_month (item 3ofit))) & (current year - 1*year)) & time (local time zone) of item 1ofit) else (((current month - 1*month) & (day_of_month (item 3ofit))) & current year) & time (local time zone) of item 1ofit) else nothing) ; (ifexists (((current month - 2*month) & (day_of_month (item 3ofit)))) then (if (current month as integer =1) then ((((current month - 2*month) & (day_of_month (item 3ofit))) & (current year - 1*year)) & time (local time zone) of item 1ofit) else (((current month - 2*month) & (day_of_month (item 3ofit))) & current year) & time (local time zone) of item 1ofit) else nothing)) whose (it < now)))) else error "invalid maintenance type") contains now) of (value of setting "MaintenanceWindow_RepeatType"of client, (value of setting "MaintenanceWindow_StartTime"of client & " " & local time zone as string) as time, (value of setting "MaintenanceWindow_WindowSizeMinutes"of client as integer) * minute, value of setting "MaintenanceWindow_RepeatInterval"of client as integer) = value of setting "__Lockstate"of client as boolean