I had to make an account just to say thanks for posting this! This same issue was a plague on our org, and this post directly lead to the fix.
The syntax that worked for me was just slightly different:
regsvr32 /u "C:\Program Files\Microsoft Office\root\VFS\ProgramFilesX86\Microsoft Office\Office16\GROOVEEX.DLL"
Hopefully this is addressed by Microsoft soon.
Also created an Intune script that can remediate and log this issue:
$regsvr = "$env:SystemRoot\System32\regsvr32.exe"
$officePaths = @(
"C:\Program Files\Microsoft Office\root\VFS\ProgramFilesX86\Microsoft Office\Office16\GROOVEEX.DLL",
"C:\Program Files (x86)\Microsoft Office\root\VFS\ProgramFilesX86\Microsoft Office\Office16\GROOVEEX.DLL"
)
foreach ($path in $officePaths) {
if (Test-Path $path) {
Write-Output "Found: $path"
$process = Start-Process -FilePath $regsvr `
-ArgumentList "/s /u `"$path`"" `
-Wait `
-PassThru
Write-Output "Exit code: $($process.ExitCode)"
}
}