17 lines
1.2 KiB
PowerShell
17 lines
1.2 KiB
PowerShell
$ErrorActionPreference='SilentlyContinue'
|
|
'=OFFICE/MCAFEE IN INVENTORY='
|
|
Get-Content C:\Windows\Temp\acg-diag1.txt | Select-String 'Office|365|McAfee' | ForEach-Object{$_.Line.Trim()} | Where-Object{$_ -notmatch '^Security Update|^Update for Microsoft|^Definition Update'} | Sort-Object -Unique
|
|
'=PER-USER INSTALLED APPS='
|
|
Get-ChildItem Registry::HKEY_USERS | Where-Object{$_.Name -match 'S-1-5-21' -and $_.Name -notmatch '_Classes'} | ForEach-Object{
|
|
$sid=$_.PSChildName
|
|
Get-ItemProperty ($_.PSPath+'\Software\Microsoft\Windows\CurrentVersion\Uninstall\*') | Where-Object DisplayName | ForEach-Object{ "[$sid] $($_.DisplayName) | $($_.Publisher)" }
|
|
}
|
|
'=EDGE EXTENSIONS='
|
|
Get-ChildItem "C:\Users\*\AppData\Local\Microsoft\Edge\User Data\*\Extensions\*" -Directory | ForEach-Object{
|
|
$mf=Get-ChildItem "$($_.FullName)\*\manifest.json" | Select-Object -First 1
|
|
if($mf){ $m=Get-Content $mf.FullName -Raw|ConvertFrom-Json; $nm=$m.name; if($nm -like '__MSG*'){$nm="id:$($_.Name)"}; $nm }
|
|
} | Sort-Object -Unique
|
|
'=CHROME EXT IDS='
|
|
Get-ChildItem "C:\Users\*\AppData\Local\Google\Chrome\User Data\*\Extensions\*" -Directory | ForEach-Object{$_.Name} | Sort-Object -Unique
|
|
'=DONE STAGE3='
|