Get The Most Current Installed Version Of Microsoft .Net Framework

 

This by request script will return the latest installed version of the Microsoft .NET framework from the local host machine.

 

Vbs Script:

 

strComputer = "LocalHost"

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

 

Set colItems = objWMIService.ExecQuery("Select * from Win32_Product Where Caption Like '%NET Framework%'")

For Each objItem in colItems

Wscript.Echo objItem.Name, " Version ", objItem.Version

Next

 

Published Sunday, October 29, 2006 5:05 PM by dhite
Filed under:

Comments

No Comments