#!/bin/bash appInfoPlistName="/Library/DesktopCentral_Agent/SystemData/dcconfig_data.plist" machineInfoPlistName="/Library/DesktopCentral_Agent/SystemData/dcmachine_data.plist" /usr/libexec/PlistBuddy -c "Delete :HardwareUUID" $machineInfoPlistName 2>/dev/null /usr/libexec/PlistBuddy -c "Delete :SerialNumber" $machineInfoPlistName 2>/dev/null /usr/libexec/PlistBuddy -c "Delete :ImageDetectTime" $appInfoPlistName 2>/dev/null /usr/libexec/PlistBuddy -c "Delete :ImagedComputer" $appInfoPlistName 2>/dev/null /usr/libexec/PlistBuddy -c "Add :ImagedComputer string No" $appInfoPlistName 2>/dev/null exitCode=$? if [ "$exitCode" = "0" ]; then echo "Successfully Executed" cd /Library/DesktopCentral_Agent/bin ./dcconfig "ser" "refresh" else echo "Failed to set ImagedComputer as No, Please contact DesktopCentral support" fi exit $exitCode