This week I had to compare software on multiple Remote Desktop Servers.
To do this quicly I wrote this little Powershell script, to create a CSV file of the software, in order to compare the lists.
You can create a list by means of:
Get-WmiObject -class win32_product
Creating a csv file for this:
# Create report directory
New-Item “C:\Scripts” -type directory -Force | Out-Null
Write-Verbose “Scripts directory is created, or already exists.”
#create the csv file
$FileName=$env:computername
Write-Verbose $Filename
Get-WmiObject -class win32_product | select name, version, vendor | Export-Csv “c:\scripts\software-$FileName.csv”