Agrupar programas instalados (no es preciso):
1 |
((Get-WmiObject -Class Win32_Product).name) | % {$_.split(' ')[0]} | Group-Object |
Número de programas instalados:
1 |
(Get-WmiObject -Class Win32_Product).count |
Extraer información del Registro de Windows en función del identificador obtenido con la clase Win32_Product:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$name='Google' $producto=(Get-WmiObject -Class Win32_Product) foreach($uno in $producto) { if($uno.name -match $name) { $valor=$uno.IdentifyingNumber $valor=$valor.replace('{','') $valor=$valor.replace('}','') } } Get-ChildItem hklm:\ -rec -ea SilentlyContinue | % { if($_ -match $valor){$_} } |