Cleanup Relay ActiveDownloads folder
Log In or Register to download the BES file, and more.

0 Votes

Description

Deletes files that are older than 15 days in the bfmirror\downloads\ActiveDownloads of the relay client.

Property Details

ID26937
StatusProduction - Fully Tested and Ready for Production
TitleCleanup Relay ActiveDownloads folder
DomainBESC
SourceInternal
Source Release Date8/11/2021 12:00:00 AM
KeywordsRelay, ActiveDownloads
Added by on 6/10/2022 12:27:11 PM
Last Modified by on 6/10/2022 12:27:11 PM
Counters 114 Views / 0 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 18 fixlets and 3 analyses   * Results in a true/false
Show indented relevance
exists relay service
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists files whose(exists (now - it) whose(it > 15 * day) of maxima of (creation times of it; modification times of it) of it) of folder "C:\Program Files (x86)\BigFix Enterprise\BES Relay\wwwrootbes\bfmirror\downloads\ActiveDownloads"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
createfile until EOF
{("del %22" & pathname of it & "%22 /q%0a") of files whose(exists (now - it) whose(it > 15 * day) of maxima of (creation times of it; modification times of it) of it) of folder "C:\Program Files (x86)\BigFix Enterprise\BES Relay\wwwrootbes\bfmirror\downloads\ActiveDownloads"}
EOF

delete delfiles.cmd
copy __createfile delfiles.cmd
waithidden delfiles.cmd
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!