Polecenia do instalacji programu Session Manager Plugin bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez winget
PowerShell
winget install --id Amazon.SessionManagerPlugin -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Amazon.SessionManagerPlugin -e --silentwinget uninstall --id Amazon.SessionManagerPlugin -e --silentWedług instalatora
64-bit · EXE (WiX Burn) · Wszyscy użytkownicy
Cicha instalacja
SessionManagerPluginSetup.exe /quiet /norestartOdinstalowanie
msiexec /x {CEF0D74C-33BC-432B-941F-6E17BEA1F9D3} /qn /norestart- Kod produktu MSI
- {cef0d74c-33bc-432b-941f-6e17bea1f9d3}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{cef0d74c-33bc-432b-941f-6e17bea1f9d3}
- UpgradeCode
- {9670508D-C72E-4FBC-B783-202D0682C2FE}
32-bit · EXE (WiX Burn) · Wszyscy użytkownicy
Cicha instalacja
SessionManagerPluginSetup.exe /quiet /norestartOdinstalowanie
msiexec /x {CEF0D74C-33BC-432B-941F-6E17BEA1F9D3} /qn /norestart- Kod produktu MSI
- {cef0d74c-33bc-432b-941f-6e17bea1f9d3}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{cef0d74c-33bc-432b-941f-6e17bea1f9d3}
- UpgradeCode
- {9670508D-C72E-4FBC-B783-202D0682C2FE}
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-session-manager-plugin.ps1
$url = 'https://s3.amazonaws.com/session-manager-downloads/plugin/1.2.896.0/windows/SessionManagerPluginSetup.exe'
$sha256 = '116A121CA6A781B7985D0C9FA3C5C9143440ACDE7822DE2E32733665EED30347'
$file = Join-Path $env:TEMP 'SessionManagerPluginSetup.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 '/quiet /norestart' -Wait install-session-manager-plugin.ps1
$url = 'https://s3.amazonaws.com/session-manager-downloads/plugin/1.2.896.0/windows/SessionManagerPluginSetup.exe'
$sha256 = '116A121CA6A781B7985D0C9FA3C5C9143440ACDE7822DE2E32733665EED30347'
$file = Join-Path $env:TEMP 'SessionManagerPluginSetup.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 '/quiet /norestart' -Wait