PowerShell Script To Export Installed Product Information To A CSV File

 

Use this PowerShell script to export a specified machine’s installed Win32_Product information to a Csv file.

 

PowerShell Script:

 

$MachineName = Read-Host "Enter Machine Name"

Gwmi -Name Root\Cimv2 -cl Win32_Product –Comp $MachineName |

Select Name, Version |

Export-Csv C:\Win32_Product.Csv –NoType

 

Published Saturday, March 24, 2007 10:36 AM by dhite
Filed under:

Comments

No Comments