Create a policy for the computers you do not want macOS Onboarding to deploy to.
In Jamf Pro , click Computers in the sidebar. Click Policies in the sidebar. Click New . In the General payload, enter a display name for the policy (e.g., Exclude Computers from macOS Onboarding). Use the General payload to configure the following settings: Select the Scripts payload and click Configure . Click Add for the script you previously created in Creating a Script for macOS Onboarding Exclusion . Click the Scope tab and add the smart computer group you previously created in Creating a Smart Group to Identify Computers for Exclusion . Click Save .
The policy deploys to computers in your smart group. The script marks macOS Onboarding as complete on target computers. As a result, macOS Onboarding does not deploy to computers that have executed the policy.