Bonjour,
Je n'arrive pas à récupérer la version d'une application installée.
J'ai essayé sans succès les codes ci-dessous pour Firefox (par exemple):
gwmi -NameSpace "root\cimv2" -Class "Win32_Product" | Select Name,Vendor,Version | Where {$_.Name -match "Firefox"}
Get-WmiObject win32_product -Filter "Name LIKE '%Firefox'" | FT name, version -auto
Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | ForEach-Object { (Get-ItemProperty Microsoft.PowerShell.Core\Registry::$_).DisplayName }
Quelqu'un aurait une idée ?
Merci d'avance !
Partager