Chrome Default Browser

mforeman1
New Contributor III

Hi Everyone! is there a way through Jamf to change default browser to chrome automatically? or how can we do that? as I don't see any config profile in Jamf for that specific task. We do have a lot of Macs that we need to change their default browser to chrome silently. Thank you!

2 REPLIES 2

sdagley
Esteemed Contributor II

@mforeman1 There's not a Configuration Profile to set the default browser, but you can do it via Jamf Pro by installing an open-source tool called SwiftDefaultApps and calling the command line tool embedded in it via a script. Here's an example on using it: https://aporlebeke.wordpress.com/2020/07/16/configuring-a-macs-default-apps-for-different-file-types...

AtillaTheC
Contributor II

I'm using the below script but it will still require the user to click a button to accept it when it prompts them

#!/bin/bash
killall "Google Chrome"
sleep 5
open -a "Google Chrome" --args --make-default-browser
sleep 5
open -a "Google Chrome"
exit 0