Editing a Casper manged preference thru CLI

Not applicable

Hey

We have a user that has traveled out of our network and cannot reach the jss or our xserve. Right now his machine updates from our xserve with a user level managed preference. Under these setting JSS > Management > Managed Preferences > com.apple.SoftwareUpdate . Unfortunately, he has to update his laptop manually and because of the pref he cannot update directly from apple. Any idea oh how to manually edit the file thru cli to point to the default apple software update. I've tried to edit com.apple.SoftwareUpdate.plist but no success. Maybe I'm entering the wrong syntax ?

Also working with Jamf support as well but still no dice. Any help would be great. ~Joseph

~Joseph
...

HUGE
Joseph Simon / IT Support Technician
718 233 4016 / F 718 625 5157
www.hugeinc.com

4 REPLIES 4

jarednichols
Honored Contributor

He's going to have to kill the MCX cache.

Sudo dscl . -delete /Computers/localhost
Sudo rm –rf /Library/Managed Preferences

Reboot.

Then for good measure:
Sudo rm /Library/Preferences/com.apple.SoftwareUpdate.plist

j
--
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436

dderusha
Contributor

Joseph-

Toss out the managed preferences, and also toss out the SoftwareUpdate.plist
Open the software update again and it should be pointing back at the default apple site.

If you are managing via MCX, when they reboot the preference will be set back to your local SUS.

Thanks

Dan De Rusha

tlarkin
Honored Contributor

I have some issues sometimes with MCX, and I pretty much do the same
thing...

sudo -s

rm -rf /Library/Managed Preferences/*

dscl . delete /Computers

shutdown -r NOW

Not applicable

Thanks all for the help

Wrote a small shell script with everyones input that works. Anyone know how to have it persistent after a restart? This user will be out of the office for a few months. ~Joseph

#!/bin/sh

# default_SWU.sh
#
#
# Created by HUGE | Joseph Simon on 8/9/10.
# Sets the SWU to default must be rerun after each restart

echo "Enter Username"
read un

rm -rf /Users/"$un"/Library/Preferences/com.apple.SoftwareUpdate.plist
rm -rf /Library/Preferences/com.apple.SoftwareUpdate.plist
rm -rf /Library/Managed Preferences/*
dscl . delete /Computers

Echo "Software Update Server set to default, Please run Apple software update"

exit 0