Befehle, um osquery ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit winget
PowerShell
winget install --id osquery.osquery -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id osquery.osquery -e --silentwinget uninstall --id osquery.osquery -e --silentNach Installer
64-Bit · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i osquery-5.24.0.msi /qn /norestartProtokoll schreiben
msiexec /i osquery-5.24.0.msi /qn /norestart /l*v "%TEMP%\osquery-install.log"Deinstallation
msiexec /x {C31D86CB-6E56-4661-A798-3DCC57A6EEC7} /qn /norestart- MSI-Produktcode
- {C31D86CB-6E56-4661-A798-3DCC57A6EEC7}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C31D86CB-6E56-4661-A798-3DCC57A6EEC7}
- UpgradeCode
- {EA6C7327-461E-4033-847C-ACDF2B85DEDE}
- Installationsordner
- %ProgramFiles%/osquery
- DisplayVersion
- 5.24.0
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-osquery.ps1
$url = 'https://github.com/osquery/osquery/releases/download/5.24.0/osquery-5.24.0.msi'
$sha256 = '5F123C07936EE927D7B44CCDAF5D01C4B9BAB2956328A4D8C7ADC3395812A659'
$file = Join-Path $env:TEMP 'osquery-5.24.0.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait