د PowerShell Preview بې پوښتنې نصبولو، بیا لرې کولو او د ځای پر ځای کولو وسایلو له لارې د پېژندلو کمانډونه. کمانډ یوازې هغه وخت ښودل کېږي چې ډاډمن وي: له مانیفسټ څخه یا د نصبوونکي ټکنالوژۍ له لیکل شوي اصلي حالت څخه.
اړوند لارښود: د چوپه نصب سویچونه: MSI، NSIS، Inno Setup · پروګرام د ریجسټري یا PowerShell په مرسته لرې کړئ
د winget سره
PowerShell
winget install --id Microsoft.PowerShell.Preview -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.PowerShell.Preview -e --silentwinget uninstall --id Microsoft.PowerShell.Preview -e --silentد نصبوونکي له مخې
64-bit · MSIX
چوپه نصب
Add-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundleلرې کول (Uninstall)
Get-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackageARM64 · MSIX
چوپه نصب
Add-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundleلرې کول (Uninstall)
Get-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackage32-bit · MSIX
چوپه نصب
Add-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundleلرې کول (Uninstall)
Get-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackagePowerShell: ډاونلوډ، تایید، نصب
رسمي فایل ډاونلوډوي، SHA256 یې ګوري او په چوپه توګه یې نصبوي.
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 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 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