SCCM Detection Rule for Google Drive File Stream

So it is a bit of mess for Google Drive File Stream as every time it does the self upgrade, it keeps the existing folder and create a new folder for each version. And SCCM doesn't like this at all.

There is an old article talks about how to create a SCCM application for Google Drive File Stream, but it is no longer working:


And of course, if you look at Reddit, you find the perfect answer from NoDirection

[version]$version = “a.b.c.d”;

$registryPath = “HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6BBAE539-2232-434A-A4E5-9A33560C6283}”;
if (Test-Path -Path $registryPath) {
[version]$installedVersion = (Get-ItemProperty -Path $registryPath -Name DisplayVersion).DisplayVersion;
if ($installedVersion -ge $version) {
Write-Host -Object “Installed”;
exit 0;

Google Drive File Stream with SCCM Detection Rules from SCCM

Leave a Comment