potatoqualitee/tentools

fix connecting to 3

potatoqualitee opened this issue · 0 comments

ipmo tentools -force; $null=Connect-TNServer -ComputerName securitycenter -Type tenable.sc -Credential $secman; $null=Connect-TNServer -ComputerName macmini -Credential $cred; $null=Connect-TNServer -ComputerName localhost -Credential $cred ;Import-TNPolicy -FilePath .\tests\library\policy.nessus -Verbose
Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Version".
At line:201 char:38

  •             $script:NessusConn[$($script:NessusConn.Count) - 1].S ...
    
  •                                  ~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:) [], RuntimeException
    • FullyQualifiedErrorId : ConvertToFinalInvalidCastException