Delete file from multiple locations
Log In or Register to download the BES file, and more.

0 Votes

Description

Deletes a specfic file from multiple locations. In this specific example, it iterates through each user's desktop looking for the file. This is for Vista+, it is only looking in the \Users\ folder and not Documents and Settings, further tweaks can make this fixlet work for you.

Property Details

ID2550
StatusProduction - Fully Tested and Ready for Production
TitleDelete file from multiple locations
DomainBESC
SourceInternal
Source Release Date8/7/2013 12:00:00 AM
Keywordsdelete multiple locations
Added by on 8/8/2013 6:32:11 AM
Last Modified by on 8/8/2013 6:32:11 AM
Counters 13697 Views / 79 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 257 fixlets and 9 analyses   * Results in a true/false
Show indented relevance
name of operating system as lowercase starts with "win"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists file "file.ext" of folders "Desktop" of folders of folder "C:\Users\"

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
delete __appendfile
delete __del.bat
appendfile {("del " & pathname of it & "%0d%0a") of files "file.ext" of folders "Desktop" of folders of folder "C:\Users\"}
copy __appendfile __del.bat
waithidden __del.bat
delete __appendfile
delete __del.bat
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!
Don.olsson -
what happens when your pathname has spaces in it