Posted on 02-10-2017 06:01 AM
Currently working on our Sierra deployment and i hate the "New to Mac?" notification that pops out.
Is anyone suppressing this from popping up on their users and if so how did you accomplish that?
Thanks in advance for any help.
Solved! Go to Solution.
Posted on 02-10-2017 06:25 AM
Posted on 01-04-2019 07:43 PM
@Chuey I just found @carl's configuration profile for macOS Mojave:
macOS_Mojave_touristd.mobileconfig
I applied it at the user computer level and it seems to work just fine! Thanks @carl!
Update: the configuration profile seems to work on several models, but not on all of them...
Posted on 02-10-2017 06:20 AM
I noticed that Sierra is a little more insistent on taking that tour than previous versions were, so this is my (mostly-unverified) script. I haven't had a chance to validate this very widely yet, but on a couple of test boxes it seemed to do what you're asking for.
#!/bin/bash
#####
# disableTourNotifications.sh
# Brad Vrooman
###
# Attempts to disable the macOS "Take a Tour" notifications for the user account passed in $3.
# It is possible that this script may need to be run at each login to prevent reappearance.
#####
if [[ $3 == "" ]]; then
echo "No username provided in expected argument."
exit 1
fi
# Initialize the array of urls
tourURLs=()
# Get all of the "Tours" plist files
for toursFile in $(ls /System/Library/PrivateFrameworks/Tourist.framework/Resources/Tours*.plist); do
# Find out how many URLs are in the file
urlCount=$(/usr/libexec/PlistBuddy $toursFile -c "print :" | grep url | wc -l 2> /dev/null)
# Add each URL to the array
for arrayElement in $(seq 0 $urlCount); do
tourURLs=(${tourURLs[@]} $(/usr/libexec/PlistBuddy $toursFile -c "print :$arrayElement:url" 2> /dev/null))
done
done
# Add each URL to the user's com.apple.touristd domain with the value set to the current date
for singleURL in ${tourURLs[@]}; do
su $3 -c "defaults write com.apple.touristd $singleURL -date "$(date)""
done
exit 0
Credit to Carl Ashley for getting me on the right path and finding these files/keys.
Posted on 02-10-2017 06:25 AM
Posted on 02-10-2017 06:25 AM
when would you set this to run? can it be done at image time/first boot or at user login?
Posted on 02-10-2017 06:36 AM
In my testing I've run the script at login (and it's a quick run, so I've left it "Ongoing" on my test boxes with no noticeable effect).
The profile should also work, with two caveats:
1. It will need to be updated as new URLs are added to the Tours*.plist files
2. There might come a time when touristd stops "trusting" a relatively-old firstOSLogin value, such as after a major OS update
Other than that, it's another way to accomplish the same thing.
Posted on 02-14-2017 02:00 PM
Not having any luck with this. Roughly 5-10 minutes after logging in, the banner pops up. When I run the profile for disabling:
Script result: /Library/Application Support/JAMF/tmp/test.mobileconfig: line 1: syntax error near unexpected token `newline'
/Library/Application Support/JAMF/tmp/test.mobileconfig: line 1: `'
Error running script: return code was 2.
Anyone else with issues?
Posted on 02-14-2017 03:18 PM
Succeeded. I uploaded as a custom setting in a configuration profile and and appears to be working.
P.S. Not working. The blasted banner is back. I reimaged the machine to be sure the profile was being applied. It's not and it's driving me nuts now.
Posted on 04-20-2017 08:05 AM
Here is the updated script that runs when the user logs in:
consoleUsername=$(stat -f %Su /dev/console)
tourURLs=()
for toursFile in $(ls /System/Library/PrivateFrameworks/Tourist.framework/Resources/Tours*.plist); do
# Find out how many URLs are in the file urlCount=$(/usr/libexec/PlistBuddy $toursFile -c "print :" | grep url | wc -l 2> /dev/null)
# Add each URL to the array
for arrayElement in $(seq 0 $urlCount); do
tourURLs=(${tourURLs[@]} $(/usr/libexec/PlistBuddy $toursFile -c "print :$arrayElement:url" 2> /dev/null))
done
done
for singleURL in ${tourURLs[@]}; do
su $consoleUsername -c "defaults write com.apple.touristd $singleURL -date "$(date)""
done
exit 0
Posted on 04-20-2017 08:17 AM
@CapU Use a triple-backtick (```) before and after your script so that it will display without being reformatted.
Posted on 04-20-2017 08:28 AM
Thanks @StoneMagnet
Posted on 04-20-2017 08:29 AM
Corrected script
#!/bin/bash
#####
# disableTourNotifications.sh
# Brad Vrooman
##Updated by Moe
###
# Attempts to disable the macOS "Take a Tour" notifications for the user account passed in $consoleUsername .
# It is possible that this script may need to be run at each login to prevent reappearance.
#####
stat -f%Su /dev/console
consoleUsername=$(stat -f %Su /dev/console)
# Initialize the array of urls
tourURLs=()
# Get all of the "Tours" plist files
for toursFile in $(ls /System/Library/PrivateFrameworks/Tourist.framework/Resources/Tours*.plist); do
# Find out how many URLs are in the file
urlCount=$(/usr/libexec/PlistBuddy $toursFile -c "print :" | grep url | wc -l 2> /dev/null)
# Add each URL to the array
for arrayElement in $(seq 0 $urlCount); do
tourURLs=(${tourURLs[@]} $(/usr/libexec/PlistBuddy $toursFile -c "print :$arrayElement:url" 2> /dev/null))
done
done
# Add each URL to the user's com.apple.touristd domain with the value set to the current date
for singleURL in ${tourURLs[@]}; do
su $consoleUsername -c "defaults write com.apple.touristd $singleURL -date "$(date)""
done
exit 0
Posted on 09-28-2017 02:21 PM
Just bumping this in the recent release of High Sierra...
The preference keys have changed a bit in macOS 10.13 - this profile has worked for me in my testing of a clean install of High Sierra.
https://gist.github.com/carlashley/0874fc5ba65897eff4ad38082e74ea38
Posted on 09-28-2017 02:43 PM
Thanks Carl. Champion as always.
Posted on 04-20-2018 08:34 AM
thanks @carl for sharing the HS version. testing with 10.13.4.
Posted on 07-17-2018 06:04 AM
On 10.13.6 ther is NO plist
/System/Library/PrivateFrameworks/Tourist.framework/Resources/Tours*.plist
Seb
Posted on 07-27-2018 01:33 PM
How are you addressing the tours in 10.13.6 if there is no plist?
Posted on 08-29-2018 09:49 AM
@MrRoboto did you ever get an answer on this question about 10.13.6 and the tours?
Posted on 08-29-2018 09:52 AM
@kricotta Not yet, I am going to test deploying managed preferences for com.apple.touristd.plist via a configuration profile.
Posted on 08-29-2018 10:08 AM
@MrRoboto I am testing out the config profile at https://gist.github.com/carlashley/0874fc5ba65897eff4ad38082e74ea38 and so far it doesn't appear to be doing anything.
Posted on 09-27-2018 07:54 AM
Bump.
Has anyone figured this out for 10.13.6?
Posted on 11-29-2018 01:01 PM
Bump again -- does anyone have a fix for this in 10.13.6 or 10.14 ? So Annoying...
Posted on 01-03-2019 07:41 AM
Posted on 01-04-2019 12:59 AM
I'm thinking about why I would disable the "New to Mac" notification. But I don't find any reasons.
Is it just one notification or does this notification prompt you every day?
Whats so wrong with the "New to Mac" website?
I don't have a Mac at hand. Maybe the pref is not in ~/Library/Preferences anymore, but in a different folder. Maybe in ~/Library/Containers?
Posted on 01-04-2019 07:43 PM
@Chuey I just found @carl's configuration profile for macOS Mojave:
macOS_Mojave_touristd.mobileconfig
I applied it at the user computer level and it seems to work just fine! Thanks @carl!
Update: the configuration profile seems to work on several models, but not on all of them...
Posted on 01-07-2019 05:32 AM
@oklair Thanks so much! Awesome find.
Posted on 04-15-2019 05:11 AM
Hey Guys how are you applying this? I copied the text into Bbedit saved the file and tried to upload it as a config profile. This is my first time to attempt uploading one.
Thanks for any direction.
Posted on 04-15-2019 05:15 AM
Ah never mind I forgot about using CLI to covert to plist.
Posted on 10-31-2019 08:43 AM
BUMP!
Does anyone have a config profile for macOS Catalina?
Posted on 12-08-2019 08:58 PM
@Chuey - I've just deployed the Mojave config profile to two devices, one of which is running Catalina, and so far no prompt after creating a fresh user.
I will update tomorrow if the popup does eventually appear.
Posted on 12-16-2019 07:36 AM
@Mark.Major Hey Mark, are you able to share the config profile you are using?
Posted on 01-23-2020 04:21 AM
Anyone have a working profile for Catalina? My Mojave one isn't suppressing the tour prompt as suggested above. You have any luck @Chuey ?
Posted on 01-23-2020 07:18 AM
@CasperSally You can use ProfileCreator to create a working config profile to suppress the Catalina tour notification
Posted on 01-24-2020 08:42 AM
@CasperSally No luck yet. Still looking for a solution on mojave and catalina. Please let me know if you find something out. Thank you
Posted on 01-27-2020 03:27 PM
Hey all, sorry for the very delayed response. Unfortunately no luck at my end, the notifications did appear at the time. I didn't have time though to go through it, and it was decided that despite being a minor nuisance, it caused minimal issue, so I'll be reviewing it later in the year.