teamviewer.com link icon
or
Ask The Community

String must be a device ID in the form 'd123456789'

Hergen
Hergen Posts: 1
edited September 2022 in API and scripting

Trying to reassign a device using following command example (I've hidden last 4 digits here in the text by using XXXX):

Set-TeamViewerDevice -DeviceId '105663XXXX' -GroupId 'g1234'

Outputs following error:

Set-TeamViewerDevice : Cannot validate argument on parameter 'Device'. Invalid device identifier '105663XXXX'. String must be a device ID in the form 'd123456789'

This can never work as TeamViewer ID's dont start with "d" ?