Similar questions have been asked, but I can't seem to find an answer.
We run a few different management systems, some of which can perform duplicate functions, but usually don't. In this case, we want one of those systems (BigFix) to verify a system is enrolled in Jamf, and vice-versa. We have the Jamf-verifying-BigFix-registration done, but still need to get BigFix to enroll a system in Jamf if it isn't already.
BigFix can install packages and run scripts, but it runs in the background with no user interaction. Since this is going to be running frequently on systems that are remote, going to each one (or connecting to each one) isn't feasible.
What I'm looking for is a script that will check for the existence of the Jamf files (this part's pretty easy), download the QuickAdd.pkg from our Jamf server, and install it (this part's also pretty easy). It can't ask for a username or password though, or ask for any unique information (like an enrollment ID), unless it retrieves one dynamically.