Kommandon för att installera OSFMount 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.OSFMount -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PassMark.OSFMount -e --silentwinget uninstall --id PassMark.OSFMount -e --silentPer installationsfil
64-bitars · EXE (Inno Setup)
Tyst installation
osfmount.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
osfmount.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\osfmount"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-osfmount.ps1
$url = 'https://www.osforensics.com/downloads/osfmount.exe'
$sha256 = '5986BEBD3F4954580B5EC910749712E533438A5EF4589C17562F6B07F386CB76'
$file = Join-Path $env:TEMP 'osfmount.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