Befehle, um OpenSSH Preview 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 Microsoft.OpenSSH.Preview -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.OpenSSH.Preview -e --silentwinget uninstall --id Microsoft.OpenSSH.Preview -e --silentNach Installer
64-Bit · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i OpenSSH-Win64-v10.0.0.0.msi /qn /norestartProtokoll schreiben
msiexec /i OpenSSH-Win64-v10.0.0.0.msi /qn /norestart /l*v "%TEMP%\openssh-preview-install.log"Deinstallation
msiexec /x {7E239BB2-181B-42C7-8C01-F0F0FC3F6CE7} /qn /norestart- MSI-Produktcode
- {7E239BB2-181B-42C7-8C01-F0F0FC3F6CE7}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7E239BB2-181B-42C7-8C01-F0F0FC3F6CE7}
ARM64 · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i OpenSSH-ARM64-v10.0.0.0.msi /qn /norestartProtokoll schreiben
msiexec /i OpenSSH-ARM64-v10.0.0.0.msi /qn /norestart /l*v "%TEMP%\openssh-preview-install.log"Deinstallation
msiexec /x {ADFDCDB5-2DD5-4847-9A4A-7684F16CF4BA} /qn /norestart- MSI-Produktcode
- {ADFDCDB5-2DD5-4847-9A4A-7684F16CF4BA}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{ADFDCDB5-2DD5-4847-9A4A-7684F16CF4BA}
32-Bit · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i OpenSSH-Win32-v10.0.0.0.msi /qn /norestartProtokoll schreiben
msiexec /i OpenSSH-Win32-v10.0.0.0.msi /qn /norestart /l*v "%TEMP%\openssh-preview-install.log"Deinstallation
msiexec /x {22384955-5296-43B1-A0BF-552D68995F47} /qn /norestart- MSI-Produktcode
- {22384955-5296-43B1-A0BF-552D68995F47}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{22384955-5296-43B1-A0BF-552D68995F47}
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-openssh-preview.ps1
$url = 'https://github.com/PowerShell/Win32-OpenSSH/releases/download/10.0.0.0p2-Preview/OpenSSH-Win64-v10.0.0.0.msi'
$sha256 = 'DDEC9C53864280759CF9F74791CEFD387100E3946AA849A1C138A4ED1B96B7D9'
$file = Join-Path $env:TEMP 'OpenSSH-Win64-v10.0.0.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 install-openssh-preview.ps1
$url = 'https://github.com/PowerShell/Win32-OpenSSH/releases/download/10.0.0.0p2-Preview/OpenSSH-ARM64-v10.0.0.0.msi'
$sha256 = '7A17D0E22D004FB47CA4BFD8FEF926FA305DE4EBF70A6F3C7A29C39AABEF0023'
$file = Join-Path $env:TEMP 'OpenSSH-ARM64-v10.0.0.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 install-openssh-preview.ps1
$url = 'https://github.com/PowerShell/Win32-OpenSSH/releases/download/10.0.0.0p2-Preview/OpenSSH-Win32-v10.0.0.0.msi'
$sha256 = 'DA3791EC28D1AB480466CF45B9983A747F8F046C86F4FFB99D9F7A6055982C04'
$file = Join-Path $env:TEMP 'OpenSSH-Win32-v10.0.0.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