際際滷

際際滷Share a Scribd company logo
Elihu Eli El - 15MAY2020
This Powershell script enables you to retrieve installed software from remote computers and saves in CSV
format {Excel}.
$computer = Get-Content C:tempcomputers.txt
$Output = Foreach($C in $computer)
{
$System = Get-WmiObject Win32_ComputerSystem -ComputerName $C | Select-Object -Property Name, Model
$BIOS = Get-WmiObject Win32_Product -ComputerName $C | Select-Object Name, Version
Foreach($B in $BIOS)
{
New-Object -TypeName PSObject -Property @{
ComputerName = $System.Name
ModelName = $System.Model
SoftwareName = $B.Name
Version = $B.Version}
}
}
$Output | Export-Csv -Path c:TempResultsoftware.csv -NoTypeInformation -Encoding UTF8

More Related Content

Ps installedsoftware

  • 1. Elihu Eli El - 15MAY2020 This Powershell script enables you to retrieve installed software from remote computers and saves in CSV format {Excel}. $computer = Get-Content C:tempcomputers.txt $Output = Foreach($C in $computer) { $System = Get-WmiObject Win32_ComputerSystem -ComputerName $C | Select-Object -Property Name, Model $BIOS = Get-WmiObject Win32_Product -ComputerName $C | Select-Object Name, Version Foreach($B in $BIOS) { New-Object -TypeName PSObject -Property @{ ComputerName = $System.Name ModelName = $System.Model SoftwareName = $B.Name Version = $B.Version} } } $Output | Export-Csv -Path c:TempResultsoftware.csv -NoTypeInformation -Encoding UTF8