I'm trying to create a PowerShell script that allows me to document the installed applications on various computers in a network. Can someone help me figure out why this isn't working for me?
#Remember to add the File Servers in the "ServerList.CSV" file Import-Csv .\ServerList.csv | ForEach { Get-WmiObject -ComputerName $_.ServerName -Query 'SELECT * FROM Win32_Product' } | Select DisplayName,DisplayVersion,Publisher,InstallDate | Export-Csv .\DocumentedApps.csv -NoTypeInformation Write-Host -ForegroundColor 'Cyan' Completed! Have a nice day! ":)"