potatoqualitee / tentools

💙 tenable.sc / nessus / acas powershell module
BSD 3-Clause "New" or "Revised" License
39 stars 7 forks source link

error #21

Closed potatoqualitee closed 3 years ago

potatoqualitee commented 3 years ago

https://securitycenter/rest/policy/1?expand=policyTemplate&fields=preferences,families,auditFiles,name,description,tags,type,createdTime,ownerGroup ,groups,owner,modifiedTime,policyTemplate,canUse,canManage,status1 with 0-byte payload

that status1

fixed

potatoqualitee commented 3 years ago

fixed

potatoqualitee commented 3 years ago
ipmo tentools -force; $null=Connect-TenServer -ComputerName securitycenter -Type tenable.sc -Credential $cred; Invoke-TenRequest -Path '/policy/1?expand=policyTemplate&fields=preferences,families,auditFiles,name,description,tags,type,createdTime,ownerGroup,groups,owner,modifiedTime,policyTemplate,canUse,canManage,status' -Method GET | Select -ExpandProperty PolicyTemplate | Select -ExpandProperty Editor  | ConvertFrom-TenRestResponse -Verbose
potatoqualitee commented 3 years ago

section.txt

$a = Import-CliXml ./section.txt ipmo tentools -force; $null=Connect-TNServer -ComputerName securitycenter -Type tenable.sc -Credential $cred ; $a | ConvertFrom-TNRestResponse