GPO report


hello all

i trying gpo report of security filtering of gpos in domain

this line

    $securityfilter = ((get-gppermissions -name $gpoitem -all | ?{$_.permission -eq "gpoapply"}).trustee | ?{$_.sidtype -ne "unknown"}).name -join ','

return group if there 1 group, if gpo has more 1 filtering return nothing...

somebody can me?

thanks

hi javiso,

based on experience, permission on gpo powershell achieve goal report security filtering of gpo.

$perms =foreach($gpo in(get-gpo -all|where{$_.displayname-like "*name*"})){foreach($perm in(get-gppermissions$gpo.displayname-all|where{$_.permission-eq "gpoapply"})){new-objectpsobject-property @{gpo=$gpo.displayname;trustee=$perm.trustee.name;permission=$perm.permission}}}

$perms |selectgpo,trustee,permission

for detailed information, refer similar thread below.

https://social.technet.microsoft.com/forums/scriptcenter/en-us/6d717266-e641-47df-807e-4d579f6f914f/gpo-report-with-security-filtering?forum=winserverpowershell

best regards,

jay


please remember mark replies answers if , un-mark them if provide no help. if have feedback technet subscriber support, contact tnmff@microsoft.com.



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

DCOM received error "2147746132" from...

DFSR RPC replication errors 5014 1726 with large files over VPN

ADFS 3.0 Event ID 4625 | An Error occurred During Logon | Status: 0xC000035B