Вики IT-KB

Пошаговые руководства, шпаргалки, полезные ссылки...

Инструменты пользователя

Инструменты сайта


powershell:active-directory:find-active-directory-ous-and-containers-with-a-specific-security-group-in-acl-using-powershell

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

powershell:active-directory:find-active-directory-ous-and-containers-with-a-specific-security-group-in-acl-using-powershell [10.10.2024 12:06] – создано Алексей Максимовpowershell:active-directory:find-active-directory-ous-and-containers-with-a-specific-security-group-in-acl-using-powershell [10.10.2024 12:07] (текущий) Алексей Максимов
Строка 15: Строка 15:
     $acl = Get-Acl -Path "AD:$DistinguishedName"     $acl = Get-Acl -Path "AD:$DistinguishedName"
     foreach ($ace in $acl.Access) {     foreach ($ace in $acl.Access) {
-        if ($ace.IdentityReference -like "*$Group*") { +     if ($ace.IdentityReference -like "*$Group*") { 
-            Write-Output "$DistinguishedName : Group '$Group' found with permissions: $($ace.ActiveDirectoryRights)" +      Write-Output "$DistinguishedName : Group '$Group' found with permissions: $($ace.ActiveDirectoryRights)" 
-        }+     }
     }     }
 } }
powershell/active-directory/find-active-directory-ous-and-containers-with-a-specific-security-group-in-acl-using-powershell.1728551185.txt.gz · Последнее изменение: Алексей Максимов

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki