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 09:06] – создано Алексей Максимов | powershell:active-directory:find-active-directory-ous-and-containers-with-a-specific-security-group-in-acl-using-powershell [10.10.2024 09:07] (текущий) – Алексей Максимов | ||
|---|---|---|---|
| Строка 15: | Строка 15: | ||
| $acl = Get-Acl -Path " | $acl = Get-Acl -Path " | ||
| foreach ($ace in $acl.Access) { | foreach ($ace in $acl.Access) { | ||
| - | | + | if ($ace.IdentityReference -like " |
| - | Write-Output " | + | Write-Output " |
| - | } | + | |
| } | } | ||
| } | } | ||
powershell/active-directory/find-active-directory-ous-and-containers-with-a-specific-security-group-in-acl-using-powershell.1728551185.txt.gz · Последнее изменение: — Алексей Максимов