


# Enumerate the sub-keys of the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders

dir "HKLM:SOFTWARE\Microsoft\.NETFramework\AssemblyFolders" 

# Enumerate the the default values of subkeys of the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders

# Please note, that you must access the default value use an empty string, not the name "(default)" that is displayed in the Registry Editor.

dir "HKLM:SOFTWARE\Microsoft\.NETFramework\AssemblyFolders"  | foreach { "v:" + $_.GetValue("") }


# Enumerate all installed software that is not from Microsoft

Get-Wmiobject Win32_Product | where-object { $_.vendor -notlike "microsoft*" }