Cleanup old console caches - Windows
Log In or Register to download the BES file, and more.

1 Votes

Description

<enter a description of the task here>

Property Details

ID24871
StatusAlpha - Code that was just developed
TitleCleanup old console caches - Windows
DomainBESC
Download Size0
SourceInternal
Source IDjgstew
Source Release Date1/2/2018 12:00:00 AM
Is TaskTrue
Added by on 1/2/2018 9:46:50 PM
Last Modified by on 1/2/2018 9:46:50 PM
Counters 303 Views / 26 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

isWindows (Relevance 1172)
Used in 1097 fixlets and 523 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists (now - it) whose(it > 15*day) of modification times of folders of folders "AppData\Local\BigFix\Enterprise Console" of folders of folders "C:\Users"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
parameter "numToDelete"="{ number of (now - it) whose(it > 30*day) of modification times of folders of folders "AppData\Local\BigFix\Enterprise Console" of folders of folders "C:\Users" }"

// This will delete only 1 old folder even though there could be many. It is designed to run over and over until all folders have been deleted.
folder delete "{ (preceding text of first ";;GetOnlyOne;;" of it | it) of concatenations ";;GetOnlyOne;;" of pathnames of folders whose(exists (now - it) whose(it > 30*day) of modification times of it) of folders "AppData\Local\BigFix\Enterprise Console" of folders of folders "C:\Users" }"

// 1 is a success, 0 is a failure
exit { (it - number of (now - it) whose(it > 30*day) of modification times of folders of folders "AppData\Local\BigFix\Enterprise Console" of folders of folders "C:\Users") of (it as integer) of parameter "numToDelete" }
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!