jamescapen
06/21/2024, 7:55 PMjamescapen
06/21/2024, 7:56 PMjamescapen
06/21/2024, 11:17 PMinstaller_utils.ps1 -uninstallOrbit
portion of the install.
This line (310): $properties = Get-ItemProperty $_.PSPath -ErrorAction "SilentlyContinue" | Where-Object {($_.DisplayName -eq "Fleet osquery")}
And this line (352): $properties = Get-ItemProperty $_.PSPath -ErrorAction "SilentlyContinue" | Where-Object {($_.DisplayName -eq "osquery")}
Seem to have problems with registry keys in HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
that have brackets (probably other special characters?), in our case a BeyondTrust Remote Support key.
Adding -LiteralPath
got me the desired result (Orbit was uninstalled.
😉 )
Corrected commands (respectively):
$properties = Get-ItemProperty -LiteralPath $_.PSPath -ErrorAction "SilentlyContinue" | Where-Object {($_.DisplayName -eq "Fleet osquery")}
$properties = Get-ItemProperty -LiteralPath $_.PSPath -ErrorAction "SilentlyContinue" | Where-Object {($_.DisplayName -eq "osquery")}
Benjamin Edwards
06/21/2024, 11:31 PMjamescapen
06/21/2024, 11:34 PMjamescapen
06/23/2024, 12:47 AM