Closed potatoqualitee closed 3 years ago
fixed
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
$a = Import-CliXml ./section.txt ipmo tentools -force; $null=Connect-TNServer -ComputerName securitycenter -Type tenable.sc -Credential $cred ; $a | ConvertFrom-TNRestResponse
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