getting list of installed software that matches control panel's 'add/remove programs' or 'programs and features' list


hello,

have seen question before , far, options i've seen using wmi class lists items installed windows installer, or getting info registry key. but, neither of these options come close, , imho should not considered options.

here example of function gets info registry:

function getinstalledsoftware()
{
    $keys = get-childitem hklm:\software\microsoft\windows\currentversion\uninstall
    $items = $keys | foreach-object {get-itemproperty $_.pspath}
    $items | select displayname, displayversion, installdate | sort -property displayname
}

registry option supposed give more info wmi option, way off, @ least on machine.

there must way.. powershell have full access .net 2.0 right? can provide powershell solution (preferably powershell 1.0, has large install base in envrironment , must stick it, while)?

hi,

 

please have @ following article, may helpful you:

 

powershell script gather list of installed software

http://www.myitforum.com/forums/m_173298/mpage_1/key_/tm.htm#173298

 

important note: response contains reference third party world wide web site. microsoft providing information convenience you. microsoft not control these sites , has not tested software or information found on these sites; therefore, microsoft cannot make representations regarding quality, safety, or suitability of software or information found there. there inherent dangers in use of software found on internet, , microsoft cautions make sure understand risk before retrieving software internet.

 

 

best regards,

vincent hu

 



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2