Populært: Data opdateret 27. oktober 2026

Kategorier

Internet1.356
Kommunikation321
Lyd og video898
Grafik og design539
Kontor og produktivitet1.124
Udviklerværktøjer3.134
AI-værktøjer529
Sikkerhed og privatliv385
Systemværktøjer3.114
Spil523
Uddannelse og videnskab239
Netværk og IT284

PowerShell: lydløs installation og afinstallation

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.

Microsoft Corporation Terminaler og CLI-værktøjer #1 Terminaler og CLI-værktøjer

Kommandoer til at installere PowerShell uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.

Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen

Med winget

PowerShell
winget install --id Microsoft.PowerShell -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Microsoft.PowerShell -e --silent
winget uninstall --id Microsoft.PowerShell -e --silent

Pr. installationsfil

64-bit · MSIX

Lydløs installationAdd-AppxPackage -Path PowerShell-7.6.9.msixbundle
AfinstallationGet-AppxPackage -Name Microsoft.PowerShell | Remove-AppxPackage

64-bit · MSI · Alle brugere

Lydløs installationmsiexec /i PowerShell-7.6.9-win-x64.msi /qn /norestart
Skriv en logmsiexec /i PowerShell-7.6.9-win-x64.msi /qn /norestart /l*v "%TEMP%\powershell-install.log"
Afinstallationmsiexec /x {5417B253-1A6D-4638-BC94-743A6EC2E6F4} /qn /norestart
MSI-produktkode
{5417B253-1A6D-4638-BC94-743A6EC2E6F4}
Afinstallationsnøgle i registreringsdatabasen
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5417B253-1A6D-4638-BC94-743A6EC2E6F4}

ARM64 · MSIX

Lydløs installationAdd-AppxPackage -Path PowerShell-7.6.9.msixbundle
AfinstallationGet-AppxPackage -Name Microsoft.PowerShell | Remove-AppxPackage

ARM64 · MSI · Alle brugere

Lydløs installationmsiexec /i PowerShell-7.6.9-win-arm64.msi /qn /norestart
Skriv en logmsiexec /i PowerShell-7.6.9-win-arm64.msi /qn /norestart /l*v "%TEMP%\powershell-install.log"
Afinstallationmsiexec /x {A55580A2-6A8D-45DB-A673-0601CBA518C8} /qn /norestart
MSI-produktkode
{A55580A2-6A8D-45DB-A673-0601CBA518C8}
Afinstallationsnøgle i registreringsdatabasen
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A55580A2-6A8D-45DB-A673-0601CBA518C8}

32-bit · MSIX

Lydløs installationAdd-AppxPackage -Path PowerShell-7.6.9.msixbundle
AfinstallationGet-AppxPackage -Name Microsoft.PowerShell | Remove-AppxPackage

32-bit · MSI · Alle brugere

Lydløs installationmsiexec /i PowerShell-7.6.9-win-x86.msi /qn /norestart
Skriv en logmsiexec /i PowerShell-7.6.9-win-x86.msi /qn /norestart /l*v "%TEMP%\powershell-install.log"
Afinstallationmsiexec /x {F2DBB6E6-6A92-4712-A77E-350ADA889C0A} /qn /norestart
MSI-produktkode
{F2DBB6E6-6A92-4712-A77E-350ADA889C0A}
Afinstallationsnøgle i registreringsdatabasen
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F2DBB6E6-6A92-4712-A77E-350ADA889C0A}

PowerShell: download, kontrollér, installér

Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.

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

Mest populære i Terminaler og CLI-værktøjer

Se alle
  1. PowerShellTerminaler og CLI-værktøjer · Microsoft Corporation
  2. QPDFTerminaler og CLI-værktøjer · QPDF
  3. Oh My PoshTerminaler og CLI-værktøjer · Jan De Dobbeleer
  4. Microsoft Azure CLITerminaler og CLI-værktøjer · Microsoft Corporation
  5. yqTerminaler og CLI-værktøjer · Mike Farah
  6. AlacrittyTerminaler og CLI-værktøjer · Alacritty
  7. fzfTerminaler og CLI-værktøjer · Junegunn Choi
  8. PuTTYTerminaler og CLI-værktøjer · Simon Tatham
  9. cURLTerminaler og CLI-værktøjer · curl
  10. TabbyTerminaler og CLI-værktøjer · Tabby Developers

Mere fra Microsoft Corporation

Se alle

Tags

Del