export computer list

CulturaInfra
CulturaInfra Posts: 1
edited August 28 in TeamViewer Tensor

Hi all,

i'm have a problem when i try to extact the devices in my console.

when i run this script, i got a empty file :

$jsonFile = "YOURPATH\Computers export.json"$csvFile = "YOURPATH\Computers export.csv"$tvAccessToken = read-host "Please type your token "​$devicesResponse = Invoke-RestMethod -Uri "https://webapi.teamviewer.com/api/v1/devices?full_list=true" -Method Get -Headers @{authorization = "Bearer $tvAccessToken"}$devicesResponse.devices | ConvertTo-Json | Out-File $jsonFile$devicesResponse.devices | Export-Csv -Path $csvFile -Delimiter ',' -NoTypeInformation

i looked around and i find that he only extract 'groups' while all my computers are in 'device group'

any idea please

Answers

  • I'm having the same problem; this export is missing all of the device grouped computers.