getting list of installed software that matches control panel's 'add/remove programs' or 'programs and features' list
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.
vincent hu
Windows Server > Windows PowerShell
Comments
Post a Comment