Tuesday 30 June 2015

Software inventory using PowerShell

SCCM admins get it all the time, they offer received request on either software or hardware inventory, what if for some reason, they just need a list of software that are installed in the client machine (less than five of them) for comparison sake, and it needs to be in CSV format?

Well, you could do that in SCCM reporting. But if you don't have time to look through over 200 report templates for an answer, you could use the below PowerShell command to list out the software name and version that will be exported into a CSV format, the file name will be the host name that you are running Powershell on so that you know which list does it belongs to.


Get-WmiObject -Class Win32_Product | Select-Object name,version |sort-object name | Export-Csv -Path "C:\$env:computername.csv"

Here are some of the little scripts that I have used along to work to get the administration work done. (So far)


1) Clear CCMCache using PowerShell

2) Use batch file command to check OS architecture for software deployment

Have fun!

SY

No comments:

Post a Comment