change software update server on a non jamf computer

Not applicable

Dear all,

I removed a few macbooks from our database since they are gone from our site and now people tell me they cannot update via Software update since it stills tries to ask for the JSS server
I removed them from the JSS inventory and if I ask them to do the /usr/sbin/jamf removeFramework they claim they do not have it

so how can I change it back to APPLE software update?
thanks in advance

Carmelo Lopez Portilla

ITS EMBL Heidelberg
Tel. +49 (0) 6221 387 8444
Fax +49 (0) 6221 387 8517
email: lopez at embl.de

8 REPLIES 8

pbachuwa
New Contributor

Can you send them command using ARD?

Jamf removeSWUSettings

This will allow it to point back to Apple.

Patrick Bachuwa

Client Technical Services

Sears Holdings Corporation

Michigan Campus

3000 W. 14 Mile Road

Royal Oak, MI 48073-1717

Phone: 248 637-0350

stevewood
Honored Contributor II
Honored Contributor II

Remove com.apple.SoftwareUpdate.plist from /Library/Preferences.

Steve

Sent from my iPad

dderusha
Contributor

Carmelo-

If you use MCX to enforce your software update you may have to remove Managed preferences too.

here is a overall jamf removal list

In Terminal: (mcx removal)
-- sudo dscl . -delete /Computers/localhost

to get Users name:

-- sudo dscl . list /Users

-- sudo dscl . -mcxdelete /Users/<Username>

In FInder:

-- Library/Managed Preferences - see if com.jamfsoftware.mcx is there. If Yes - Delete Managed Preferences Folder

sudo jamf removeSWUSettings

Final step to remove JAMF

/usr/sbin/jamf removeFramework /usr/sbin/jamf removeFramework

Additionally, there is a command will remove all Casper Suite related files from the client:

jamf removeFramework

Reboot

Files installed by JAMF Software on managed clients

The following files/directories may be installed onto a computer managed by the Casper Suite:

jamf binary:

/usr/sbin/jamf

jamfVNC binary:

/usr/sbin/jamfvnc

JAMF startup script:

/System/Library/StartupItems/JAMF

Scheduled tasks, Policies, Restricted Software, Database backups (on the JSS only)

/System/Library/LaunchDaemons/com.jamfsoftware.task.*

Storage directory for Receipts, Composer Diffs, PreInstalled, etc:

/Library/Application Support/JAMF

Login/Logout hooks:

/var/root/Library/Preferences/com.apple.loginwindow.plist

Scripts:

/etc/scripts

Autorun Cache (if enabled):

/Library/Caches/com.jamfsoftware.autorun

JAMF configuration file:

/etc/jamf.conf

JAMF log file:

/var/log/jamf.log

Also, preference files for the Casper Suite applications (Casper.app, Casper Admin.app, Recon.app and Composer.app) are stored here:

/Library/Preferences/com.jamfsoftware.jamf.plist ~/Library/Preferences/com.jamfsoftware.*

Dan De Rusha

Janowski
New Contributor II

This was a big "win" for us too. Every once in a while we'd have a similar need and we couldn't get the machines completely off our SUS either.

Thanks a ton for the walkthrough Dan.

ben janowski
Senior Macintosh Support Technician
Kohl's Mac Support Team
262.703.1396 | benjamin.janowski at kohls.com

Not applicable

Thanks a lot
I had time to test this
I will do a script to automate it
Cheers

Carmelo Lopez Portilla

ITS EMBL Heidelberg
Tel. +49 (0) 6221 387 8444
Fax +49 (0) 6221 387 8517
email: lopez at embl.de

tlarkin
Honored Contributor

I think if there is time permitting you should just reimage your
machines with a basic, non managed, no jamf binary image when
decommissioning them. If not, a script can be automated to clean out
every user account, clear all management, clear out all jamf stuff, and
then enable the initial user setup screen.

Here would be an example....

#!/bin/bash

# hard code variables for removing all user data and jamf data from a
decommissioned machine

JAMFList=" /usr/sbin/jamf /usr/sbin/jamfvnc /etc/jamf.conf /var/log/jamf.log /System/Library/StartupItems/JAMF /Library/Application Support/JAMF "

# get a list of users, in /Users

UserList=/bin/ls /Users | /usr/bin/grep -v "Shared"

# now loop to get rid of users

for u in ${UserList} ; do

/usr/bin/dscl . delete /Users/$u

# now delete their local data

/bin/rm -rf /Users/$u

done

# delete the computer records in MCX

dscl . delete /Computers

# now delete the managed preferences

/bin/rm -rf "/Library/Managed Preferences"

# now to unamange the jamf client and remove jamf files

/usr/sbin/jamf removeFramework

# now to make sure all files are clean

for file in ${JAMFList}; do

if [[ -e ${file} ]]

then /bin/rm -rf ${file}

else /bin/echo "${file} not present" fi

# now enabled the Apple Setup Done file so it boots with the create a
user screen

/bin/rm -rf /var/db/.AppleSetupDone

exit 0

This of course is not tested, but I think you could do something like
this. I just wrote it up really fast. So, please test it. Though my
initial thoughts would be to reimage the machine with a non managed, non
capser image when you get rid of it.

-Tom

Not applicable

Hi Thanks but I cannot redeploy the machines
They are private and users keep them after finishing at my company
Will work on the script
Thanks a lo
Cheers

Carmelo Lopez Portilla

ITS EMBL Heidelberg
Tel. +49 (0) 6221 387 8444
Fax +49 (0) 6221 387 8517
email: lopez at embl.de

tatiang
New Contributor

I had changed the Software Update Server setting (but not via the JSS), and
this worked for me:

defaults delete /Library/Preferences/com.apple.SoftwareUpdate CatalogURL

Tatian



Tatian Greenleaf
Associate Director of Technology
Saint Mark's School
(415) 472-8000 x1014