PowerShell Previewను ఏ ప్రశ్నలూ లేకుండా ఇన్స్టాల్ చేయడానికి, మళ్లీ తీసేయడానికి, డిప్లాయ్మెంట్ టూల్స్తో గుర్తించడానికి కమాండ్లు. ఖచ్చితంగా తెలిసిన కమాండ్ మాత్రమే చూపిస్తాం: మ్యానిఫెస్ట్ నుంచి, లేదా ఇన్స్టాలర్ టెక్నాలజీ డాక్యుమెంట్ చేసిన డిఫాల్ట్ల నుంచి.
సంబంధిత గైడ్: సైలెంట్ ఇన్స్టాల్ స్విచ్లు: MSI, NSIS, Inno Setup · రిజిస్ట్రీ లేదా PowerShellతో ప్రోగ్రామ్ అన్ఇన్స్టాల్
winget ద్వారా
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-బిట్ · MSIX
Add-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundleGet-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackageARM64 · MSIX
Add-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundleGet-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackage32-బిట్ · MSIX
Add-AppxPackage -Path PowerShellPreview-7.7.0-preview.5.msixbundleGet-AppxPackage -Name Microsoft.PowerShellPreview | Remove-AppxPackagePowerShell: డౌన్లోడ్, తనిఖీ, ఇన్స్టాల్
అధికారిక ఫైల్ను డౌన్లోడ్ చేసి, దాని SHA256 తనిఖీ చేసి, సైలెంట్గా ఇన్స్టాల్ చేస్తుంది.
$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 $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 $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