-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGet-SoftwareList.ps1
More file actions
17 lines (13 loc) · 870 Bytes
/
Copy pathGet-SoftwareList.ps1
File metadata and controls
17 lines (13 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Get-SoftwareList.ps1
# Retrieves installed software from local or remote computers
# Get all installed software on a remote computer (requires credentials)
# Replace <DomainCredential> and <ComputerName> with actual values
# $cred = Get-Credential
# Get-WmiObject -Class Win32_Product -Credential $cred -ComputerName <ComputerName>
# Get all installed software on the local machine
Get-WmiObject -Class Win32_Product | Select-Object Name, Version | Sort-Object Name | Format-Table -AutoSize
# Filter for specific software (e.g., Java)
Write-Host "`n--- Java Installations ---" -ForegroundColor Cyan
Get-WmiObject -Class Win32_Product -Filter "Name Like 'Java%'" | Select-Object Name, Version | Format-List
# Optional: Export to CSV
# Get-WmiObject -Class Win32_Product | Select-Object Name, Version | Export-Csv -Path "C:\Temp\SoftwareList.csv" -NoTypeInformation