Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement