Skip to content

automated re-enrollment support with --installpackage#119

Closed
cubandave wants to merge 8 commits intokc9wwh:masterfrom
cubandave:pr/2
Closed

automated re-enrollment support with --installpackage#119
cubandave wants to merge 8 commits intokc9wwh:masterfrom
cubandave:pr/2

Conversation

@cubandave
Copy link

Hey kc9wwh,

I've made a new tool to automate re-enrollment for not DEP devices when using your script.

Would be super cool to put code into your master. Check it out. I sent you a video on slack as a ealry demo. I'll make a video demo tomorrow.

https://github.com/cubandave/re-enroll-mac-into-jamf-after-wipe

@cubandave
Copy link
Author

I've now fully validated my own code with Travis CI. Including my own Project. That thing is awesome!

@kenchan0130
Copy link
Collaborator

kenchan0130 commented Jun 25, 2019

Hi @cubandave,
Thank you for your contribution.

It seems that your patches strongly depend on re-enroll-mac-into-jamf-after-wipe.

This project is focused on upgrading only.
However, I am aware that this project is poorly extensible.

I think that it is possible to apply changes that accepts a package path to a jamf script argument like #110.
In doing so, I would say each processes will be loosely coupled.

@kenchan0130
Copy link
Collaborator

@taniguti
There is also about this, so how about adding another PR that changes the path of package to pass to the argument 10 of jamf script?

@ryangball
Copy link
Contributor

If this end result of enrollment was desired, this would accomplish the same goal:

# Create required directories
mkdir -p /usr/local/jamf/bin /usr/local/bin

# Move the jamf binary
mv /tmp/jamf /usr/local/jamf/bin

# Make the jamf binary executable
chmod +x /usr/local/jamf/bin/jamf

# Create a symbolic link
ln -s /usr/local/jamf/bin/jamf /usr/local/bin

# Create a configuration file
jamf createConf -k -url enrollmentURL

# Enroll the computer
jamf enroll -invitation invitationID

@cubandave
Copy link
Author

Hey @kenchan0130 I can make the changes to only have it installPackage with a parameter from $10. I’ll re work the re-enroll project to make it create the package first and put the package in a static location.

@ryangball that’s exactly how the re-enroll project does that.

@taniguti
Copy link
Collaborator

I agree with @kenchan0130 . To use $10 for additional package for erase option sounds good.

@cubandave
Copy link
Author

Cool. I’ll make a new pull request soon with that setup. Error checking and all.

@kenchan0130
Copy link
Collaborator

@cubandave
I am trying to do actions at #121 and #122.

@cubandave cubandave closed this by deleting the head repository Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants