Disabling the Jamf Connect Login Window via Script

I’ve found that it can be useful to have the Jamf Connect login window appear initially during device setup, then I’d prefer it to switch to the local window. Yes, there is the local login button, but it’s nice to have the Mac return to “normal” macOS functionality after the initial setup.

Here’s a Script I used to make this happen:

The added benefit of this script is that if used in a “on login” policy in Jamf Pro, you can quickly and easily re-provision devices.