Home > Uncategorized > Suppressing Siri pop-up windows on macOS Sierra

Suppressing Siri pop-up windows on macOS Sierra

Starting in 10.7.2, Apple set the iCloud sign-in to pop up on the first login.

LWScreenShot 2016 09 20 at 10 38 00 AM

In 10.10, Apple added a new Diagnostics & Usage window that pops up at first login after the iCloud sign-in.

LWScreenShot 2016 09 20 at 7 35 05 AM

In 10.12, Apple added another new pop-up window for Siri.

LWScreenShot 2016 09 20 at 10 39 04 AM

 

To stop the Siri pop-up window from appearing for your home folder, run the command shown below:

defaults write com.apple.SetupAssistant DidSeeSiriSetup -bool TRUE

Since you normally will be able to run this command only after you’ve seen the Siri pop-up window, I’ve updated my script for suppressing the iCloud and Diagnostic pop-up windows to now also suppress the Siri pop-up window. For more details, see below the jump.

The script is below and is also available on my GitHub repo. This script is also available as a payload-free package on my GitHub repo, available for download from the payload_free_package directory available from the link above.


#!/bin/bash
# Determine OS version
osvers=$(sw_vers -productVersion | awk -F. '{print $2}')
sw_vers=$(sw_vers -productVersion)
# Determine OS build number
sw_build=$(sw_vers -buildVersion)
# Checks first to see if the Mac is running 10.7.0 or higher.
# If so, the script checks the system default user template
# for the presence of the Library/Preferences directory. Once
# found, the iCloud, Diagnostic and Siri pop-up settings are set
# to be disabled.
if [[ ${osvers} -ge 7 ]]; then
for USER_TEMPLATE in "/System/Library/User Template"/*
do
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "${sw_vers}"
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant LastSeenBuddyBuildVersion "${sw_build}"
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeSiriSetup -bool TRUE
done
# Checks first to see if the Mac is running 10.7.0 or higher.
# If so, the script checks the existing user folders in /Users
# for the presence of the Library/Preferences directory.
#
# If the directory is not found, it is created and then the
# iCloud, Diagnostic and Siri pop-up settings are set to be disabled.
for USER_HOME in /Users/*
do
USER_UID=`basename "${USER_HOME}"`
if [ ! "${USER_UID}" = "Shared" ]; then
if [ ! -d "${USER_HOME}"/Library/Preferences ]; then
/bin/mkdir -p "${USER_HOME}"/Library/Preferences
/usr/sbin/chown "${USER_UID}" "${USER_HOME}"/Library
/usr/sbin/chown "${USER_UID}" "${USER_HOME}"/Library/Preferences
fi
if [ -d "${USER_HOME}"/Library/Preferences ]; then
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "${sw_vers}"
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant LastSeenBuddyBuildVersion "${sw_build}"
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant DidSeeSiriSetup -bool TRUE
/usr/sbin/chown "${USER_UID}" "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant.plist
fi
fi
done
fi
exit 0

For those who want to disable the Siri pop-up window using management profiles, I’ve created a .mobileconfig file and posted it here on Github:

https://github.com/rtrouton/profiles/tree/master/SkipSiriSetup

Categories: Uncategorized
  1. September 22, 2016 at 7:03 pm

    Hey Rich, thanks for this! I put this in place of the other diagnostics blocking script you shared previously for El Cap, and someone today got prompts for iCloud Drive sync/backup and enabling FileVault 2. Have you seen those notifications at all?

  2. Dustin
    November 2, 2016 at 3:30 pm

    I’m using your mobileconfig file in Casper and the Siri window is still popping up on new user logins. Mac is on the domain

  3. Chris
    January 9, 2017 at 1:24 pm

    Worked like a charm on my iMac — thanks!

  4. Andrew Myers
    January 9, 2017 at 9:53 pm

    Any tip on disabling the TouchID setup on login as well?

    • Andrew Myers
      January 10, 2017 at 2:59 pm

      Nevermind, found DidSeeTouchIDSetup in the SetupAssistant.plist and set to true. Bypasses TouchID setup on the new TouchBar MacBooks Pros.

  5. Anthony Carlson
    February 27, 2017 at 3:14 pm

    Do you run this script at the login screen.

  6. Jeff
    March 21, 2017 at 7:25 pm

    Rich, how come your loop applies this to every directory in User Template vs just Non_Localized? Doesn’t Non_Localized get merged with each localization when creating a profile?

  7. May 5, 2017 at 5:55 pm

    Hey Rich. This is beautiful work. I must be missing something because my client machines still ask whether we want to send analytics (formerly Diagnostics and Usage). I check the plist afterword and DidSeeCloudDiagnostics is in there. I add it to the script and then none of the dialogs are skipped. This is been pestering me for a while now.

    • Allen
      October 19, 2017 at 6:45 pm

      In the same boot as Justin. Analytics. No matter what I do – I get an Analytics screen at first login for all users. Driving me nuts. High Sierra

  8. Tony
    September 8, 2021 at 1:37 pm

    Is that still work for Catalina

  1. No trackbacks yet.

Leave a comment