YRYogeshwaran Rinitops.hashnode.dev·Oct 8, 2023 · 1 min readFind unknown SID in GPOImport-Module GroupPolicy $gpo = Get-GPO -All Foreach ($g in $gpo) { $permissions = $g.getsecurityinfo() Foreach ($p in $permissions) { If ($p.Trustee.SidType -eq “unknown”) { Write-Host “Policy with unknown SID: $($g.DisplayName)” Write-Host “Truste...00
YRYogeshwaran Rinitops.hashnode.dev·Aug 21, 2022 · 1 min readSearch specific event IDimport-csv “C:\temp\Comp.csv” | %{Get-WinEvent -ComputerName $_.ComputerName -FilterHashtable @{logname = ‘System’; id = 1074} -MaxEvents 3 } Sysinternal psloglist psloglist \testRDS6a,testRDS6b,testRPT6,testRpt6a -a 04/21/21 -b 04/23/21 -i 1074 -o U...00