Populärt: Data uppdaterade 27 oktober 2026

Kategorier

Internet1 356
Kommunikation321
Ljud och video898
Grafik och design539
Kontor och produktivitet1 124
Utvecklarverktyg3 134
AI-verktyg529
Säkerhet och integritet385
Systemverktyg3 114
Spel523
Utbildning och vetenskap239
Nätverk och IT284

PowerShell Preview: tyst installation och avinstallation

PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Windows, Linux, and macOS.

Kommandon för att installera PowerShell Preview 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 Microsoft.PowerShell.Preview -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Microsoft.PowerShell.Preview -e --silent
winget uninstall --id Microsoft.PowerShell.Preview -e --silent

Per installationsfil

64-bitars · MSIX

Tyst installationAdd-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundle
AvinstallationGet-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackage

ARM64 · MSIX

Tyst installationAdd-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundle
AvinstallationGet-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackage

32-bitars · MSIX

Tyst installationAdd-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundle
AvinstallationGet-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackage

PowerShell: ladda ner, kontrollera, installera

Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.

install-powershell-preview.ps1
$url = 'https://github.com/PowerShell/PowerShell/releases/download/v7.7.0-preview.5/PowerShellPreview-7.7.0-preview.5.msixbundle'
$sha256 = 'A7F88673E17F064F8E5A21B1A2A98DC142ACAAB20AFADD8212934BD4CB2DC0C3'
$file = Join-Path $env:TEMP 'PowerShellPreview-7.7.0-preview.5.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file

Populärast i Terminaler och CLI-verktyg

Visa alla
  1. PowerShellTerminaler och CLI-verktyg · Microsoft Corporation
  2. QPDFTerminaler och CLI-verktyg · QPDF
  3. Oh My PoshTerminaler och CLI-verktyg · Jan De Dobbeleer
  4. Microsoft Azure CLITerminaler och CLI-verktyg · Microsoft Corporation
  5. yqTerminaler och CLI-verktyg · Mike Farah
  6. AlacrittyTerminaler och CLI-verktyg · Alacritty
  7. fzfTerminaler och CLI-verktyg · Junegunn Choi
  8. PuTTYTerminaler och CLI-verktyg · Simon Tatham
  9. cURLTerminaler och CLI-verktyg · curl
  10. TabbyTerminaler och CLI-verktyg · Tabby Developers

Mer från Microsoft Corporation

Visa alla
  • PowerShellTerminaler och CLI-verktyg · Microsoft Corporation
  • PowerToysAnpassning · Microsoft Corporation
  • NuGetPakethanterare och uppdaterare · Microsoft Corporation
  • Microsoft Azure CLITerminaler och CLI-verktyg · Microsoft Corporation
  • OpenSSH PreviewFTP och filöverföring · Microsoft Corporation
  • Bicep CLISpråk och SDK:er · Microsoft Corporation

Taggar

Dela