Posted on 01-22-2020 05:50 AM
Hi,
Using the script below I can silently install Google Drive on the workstations. I just run into the following problem, and that a pop-up appears from System Extension Blocked, in which I have to approve Google.
Is there a way to forcefully approve this in the script?
Thanks in advance.
# Script to download, Silent Install and then clean up once installed Google DrivE FileStream
#Make temp folder for downloads.
mkdir "/tmp/filestream/";
cd "/tmp/filestream/";
#Download filestream.
curl -L -o /tmp/filestream/GoogleDriveFileStream.dmg "https://dl.google.com/drive-file-stream/GoogleDriveFileStream.dmg";
#Mount, Install, and unmount GoogleDriveFileStream.dmg
hdiutil mount GoogleDriveFileStream.dmg;
sudo installer -pkg /Volumes/Install Google Drive File Stream/GoogleDriveFileStream.pkg -target "/Volumes/Macintosh HD";
hdiutil unmount /Volumes/Install Google Drive File Stream/;
#Tidy up
sudo rm -rf /tmp/filestream/
Posted on 01-22-2020 05:53 AM
PPPC utility download here
Posted on 01-22-2020 07:51 AM
Config profile with Approved Kernel Extensions payload.
Posted on 01-22-2020 08:53 AM
Posted on 01-22-2020 09:58 AM
I don't use jamf yet, I remotely kick the script, so I wondered if something like that could be edited in the script?
Posted on 01-29-2020 10:45 AM
@cbrewer solution worked even without PPPC configs.
Posted on 01-28-2021 12:36 AM
I actually configured it like you but I still got this notification if I started Google FS for the first time. Did I something wrong?
Posted on 02-04-2021 11:02 AM
@svallas With the release of the rebranded Google Drive File Stream, it is now called Google Drive. I had to update your script to accommodate for this:
#!/bin/zsh
# Make temp folder for downloads
mkdir "/tmp/googledrive"
cd "/tmp/googledrive"
# Download Google Drive
curl -L -o "/tmp/googledrive/GoogleDriveFileStream.dmg" "https://dl.google.com/drive-file-stream/GoogleDriveFileStream.dmg"
# Mount and install GoogleDriveFileStream.dmg
hdiutil mount GoogleDriveFileStream.dmg
installer -pkg "/Volumes/Install Google Drive/GoogleDrive.pkg" -target "/Volumes/Macintosh HD"
# Tidy up
hdiutil unmount "/Volumes/Install Google Drive"
sudo rm -rf "/tmp/googledrive"
Posted on 02-08-2021 06:10 AM
I deployed the same config profile @cbrewer mentioned but I still get the popup window asking to approve it from system preferences !!
Anybody managed to fix it ?
Posted on 02-11-2021 12:18 PM
interested in this too!
Posted on 02-11-2021 12:31 PM
Be mindful, Kernel Extensions are 10.15 while System Extensions are 11.
@Flaurian @MacJunior
Posted on 02-11-2021 11:15 PM
Yes, I already found it out but thanks to clarify it. I also checked Google working on a new tool for Google Drive to combine Drive and Backup as one product. So, fingers crossed it using System Extensions.
Posted on 02-17-2021 10:06 AM
Hello,
same problem as Flaurian, what ever i set up, i still have the approval asking.... but with the message "Google, Inc has been blocked" :'(
Posted on 03-01-2021 01:12 PM
Adding some things here that can hopefully help someone. I modified the script posted by @McLeanSchool so it will still install File Stream even if the Volume Name is unique and has a space in it (ex. "Joes Mac" instead of "Macintosh HD"). I tested and this is working on multiple MacBooks via Jamf on Catalina and Big Sur (caveat below).
#!/bin/zsh
# make temp folder for downloads
mkdir "/tmp/googledrive"
# change working directory
cd "/tmp/googledrive"
#download Google Drive File Stream
curl -L -o "/tmp/googledrive/GoogleDriveFileStream.dmg" "https://dl.google.com/drive-file-stream/GoogleDriveFileStream.dmg"
# Mount the DMG
hdiutil mount GoogleDriveFileStream.dmg
# Get Volume Name
Volume=$(diskutil info / | grep "Volume Name:" | awk '{print $3,$4,$5,$6}')
# Install Google Drive
sudo installer -pkg /Volumes/Install Google Drive/GoogleDrive.pkg -target "/Volumes/$Volume"
#Tidy Up
hdiutil unmount "/Volumes/Install Google Drive"
sudo rm -rf "/tmp/googledrive"
In Big Sur I still haven't found a way to approve the necessary System Extension via Jamf...but it is possible to open System Preferences, Security and Privacy, General Tab, click Allow, reboot...then it works great. Hoping someone can find a fix or this is resolved by Google at some point.
Posted on 05-18-2021 03:13 PM
@mosermat Had to Update the script a bit in more than the places listed above:
#!/bin/zsh
# make temp folder for downloads
mkdir "/tmp/googledrive"
# change working directory
cd "/tmp/googledrive"
#download Google Drive File Stream
curl -L -o "/tmp/googledrive/GoogleDrive.dmg" "https://dl.google.com/drive-file-stream/GoogleDrive.dmg"
# Mount the DMG
hdiutil mount GoogleDrive.dmg
# Get Volume Name
Volume=$(diskutil info / | grep "Volume Name:" | awk '{print $3,$4,$5,$6}')
# Install Google Drive
sudo installer -pkg /Volumes/Install Google Drive/GoogleDrive.pkg -target /
#Tidy Up
hdiutil unmount "/Volumes/Install Google Drive"
sudo rm -rf "/tmp/googledrive"
This at least seems to be downloading and installing properly now.
Posted on 05-18-2021 03:16 PM
Now to work on getting Auth to happen after launching the app, if anyone has any tips, please reply
Posted on 06-09-2021 06:57 AM
After running the most recent script the volume is not removing from the desktop. Does something need to be altered?
hdiutil unmount "/Volumes/Install Google Drive"
it logs as successful
installer: Package name is Google Drive
installer: Installing at base path /
installer: The install was successful.
"/Volumes/Install Google Drive" unmounted successfully.
sudo rm -rf "/tmp/googledrive"
Posted on 06-10-2021 08:27 AM
I'm not having luck the the Kext CP and PPPC. Does something need to change now that its been renamed from Google Drive FileStream to Google Drive for Desktop? NM, got it working.
Posted on 06-24-2021 08:24 AM
@KSibley what was the solution?
08-19-2021 03:11 AM - edited 08-19-2021 03:16 AM
Anyone got an updated version of the PPPC config they can share? We're still getting Google Drive asking for system extension approval on big sur.
Posted on 09-09-2021 10:40 AM
I know this was a while back, but If you are still looking you can get the newest version here:
https://github.com/jamf/PPPC-Utility/releases
Posted on 08-19-2021 08:28 AM
Hey @RLR ,
we use the following:
Privacy Preferences Policy Control - App Access
Identifier
com.google.drivefs
Bundle ID
identifier "com.google.drivefs" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = EQHXZ8M8AV
APP OR SERVICE:
Accessibility: Allow
System Extension:
Google Drive - Allowed System Extensions - EQHXZ8M8AV - com.google.drivefs.filesystems.dfsuse
Hope that works for you :). Feel free to give some feedback!
Posted on 09-01-2021 07:01 AM
@RLR and @konstantinb since it's not GOOGLE DRIVE FILE STREAM anymore but changed to GOOGLE DRIVE FOR DESKTOP are the values to create the 'system extension' the same? I used the values that @konstantinb provided in the reply above two weeks ago. (images attached of my sys ext config profile)
specifically these values below, do they stay the same? i'm thinking maybe 'drivefs' would reference 'file stream' but since it's not file stream anymore i'm kinda just assuming.
---- com.google.drivefs
----- com.google.drivefs.filesystems.dfsuse
09-01-2021 07:55 AM - edited 09-01-2021 07:57 AM
Pulling the App "Google Drive" Into PPPC Utility it shows the same as before, so looks like it is indeed still using the com.google.drivefs. I wondered the same thing 🙂
Posted on 09-01-2021 08:28 AM
so does my Config Profile settings look correct?
is that similar to your config profile?
does it work for both intel and M1 macs running Big Sur? I'm testing but wont be able to for the next 2 weeks.
09-01-2021 08:37 AM - edited 09-01-2021 08:38 AM
Testing on an Intel Machine in a bit need to wipe to fully test properly, will post results when done. I have the same as you plus a few others, which I likely do not need, The diff is that I approved both com.google.drivefs and com.google.drivefs.filesystems.dfsuse in the system extension, so we will see what happens. If it works I will post screenshots.
09-01-2021 08:45 AM - edited 09-01-2021 08:46 AM
Also Testing this on macOS Monterey Beta FYI, 1 Big Sur Intel and 1 Monterey.
Posted on 09-01-2021 09:31 AM
So Far worked perfectly on macOS Monterey, Testing Big Sur momentarily
Posted on 09-01-2021 09:46 AM
No go for Big Sur, **bleep**!
09-01-2021 09:56 AM - edited 09-09-2021 10:30 AM
Ok So Here is what I have:
Big Sur on M1 = Works
Big Sur on Intel = Fails
Monterey Beta (21a5506j) on Intel = Works
Monterey Beta (21A5304g) on M1 = Works
My setup is a bunch of me reading various items and is likely overkill, I was going to make a bunch of settings and then if it worked I could pull some back, just keep that in mind.
(Update) same results after changing a mistake i had in the screenshots below:
com.google.drivefs.filesystems.dfsuse
Posted on 09-01-2021 09:58 AM
Any Other findings from People Specifically with Intel Macs on Big Sur would be greatly appreciated.
Posted on 09-01-2021 01:48 PM
@Geissbuhler so you applied that single config profile to both intel & m1 ?
so no separate config profile for each arch type? (probably not necessary)
09-01-2021 04:03 PM - edited 09-01-2021 04:04 PM
Correct exact same on all of the above, only intel and Big Sur combo seems to fail. So weird
Posted on 09-02-2021 02:38 AM
So far this config did work for all our clients. But I will try to check it again on M1 next weeks. The Config i also pulled from the new client the name has just changed but the config is still the same basically.
09-02-2021 08:04 AM - edited 09-02-2021 08:14 AM
@konstantinb @Geissbuhler are you applying this Google Drive system extension config profile to only Big Sur computers?
and a seperate Google Drive kernel extension config profile to Mojave and Catalina computers?
also the system extension you configured, I see the pictures you posted, does the config profile have 2 'Allow Team IDs and System Extension' sections in it?
Posted on 09-09-2021 10:33 AM
Yes I we are doing kernel extension for Catalina and Mojave, and a separate Config Profile with System Extension for Big Sur and Monterey Beta.
Posted on 09-03-2021 01:58 AM
@tcandela Theoretical yes you would need to.
The Systems extensions are as following:
Display Name:
Google Drive
System Extension Types:
Allowed System Extensions:
Team Identifier:
EQHXZ8M8AV
ALLOWED SYSTEM EXTENSIONS:
com.google.drivefs.filesystems.dfsuse
09-03-2021 06:02 AM - edited 09-03-2021 07:50 AM
@konstantinb ok thanks.
I'm confused with the @Geissbuhler images he attached to his reply specifically the 5th image that has the 'driver extension' box checked. Do you have that in your system extension configuration?
here is the image i'm talking about, it looks like another section of 'Allowed Team ID's and System Extensions' was added to the same config profile
09-08-2021 01:49 PM - edited 09-09-2021 10:34 AM
Yes in my test environment I was basically trying anything, hence the comment where I try way too much and scale back later. The way those pics are listed, is the top pic is the Config Profile as whole, then the next is of the PPPC Payload, The next is the System Extensions payload, the following snaps are of the individual sections within the System Extensions Payload.
I read early on that if you are unsure with System Extensions which bit works, like in this instance here, trying to troubleshoot, you start with approving the team as a whole, Then start on the individual extensions, Then the types, if your big old way overkill sys extension works, scale it back like maybe delete the Team as a whole bit of the payload, and get right to the bits that you actually need.
This is not in prod
Would love to know what I actually need, hence the testing above. This is currently working on Big Sur with M1, but not working on Big Sur with Intel.
Posted on 09-08-2021 01:53 PM
I haven't tried it on a Big Sur computer yet. I was trying to find a solution for my 10.15 computers. This is a kernel extension so i know it will not work on Big Sur I am making a new config profile for my Big Sur computers will let you know how the testing is going after I get that one built.