initial project push

This commit is contained in:
2026-03-25 23:25:05 +01:00
commit b6db850df4
2 changed files with 27 additions and 0 deletions

27
Get-InstalledSoftware.ps1 Normal file
View File

@@ -0,0 +1,27 @@
function Get-InstalledSoftware {
$paths = @(
"HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*",
"HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
)
$software = foreach ($path in $paths){
Get-ItemProperty $path -ErrorAction SilentlyContinue |
Where-Object { $_.DisplayName } |
Select-Object @{
Name = "Name"; Expression = { $_.DisplayName }
}, @{
Name = "Version"; Expression = { $_.DisplayVersion }
}, @{
Name = "Publisher"; Expression = { $_.Publisher }
}, @{
Name = "InstallDate"; Expression = { $_.InstallDate }
}
}
return $software | Sort-Object name -Unique
}
$timestamp = Get-Date -Format "MM-dd-yyyy-HH-mm"
# Get-InstalledSoftware | Format-Table
Get-InstalledSoftware | ConvertTo-Json | Out-File "software_$($timestamp).json"

Binary file not shown.