Troubleshooting: Reset BES Computer Data
Log In or Register to download the BES file, and more.

1 Votes


Reset BES Computer Data

This task stops the BESAgent process, removes all client data, then restarts the BESAgent service. The task will never complete, as the computer registers under a new computer ID after restarting the service.

Property Details

StatusAlpha - Code that was just developed
TitleTroubleshooting: Reset BES Computer Data
Download Size0
Source IDrzm102
Source Release Date3/23/2017 12:00:00 AM
Keywordstroubleshooting, macOS
Is TaskTrue
Added by on 3/23/2017 11:40:01 AM
Last Modified by on 3/23/2017 11:40:01 AM
Counters 3233 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.


Used in 216 fixlets and 98 analyses   * Results in a true/false
Show indented relevance
mac of operating system


Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
prefetch ActionSite.afxm sha1:8edbe1be4c154311e5f2a0733269f558a2c4160b size:155970 sha256:2382cf942ce2955fea611060a26c247104ae20af7f9d7daae7103659702c4a3e
move "__Download/ActionSite.afxm" "/tmp/ActionSite.afxm"
createfile until __EOF__
# Unload daemon
launchctl unload /Library/LaunchDaemons/BESAgentDaemon.plist
# Delete machine records
rm -R "/Library/Application Support/BigFix/BES Agent/"*
rm "/Library/Preferences/com.bigfix.BESAgent.plist"
# Setup Folders
mkdir -p "/Library/Application Support/BigFix/BES Agent/"
# Move actionsite files
mv "/tmp/ActionSite.afxm" "/Library/Application Support/BigFix/BES Agent/"
launchctl load /Library/LaunchDaemons/BESAgentDaemon.plist
wait chmod 555 "{(client folder of current site as string) & "/__createfile"}"
delete "/tmp/"
move "{(client folder of current site as string) & "/__createfile"}" "/tmp/"
run /bin/sh -c "trap '' 15; /tmp/ 2>&1 > /tmp/BES_Uninstall.log"
Success Criteria

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


Social Media:
Share this page on Yammer


Log In or Register to leave comments!
rustymyers -
BigFix has my permission to take/adapt/publish this content without attribution