PowerShell - Get Installed Programs, Versions and dates, Read-Host (1 Per run)
- Jon Boyette
- Jan 12, 2022
- 1 min read
Save the Code as a DiscoverInstallsRemoteServer.ps1, or similar, prompts for server name and displays on screen all the add/remove program installs of a single server
$A = Read-Host "Enter ServerName to Get Intalled Programs, Versions and Install Dates"
$properties = 'Name', 'Version', 'InstallDate'
Get-CimInstance -ClassName Win32_Product -ComputerName $A -Property $properties | Select-Object -Property $properties | Sort-Object Name
Comments