Location, AG 5425, Schweiz
+41 56 508 24 14
info@busicon.ch

Welches ist die aktuellste installierte .NET Framework-Version?

Welches ist die aktuellste installierte .NET Framework-Version?

Check latest .Net Framework version installed on client

Es gibt verschiedene Möglichkeiten herauszufinden, welche .NET Framework Version auf der Maschine installiert ist.

So gibt es für jede installierte .NET Version entsprechende Registry Keys, welche die gewünschten Informationen enthalten. Hier ausführlich beschrieben https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

.Net Framework version installed on client

Wenn es aber darum geht, schnell die aktuellste Version zu finden, bevorzuge ich PowerShell.

Variante 1

PowerShell ISE

[System.Runtime.InteropServices.RuntimeInformation]::FrameworkDescription

PowerShell Console

[System.Runtime.InteropServices.RuntimeInformation, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]::FrameworkDescription

Variante 2

(Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full').Version

Variante 3

$DotNetRelease = (Get-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full').Release

switch ($DotNetRelease) {
    528040 {return '4.8 Windows 10 May 2019 Update and Windows 10 November 2019 Update'}
    528372 {return '4.8 Windows 10 May 2020 Update and Windows 10 October 2020 Update and Windows 10 May 2021 Update'}
    528449 {return '4.8 Windows 11 and Windows Server 2022'}
    Default {return 4.8}
}