Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell - Audit Apps For Various Computers

$
0
0

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!  ":)"



Viewing all articles
Browse latest Browse all 15028

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>