Action 1
Action Link Click
here to switch the action site masthead using a network share. You will be prompted for the full pathname to the network location of the new action site masthead file.
Script Type
BigFix Action Script
setting "__RelayServer1"="" on "{parameter "action issue date" of action}" for client
setting "__RelayServer2"="" on "{parameter "action issue date" of action}" for client
setting "_BESClient_RelaySelect_FailoverRelay"="" on "{parameter "action issue date" of action}" for client
setting "_BESClient_Register_Affiliation_SeekList"="" on "{parameter "action issue date" of action}" for client
setting "_BESClient_RelaySelect_TertiaryRelayList"="" on "{parameter "action issue date" of action}" for client
action parameter query "SwitchMastheadPath" with description "Please Enter a Full Network Path to the New Action Site Masthead:" with default value "\\server_name\share_name\masthead.afxm"
copy "{parameter "SwitchMastheadPath" of action}" "{following text of last "\" of parameter "SwitchMastheadPath" of action}"
delete "{pathname of parent folder of regapp "besclient.exe"}\ActionSite.afxm"
copy "{following text of last "\" of parameter "SwitchMastheadPath" of action}" "{pathname of parent folder of regapp "besclient.exe"}\ActionSite.afxm"
delete __appendfile
appendfile @echo off
appendfile echo Your administrator is restarting the BES Client... Please Wait...
appendfile net stop BESClient
appendfile net start BESClient
delete clientRestart.bat
copy __appendfile clientRestart.bat
runhidden clientRestart.bat
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Action 2
Action Link Click
here to switch the action site masthead using a URL.
Script Type
BigFix Action Script
setting "__RelayServer1"="" on "{parameter "action issue date" of action}" for client
setting "__RelayServer2"="" on "{parameter "action issue date" of action}" for client
setting "_BESClient_RelaySelect_FailoverRelay"="" on "{parameter "action issue date" of action}" for client
setting "_BESClient_Register_Affiliation_SeekList"="" on "{parameter "action issue date" of action}" for client
setting "_BESClient_RelaySelect_TertiaryRelayList"="" on "{parameter "action issue date" of action}" for client
download http://lab.bigfix.me:52311/masthead/masthead.afxm
delete "{pathname of parent folder of regapp "besclient.exe"}\ActionSite.afxm"
copy "__Download\masthead.afxm" "{pathname of parent folder of regapp "besclient.exe"}\ActionSite.afxm"
delete __appendfile
appendfile @echo off
appendfile echo Your administrator is restarting the BES Client... Please Wait...
appendfile net stop BESClient
appendfile net start BESClient
delete clientRestart.bat
copy __appendfile clientRestart.bat
runhidden clientRestart.bat
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.