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 13:47] – создано Виталий Якоб | symantec:symantec-endpoint-protection-manager-14-how-to-find-groups-policy-inheritance-false [03.03.2021 14: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 | ||
$auth = $cred | ConvertTo-Json | $auth = $cred | ConvertTo-Json | ||
- | $Authent = Invoke-RestMethod -Uri " | + | |
+ | $Authent = Invoke-RestMethod -Uri " | ||
+ | -Method Post ` | ||
+ | -Body $auth ` | ||
+ | -ContentType ' | ||
$access_token = $Authent.Token | $access_token = $Authent.Token | ||
- | + | $groups = Invoke-RestMethod -Method get -Uri " | |
- | $groups=Invoke-RestMethod -Method get -Uri " | + | |
- | + | | |
- | $groups.content|Where-Object { $_.policyInheritanceEnabled -ne $true }|select | + | |
+ | $groups.content | Where-Object { $_.policyInheritanceEnabled -ne $true }| ` | ||
+ | Select | ||
</ | </ |
symantec/symantec-endpoint-protection-manager-14-how-to-find-groups-policy-inheritance-false.1614768458.txt.gz · Последнее изменение: 03.03.2021 13:47 — Виталий Якоб