#

 

 

 

So prüft man mit Windows PowerShell welche .NET Framework-Version installiert ist.

 

Man Startet Windows 10 Powershell indem man mit dem Windows-StartButton->rechte Maustaste-> auf PowerShell klickt.

Dann gibt man folgenden Befehl ein:

# PowerShell 5 check .NET Framework 4.7

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 460798 }

 

 

 

 

Für alle weiteren Version geht man vor wie hier:

 

PS C:\Users\RPopp> # PowerShell 5 check .NET Framework 4.7

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 460798 }

True

True

 

PS C:\Users\RPopp> # PowerShell 5 check .NET Framework 4.7.1

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 461308 }

True

True

 

PS C:\Users\RPopp> # PowerShell 5 check .NET Framework 4.7.2

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 461814 }

True

True

 

PS C:\Users\RPopp> # PowerShell 5 check .NET Framework 4.8

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 528049 }

False

False

 

PS C:\Users\RPopp> PS C:\Users\RPopp> # PowerShell 5 check .NET Framework 4.7

 

 

Oder als script

# PowerShell 5 check .NET Framework 4.7

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 460798 }

 

# PowerShell 5 check .NET Framework 4.7.1

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 461308 }

 

# PowerShell 5 check .NET Framework 4.7.2

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 461814 }

 

# PowerShell 5 check .NET Framework 4.8

>>  Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full\' |  Get-ItemPropertyValue -Name Release | Foreach-Object { $_ -ge 528049 }

 

Mobile

.

soap2day