symantec:symantec-endpoint-protection-manager-14-how-to-find-groups-policy-inheritance-false
Различия
Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
| symantec:symantec-endpoint-protection-manager-14-how-to-find-groups-policy-inheritance-false [03.03.2021 10:58] – Виталий Якоб | symantec:symantec-endpoint-protection-manager-14-how-to-find-groups-policy-inheritance-false [03.03.2021 11:04] (текущий) – Виталий Якоб | ||
|---|---|---|---|
| Строка 9: | Строка 9: | ||
| $restAPI = ' | $restAPI = ' | ||
| - | $cred= @{ | + | $cred = @{ |
| - | username = " | + | |
| - | password = " | + | |
| - | domain = "" | + | |
| - | } | + | |
| #converts $cred array to json to send to the SEPM | #converts $cred array to json to send to the SEPM | ||
| Строка 19: | Строка 19: | ||
| $Authent = Invoke-RestMethod -Uri " | $Authent = Invoke-RestMethod -Uri " | ||
| - | | + | |
| + | -Body $auth ` | ||
| | | ||
| $access_token = $Authent.Token | $access_token = $Authent.Token | ||
| - | $groups=Invoke-RestMethod -Method get -Uri " | + | $groups = Invoke-RestMethod -Method get -Uri " |
| - | -ContentType " | + | -ContentType " |
| - | -Headers @{Authorization=' | + | -Headers @{Authorization = ' |
| $groups.content | Where-Object { $_.policyInheritanceEnabled -ne $true }| ` | $groups.content | Where-Object { $_.policyInheritanceEnabled -ne $true }| ` | ||
symantec/symantec-endpoint-protection-manager-14-how-to-find-groups-policy-inheritance-false.1614769081.txt.gz · Последнее изменение: — Виталий Якоб