Jun 27 2022 06:53 AM
Hi guys,
I deploy Google Drive (GD) to all devices, but i am getting a failed status (see below). GD is definitely installing correctly so it must be something to do with my config (see attached). In the detection rule it is looking for a folder 54.0.3.0 which is present on the devices. Any help would be appreciated.
Jun 27 2022 09:54 AM
Solution@TungNguyen1600 Are you just checking to that folder or a file in that folder? Perhaps using a registry check is a beter option of a detection.ps1 script? Something like this below:
if (test-path -path 'C:\Program Files\Google\Drive File Stream') {
write-host Google Drive is installed
exit 0
}
else {
write-host Google Drive is not installed
exit 1
}
Jun 27 2022 10:31 AM
@Harm_Veenstra Yeah just checking if the folder exists. I've just changed it so that it's one folder up (see screenshot) instead of the version number folder and will see if that makes any difference.
With the detection.ps1 script, would i package that along with the install.cmd and GD exe with the winapp32 deployment tool? Or is there another way to use the script? Sorry, I'm a mac admin, so win admin is quite new to me.
Jun 27 2022 10:43 AM
Jun 27 2022 10:46 AM
Jun 27 2022 10:57 AM
Jun 27 2022 11:06 AM
@Harm_Veenstra You are an absolute star, the script worked! thank you!
I clicked like on the script, how do i mark this as resolved?
Jun 27 2022 11:13 AM
Jun 27 2022 11:26 AM
Jan 16 2024 01:26 PM
Jun 27 2022 09:54 AM
Solution@TungNguyen1600 Are you just checking to that folder or a file in that folder? Perhaps using a registry check is a beter option of a detection.ps1 script? Something like this below:
if (test-path -path 'C:\Program Files\Google\Drive File Stream') {
write-host Google Drive is installed
exit 0
}
else {
write-host Google Drive is not installed
exit 1
}