Kommandon för att installera OSForensics utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id PassMark.OSForensics -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PassMark.OSForensics -e --silentwinget uninstall --id PassMark.OSForensics -e --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
OSForensics.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
OSForensics.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\osforensics"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\OSForensics_is1
- Installationsmapp
- %ProgramFiles%\OSForensics
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-osforensics.ps1
$url = 'https://osforensics.com/downloads/OSForensics.exe'
$sha256 = 'ECE836FFC360AA0C3EDCCBA3AA1827239B7C10AAA38E105E94C6225866813E80'
$file = Join-Path $env:TEMP 'OSForensics.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait