Deploy ComplianceWhitelist File
Log In or Register to download the BES file, and more.

0 Votes

Description

This task downloads the latest version of the "ComplianceWhitelist.txt" file to a computer.

If changes to the Master 'ComplianceWhitelist.txt' file are made this action must be taken to propagate the changes in the file to endpoints.


Property Details

ID25546
StatusBeta - Preliminary testing ready for more
TitleDeploy ComplianceWhitelist File
DomainBESC
CategoryUtility-Manage Windows Admins
SourceMike Consuegra
Source Release Date9/7/2018 12:00:00 AM
KeywordsManage Local Windows Administrators
Is TaskTrue
Added by on 9/17/2018 9:34:05 PM
Last Modified by on 9/17/2018 9:34:05 PM
Counters 1842 Views / 34 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


Actions

Action 1 (default)

Action Link Deploy  ComplianceWhitelist file
Script Type BigFix Action Script
///////////////////////////////////
// TO SET DIFFERENT FILE NAMES AND
// LOCATIONS CHANGE THE FOLLOWING
// PARAMETER VALUES
///////////////////////////////////

parameter "primarywhitelist" = "{(parent folder of regapp "BESClient.exe" as string) & "\ComplianceWhitelist\ComplianceWhitelist.txt"}"
parameter "backupwhitelist" = "{(((data folder of client) as string) & "\__Global\__Download\actionsite\_listbackup.txt")}"

// -END- PARAMETER DECLARATIONS



// Delete any old versions of the Whitelist file
delete "{((client folder of current site) as string) & "\__Download\ComplianceWhitelist.txt"}"
delete "{parameter "primarywhitelist"}"
delete "{parameter "backupwhitelist"}"

// Download the Compliance WhiteList file from the BES Server
download now as ComplianceWhitelist.txt http://:52311/CustomDownloads/ComplianceWhitelist/ComplianceWhitelist.txt
pause while {not exists file "__Download\ComplianceWhitelist.txt"}

// Make a backup copy of the whitelist file downloaded above
dos copy /Y "{((client folder of current site) as string) & "\__Download\ComplianceWhitelist.txt"}" "{parameter "backupwhitelist"}"

// Check for the existence of the 'ComplianceWhitelist' directory in the Client Folder
// If the directory exists, just copy the file over, if not, create the folder and then copy the file
if {not exists folder (parent folder of regapp "BESClient.exe" as string & "\ComplianceWhitelist")}
    dos mkdir "{(parent folder of regapp "BESClient.exe" as string) & "\ComplianceWhitelist"}"
    dos copy /Y "{((client folder of current site) as string) & "\__Download\ComplianceWhitelist.txt"}" "{parameter "primarywhitelist"}"
    
else
dos copy /Y "{((client folder of current site) as string) & "\__Download\ComplianceWhitelist.txt"}" "{parameter "primarywhitelist"}"
endif
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!