Advertisement
bomb

list a history of installed apps

Oct 9th, 2024 (edited)
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Get-WinEvent -LogName Application | Where-Object { $_.ProviderName -eq 'MsiInstaller' -and $_.Id -eq 11707 } | Select-Object -ExpandProperty Message | ForEach-Object { if ($_ -match 'Product: (.+?) -- Installation completed successfully.') { $matches[1] -replace '\s*\(.*?\)', ''} } | Sort-Object -Unique | Out-File -FilePath 'apps.txt'
  2.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement