Kommandon för att installera Microsoft .NET Framework Runtime 4.8.1 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.DotNet.Framework.Runtime -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DotNet.Framework.Runtime -e --silentwinget uninstall --id Microsoft.DotNet.Framework.Runtime -e --silentPer installationsfil
64-bitars · EXE
Tyst installation
NDP481-x86-x64-AllOS-ENU.exe /passive /AcceptEULA /norestartARM64 · EXE
Tyst installation
NDP481-x86-x64-AllOS-ENU.exe /passive /AcceptEULA /norestart32-bitars · EXE
Tyst installation
NDP481-x86-x64-AllOS-ENU.exe /passive /AcceptEULA /norestartAlla processorer · EXE
Tyst installation
NDP481-x86-x64-AllOS-ENU.exe /passive /AcceptEULA /norestartPowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-microsoft-net-framework-runtime-4-8-1.ps1
$url = 'https://download.microsoft.com/download/4/b/2/cd00d4ed-ebdd-49ee-8a33-eabc3d1030e3/NDP481-x86-x64-AllOS-ENU.exe'
$sha256 = 'C0CA2E0C9CD18A24A0A77369A13FAE2C2C4E8BC83355DD24E5DDC00F9D791FE3'
$file = Join-Path $env:TEMP 'NDP481-x86-x64-AllOS-ENU.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/passive /AcceptEULA /norestart' -Wait install-microsoft-net-framework-runtime-4-8-1.ps1
$url = 'https://download.microsoft.com/download/4/b/2/cd00d4ed-ebdd-49ee-8a33-eabc3d1030e3/NDP481-x86-x64-AllOS-ENU.exe'
$sha256 = 'C0CA2E0C9CD18A24A0A77369A13FAE2C2C4E8BC83355DD24E5DDC00F9D791FE3'
$file = Join-Path $env:TEMP 'NDP481-x86-x64-AllOS-ENU.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/passive /AcceptEULA /norestart' -Wait install-microsoft-net-framework-runtime-4-8-1.ps1
$url = 'https://download.microsoft.com/download/4/b/2/cd00d4ed-ebdd-49ee-8a33-eabc3d1030e3/NDP481-x86-x64-AllOS-ENU.exe'
$sha256 = 'C0CA2E0C9CD18A24A0A77369A13FAE2C2C4E8BC83355DD24E5DDC00F9D791FE3'
$file = Join-Path $env:TEMP 'NDP481-x86-x64-AllOS-ENU.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/passive /AcceptEULA /norestart' -Wait install-microsoft-net-framework-runtime-4-8-1.ps1
$url = 'https://download.microsoft.com/download/4/b/2/cd00d4ed-ebdd-49ee-8a33-eabc3d1030e3/NDP481-x86-x64-AllOS-ENU.exe'
$sha256 = 'C0CA2E0C9CD18A24A0A77369A13FAE2C2C4E8BC83355DD24E5DDC00F9D791FE3'
$file = Join-Path $env:TEMP 'NDP481-x86-x64-AllOS-ENU.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/passive /AcceptEULA /norestart' -Wait