Skip to main content
Solved

Changing default browser


Forum|alt.badge.img+2

Hi all!

We are currently testing our implementation of Jamf Pro Cloud. I am trying to set Chrome as the default browser for my organization, but I cannot find the option to do that through Jamf. And anything online about this is over a few years old. I just wanted to check in and see if there has been a change to this, or if anyone has a clever way of getting around it!

Thanks!

Best answer by Samstar777

Hello,

Here is the easy and best way to manage Chrome Browser through jamf.

https://support.google.com/chrome/a/answer/9923111?hl=en

 

Regards,

Salim Ukani

View original
Did this topic help you find an answer to your question?

Forum|alt.badge.img+4

There has not been a change afaik due to it being a user based setting. You can always try 

open -a "Google Chrome" --args --make-default-browser

 

and see if that works. I think it would need to be a script run in a policy once per user / per computer. May also need to run it as the user by following this: https://scriptingosx.com/2020/02/getting-the-current-user-in-macos-update/


YanW
Forum|alt.badge.img+11
  • Contributor
  • January 28, 2022

This is what I use. We let users pick

 

#!/bin/bash osascript <<EOD set result to button returned of (display dialog "Set default browser to Chrome") if result = "OK" then do shell script ("open -a 'Google Chrome' --args --make-default-browser") else display dialog "No change in the default web browser" end if EOD

 

 


Forum|alt.badge.img+4
  • Contributor
  • January 30, 2022
YanW wrote:

This is what I use. We let users pick

 

#!/bin/bash osascript <<EOD set result to button returned of (display dialog "Set default browser to Chrome") if result = "OK" then do shell script ("open -a 'Google Chrome' --args --make-default-browser") else display dialog "No change in the default web browser" end if EOD

 

 


 

deleted


Forum|alt.badge.img+4
  • Contributor
  • January 30, 2022

I'm using this this script after Chrome installation. You need to fill parameter 4 with com.google.Chrome. Works after a computer restart.


Samstar777
Forum|alt.badge.img+11
  • Valued Contributor
  • January 31, 2022

Hello,

Here is the easy and best way to manage Chrome Browser through jamf.

https://support.google.com/chrome/a/answer/9923111?hl=en

 

Regards,

Salim Ukani


Forum|alt.badge.img+2
  • New Contributor
  • January 31, 2022
Samstar777 wrote:

Hello,

Here is the easy and best way to manage Chrome Browser through jamf.

https://support.google.com/chrome/a/answer/9923111?hl=en

 

Regards,

Salim Ukani


This worked for me! Thanks!


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • February 3, 2022
Samstar777 wrote:

Hello,

Here is the easy and best way to manage Chrome Browser through jamf.

https://support.google.com/chrome/a/answer/9923111?hl=en

 

Regards,

Salim Ukani


Can you show me how to set up chrome as default browser with this? I tried to follow Google's instruction, but could not find any attribute regarding to default browser setting. Another python script is no longer working with latest Monterey update. Thanks!


Samstar777
Forum|alt.badge.img+11
  • Valued Contributor
  • February 4, 2022

Hello Jonna1006,

 

I have dm you, lets connect over messages or slack so that I can guide you how to do it.

My Slack ID is Samstar777

 

-Sam


Forum|alt.badge.img+1
  • New Contributor
  • February 9, 2022
Samstar777 wrote:

Hello Jonna1006,

 

I have dm you, lets connect over messages or slack so that I can guide you how to do it.

My Slack ID is Samstar777

 

-Sam


I have the same question as Jonna1006. Is there a publicly available document on this?


Samstar777
Forum|alt.badge.img+11
  • Valued Contributor
  • February 9, 2022

Hello lturnerz: below are very simple steps to manage this through jamf Pro

 

Deploy Chrome Browser update policies

  1. Sign into the Jamf Pro console.
  2. On the left, click Computers
     

     

    Configuration profiles.
  3. On the top right, click New.
  4. On the Options tab of your new macOS configuration profile, click Application & custom settings > External applications.
  5. On the top right, click Add to add a new configuration. 
  6. Under Source, select Repository.
  7. In Application domain, select com.google.keystone, then choose the app version and the stable variant.
  8. Configure the values as needed under the Google Chrome section.
  9. Name the profile and assign it to any other configuration profile in Jamf Pro. 
  10. Deploy the profile to your machine.

 

-Sam


Forum|alt.badge.img+1
  • New Contributor
  • February 10, 2022

Many thanks, Samstar777!

 


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • February 10, 2022
Samstar777 wrote:

Hello lturnerz: below are very simple steps to manage this through jamf Pro

 

Deploy Chrome Browser update policies

  1. Sign into the Jamf Pro console.
  2. On the left, click Computers
     

     

    Configuration profiles.
  3. On the top right, click New.
  4. On the Options tab of your new macOS configuration profile, click Application & custom settings > External applications.
  5. On the top right, click Add to add a new configuration. 
  6. Under Source, select Repository.
  7. In Application domain, select com.google.keystone, then choose the app version and the stable variant.
  8. Configure the values as needed under the Google Chrome section.
  9. Name the profile and assign it to any other configuration profile in Jamf Pro. 
  10. Deploy the profile to your machine.

 

-Sam


I am very new to this, can you show me a screenshot on how to set Chrome as default browser? Thanks!


Forum|alt.badge.img+4
  • Contributor
  • February 10, 2022
jonna1006 wrote:

I am very new to this, can you show me a screenshot on how to set Chrome as default browser? Thanks!


I don't think you can make Chrome the default system browser within the Chrome update policy. This thread is so confusing, people are talking about two different things here. You should take a look at this bash script I posted earlier. It's still working for me on 12.2 after a Mac reboot.


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • February 10, 2022
JRM5513 wrote:

I don't think you can make Chrome the default system browser within the Chrome update policy. This thread is so confusing, people are talking about two different things here. You should take a look at this bash script I posted earlier. It's still working for me on 12.2 after a Mac reboot.


I have tried the script, but it did work at my end, is something I have to change to make it work?


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • February 14, 2022

iMazing Profile Editor did the trick for default browser setting, kudos to Jamf Support team!!


Forum|alt.badge.img+8
jonna1006 wrote:

iMazing Profile Editor did the trick for default browser setting, kudos to Jamf Support team!!


How did you do this with iMazing Profile Editor?  What payload did you edit to set the default browser?


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • February 28, 2022
steve.mcginn wrote:

How did you do this with iMazing Profile Editor?  What payload did you edit to set the default browser?


It is the first page of Chrome configuration page, just check the box and it will force a pop message to ask user which is default browser.


Forum|alt.badge.img+4
  • Contributor
  • March 29, 2022
jonna1006 wrote:

It is the first page of Chrome configuration page, just check the box and it will force a pop message to ask user which is default browser.


How does this work in your environment once deployed? From my testing, if a user doesn't already have Chrome set as the default browser in System Preferences>General>Default Web Browser, once a user opens Chrome they are not prompted to select the default browser without first having to click the Set as Default button anyway. Meaning, it's the same as doing nothing at all.

Is this what you are experiencing as well? This is happening on a couple of test machines running Big Sur.


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • March 29, 2022
noobody wrote:

How does this work in your environment once deployed? From my testing, if a user doesn't already have Chrome set as the default browser in System Preferences>General>Default Web Browser, once a user opens Chrome they are not prompted to select the default browser without first having to click the Set as Default button anyway. Meaning, it's the same as doing nothing at all.

Is this what you are experiencing as well? This is happening on a couple of test machines running Big Sur.


Never tested on Big Sur, but for Monterey, it should have a pop initiation let the user to confirm which is default browser once the user login to the Mac.


Forum|alt.badge.img+4
  • Contributor
  • March 29, 2022
jonna1006 wrote:

Never tested on Big Sur, but for Monterey, it should have a pop initiation let the user to confirm which is default browser once the user login to the Mac.


Without launching a browser at all? Interesting.  I'm gonna update to Monterey to see if there is any change to the way the profile works there.

Thanks.


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • March 29, 2022
noobody wrote:

Without launching a browser at all? Interesting.  I'm gonna update to Monterey to see if there is any change to the way the profile works there.

Thanks.


It has been a while, but I do not recall that I have to open the browser to see the pop-up notification.


Forum|alt.badge.img+4
  • Contributor
  • March 29, 2022
jonna1006 wrote:

It has been a while, but I do not recall that I have to open the browser to see the pop-up notification.


No change after upgrading my M1 Mac to Monterey and testing this. Are you also deploying to M1 Macs or Intel Macs only (wonder if there is something happening there)? You mind pasting your PLIST from your config to compare?


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • March 31, 2022
noobody wrote:

No change after upgrading my M1 Mac to Monterey and testing this. Are you also deploying to M1 Macs or Intel Macs only (wonder if there is something happening there)? You mind pasting your PLIST from your config to compare?


I just finished setup for couple M1 Pro MBP, no issue from my end. If you are using iMazing Profile Editor, make sure you sign the profile before uploading to Jamf cloud.


jonna1006
Forum|alt.badge.img+7
  • Contributor
  • April 8, 2022
noobody wrote:

No change after upgrading my M1 Mac to Monterey and testing this. Are you also deploying to M1 Macs or Intel Macs only (wonder if there is something happening there)? You mind pasting your PLIST from your config to compare?


I recently tested on both x86 and ARM MBP, and once you open Chrome for the first time, there will be prompt to ask which browser you want to set as default.


Forum|alt.badge.img
  • New Contributor
  • April 18, 2022
jonna1006 wrote:

I recently tested on both x86 and ARM MBP, and once you open Chrome for the first time, there will be prompt to ask which browser you want to set as default.


Hi Jonna, Would be kind enough to show me the steps that you did on Imazing? Sorry Im new with jamf as well


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings