How to get MSI file information with PowerShell

If you’re an ConfigMgr administrator like me, you will often find yourself in the situation where you may want to get the Product Code from a MSI file. Or perhaps you’re interested in the Product Version or simply just the Product Name. A while back I wrote a simple PowerShell script that can assist with just that, for some reason I forgot to post about it so here goes. As this is going to be a short post, I’ll not go much into detail on how it works, instead I’ll just give you the script.
Script
Save the above script as Get-MSIFileInformation.ps1 to C:\Scripts.
1. Open a PowerShell console and browse to C:\Scripts.
2. Run the following command:
Note! You should specify a valid path to a MSI file in your environment.
105_1
I hope this helps!
Original post:
http://www.scconfigmgr.com/2014/08/22/how-to-get-msi-file-information-with-powershell/

Комментарии

Популярные сообщения из этого блога

Настройка TIME ZONE для Asterisk.

Макросы объединения ячеек в EXEL.