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