(imported topic written by JasonO91)
Greetings,
I’ve been working on a custom report to show files older than 60 days and file size of at least 50 MB.
The output should look something like this:
Computer Name | Pathname | Size | Modification Time | Scan Time Length
So anytime I create the relevance to generate the list of files, I can’t seem to get the modification time and size of each file.
pathnames of it whose (modification time of it < now - 60 * day and size of it > 50000) of descendants of folder “C:\Program files”
Anytime I try to concatenate the Size, Modification Time, etc I get errors such as:
(size of it, pathnames of it) whose (modification time of it < now - 60 * day and size of it > 50000) of descendants of folder “C:\Program files”
I’ve got a task that is scheduled for once a day that does the following:
// create a reg value to indicate last time started
regset "
HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient
" “LastSearchStarted”="{now}"
// delete temporary file (probably doesn’t exist, but might cause problems if it does)
delete __appendfile
// search computer and results in temp file
appendfile {names of it whose (modification time of it < now - 60 * day) of descendants of folder “C:\Program files” }
// overwrite previous results (if they exist)
delete “{pathname of parent folder of regapp “besclient.exe”}\searchresults.txt”
move __appendfile “{pathname of parent folder of regapp “besclient.exe”}\searchresults.txt”
// create a reg value to indicate last finish started
regset "
HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient
" “LastSearchFinish”="{now}"
Any help would prevent further head banging on desk.
Thanks,
Jason