Move current device to another group
Nfoster
Posts: 53 ✭✭
I am looking to automating a device move using the following PoSH script.
Set-TeamViewerDevice -DeviceId '%COMPUTERNAME%' -GroupId 'g1234'
Based on the following article,
TeamViewerPS/Set-TeamViewerDevice.md at main · teamviewer/TeamViewerPS · GitHub
If anyone could help with either confirming that the above will work or not. If not, please advise.
Thank you,
0
Comments
-
The
DeviceId
must be the TeamViewer ID (your "TeamViewer number").You can get this number for the current device by calling the
Get-TeamViewerId
PS cmdlet.Find the documentation about it here: https://github.com/teamviewer/TeamViewerPS/blob/main/docs/commands/Get-TeamViewerId.md
So your overall call could look like this:
Set-TeamViewerDevice -DeviceId (Get-TeamViewerId) -GroupId 'g1234'
5