1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
foreach($equipo in Get-Content .\equipos.txt) { #Llamadas CIM $Sofware = Get-CimInstance Win32_product -ComputerName $equipo #Crear un objeto con todos los datos sobre el software (name, vendor y version) $var = [PSCustomObject]@{ nombreequipo = $equipo nombre = $Sofware.Name fabricante = $Sofware.Vendor version = $Sofware.Version } $var } |