Kaseya Community

how to create a view to show machines with .Net 4.4.2

This question has suggested answer(s)

Hi Guys, 

looking to deploy .Net 4.5.2 and I will need to find out how to create a view to show machines missing it.

any assistance would be great. 


All Replies
  • The way I did my view for .net 4.6.1 was by using the patch management section in the view. You just need to know the KB #. You can set it to show any machines that are missing the KB article.

    Let me know if that works for you.


  • Hello Mkasem,

    You could also run the script everywhere but wrap the actual installation (and upload of setup) with something like:

    (Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse |

    Get-ItemProperty -name Version,Release -EA 0 |

    Where { $_.PSChildName -match '^(?!S)\p{L}'} |

    Select-Object @{



         switch($_.Release) {

           378389 { [Version]"4.5" }

           378675 { [Version]"4.5.1" }

           378758 { [Version]"4.5.1" }

           379893 { [Version]"4.5.2" }

           393295 { [Version]"4.6" }

           393297 { [Version]"4.6" }

           394254 { [Version]"4.6.1" }

           394271 { [Version]"4.6.1" }


       }} | Where-Object Product -gt "4.5").Count

    You would run this with an executepowershell and then checkvariable #global:psresult#

    Which would give you a count of installed .NET versions > than 4.5 (you could also change it to match the EXACT version you need).

    That way, you don't care where you run it, it will only install / upload if not present.

    Best Regards

  • create a procedure that runs

    "wmic product where "Name like 'Microsoft .Net%'" get Name, Version"

    If 4.5.2 is not installed, It calls a second procedure. Create a view for machines the second procedure runs on.

    Procedure Test for .NET 4.5.2.xml

    Procedure Test for .NET 4.5.2 not found.xml

    Suggested answer.
    [edited by: myArch-man at 10:02 AM (GMT -7) on May 18, 2016]
  • Thanks for this . I just tested this and it works great.

  • cool beans. Wink

  • Can I ask for help with a variant of this?  I'm looking for a report that will list all the version(s) of Dot Net installed on a machine (or machines)?