Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Prüfen der .NET Framework Version mit PowerShell

22.08.2019 (👁121)

Prüfen der .NET Framework Version mit PowerShell

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 }