Installed Software

Enumerate

Simple Listing:

Get-CimInstance -ClassName Win32_Product
Get-WmiObject -Class Win32_Product | Select-Object Name, Version
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall* | Select-Object DisplayName, DisplayVersion, Publisher | Format-Table –AutoSize

More Details:

Get-WmiObject -Class Win32_Product | Select-Object Name, Version, InstallDate, Vendor
wmic /output:C:\InstalledSoftware.txt product get name, version, description, installdate, vendor

Export to File:

Get-WmiObject -Class Win32_Product | Select-Object Name, Version, InstallDate, Vendor | Export-Csv -Path "C:\InstalledSoftware.csv" -NoTypeInformation

Install / Uninstall

Executable (.exe) Installers

<InstallerName>.exe

Runs an executable installer with its default configuration.

<InstallerName>.exe /?

Displays available command-line options for the executable installer.

<InstallerName>.exe /silent

Installs the software silently without user interaction (specific options vary by installer).

<UninstallerName>.exe

Runs an executable uninstaller with its default configuration.

<UninstallerName>.exe /?

Displays available command-line options for the executable uninstaller.

<UninstallerName>.exe /silent

Uninstalls the software silently without user interaction (specific options vary by uninstaller).

Windows Installer (.msi) Packages

msiexec /i <PackageName>.msi

Installs an MSI package.

msiexec /i <PackageName>.msi /qn

Installs an MSI package quietly without user interface.

msiexec /x <PackageName>.msi

Uninstalls an MSI package.

msiexec /x <PackageName>.msi /qn

Uninstalls an MSI package quietly without user interface.

msiexec /x {<ProductCode>}

Uninstalls an MSI package using its product code.

Installs an MSI package with a transform file to customize the installation.

msiexec /i <PackageName>.msi TRANSFORMS=<TransformFile>.mst

PowerShell

Install-Package -Name <PackageName>

Installs a package from a package provider

Start-Process -FilePath <InstallerName>.exe -ArgumentList '/silent'

Runs an executable installer quietly.

Start-Process -FilePath msiexec -ArgumentList '/i <PackageName>.msi /qn'

Installs an MSI package quietly.

Uninstall-Package -Name <PackageName>

Uninstalls a package from a package

Start-Process -FilePath <UninstallerName>.exe -ArgumentList '/silent'

Runs an executable uninstaller quietly.

Start-Process -FilePath msiexec -ArgumentList '/x <PackageName>.msi /qn'

Uninstalls an MSI package quietly.

Windows Package Manager (winget)

winget install <PackageName>

Installs package

winget uninstall <PackageName>

Uninstalls package

Uninstall applications that begin with Google

(Get-WmiObject Win32_Product -computername win7 -credential fred -filter "Name like '%Google%'").Uninstall()

Last updated

Was this helpful?