Skip to main content

How to Determine Which Version of Microsoft .NET Framework Installed

To check what version of .Net installed on the machine, follow steps below:

From the Command Line of the machine in question, execute the following command.

reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full" /v version

The result would be something like the following

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full
    version    REG_SZ    4.8.09037

 

On all machines in a Local Active Directory Domain
$computers = (get-adcomputer -filter *).Name



foreach ($computer in $computers) {
gci ‘HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full’ |
sort pschildname -des |
foreach-object {$_.name; $_.GetValue(“Version”); Write-Host "CompuetrName : computer"}
}