Вики IT-KB

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

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

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


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:58] Виталий Якобsymantec:symantec-endpoint-protection-manager-14-how-to-find-groups-policy-inheritance-false [03.03.2021 14:04] (текущий) Виталий Якоб
Строка 9: Строка 9:
 $restAPI = 'https://Server-SEPM.holding.com:8446/sepm/api/v1' $restAPI = 'https://Server-SEPM.holding.com:8446/sepm/api/v1'
    
-$cred= @{ +$cred = @{ 
-    username = "login" +           username = "login" 
-    password = "pass" +           password = "pass" 
-    domain = "" +           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 "$restAPI/identity/authenticate" ` $Authent = Invoke-RestMethod -Uri "$restAPI/identity/authenticate" `
-                             -Method Post -Body $auth `+                             -Method Post 
 +                             -Body $auth `
                              -ContentType 'application/json'                              -ContentType 'application/json'
  
 $access_token = $Authent.Token $access_token = $Authent.Token
-$groups=Invoke-RestMethod -Method get -Uri "$restAPI/groups?pageSize=10000"+$groups = Invoke-RestMethod -Method get -Uri "$restAPI/groups?pageSize=10000"
-                          -ContentType "application/json"+                            -ContentType "application/json"
-                          -Headers @{Authorization='Bearer ' + $access_token}+                            -Headers @{Authorization = 'Bearer ' + $access_token}
  
 $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 · Последнее изменение: 03.03.2021 13:58 — Виталий Якоб

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki