external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Move-TeamViewerManagedDevice.md schema: 2.0.0
Move a managed device from one managed group to another.
Move-TeamViewerManagedDevice [-APIToken] <SecureString> [-Device] <Guid> [-SourceGroup] <Guid> [-TargetGroup] <Guid> [-WhatIf]
[-Confirm] [<CommonParameters>]Moves an existing managed device from one managed group to another. This will remove the device from the source group, and add the device to the target group. Offline devices will apply this change when coming online again.
Move-TeamViewerManagedDevice -Device 'c0cb303a-8a85-4e54-b657-a4757c791aef' -SourceGroup '9fd16af0-c224-4242-998e-a7138b038dbb' -TargetGroup '6084ffb1-c2d7-45e8-b6ab-5322ff761a30'Moves the managed device with the given device Id from the managed group with the given group Id to another managed group with the given group Id.
Move-TeamViewerManagedDevice -DeviceId 'c0cb303a-8a85-4e54-b657-a4757c791aef' -SourceGroup '9fd16af0-c224-4242-998e-a7138b038dbb' -TargetGroup '6084ffb1-c2d7-45e8-b6ab-5322ff761a30' -WhatIfShows what would happen when moving the device using the DeviceId alias, without performing the change.
$device = Get-TeamViewerManagedDevice -Id 'c0cb303a-8a85-4e54-b657-a4757c791aef'
Move-TeamViewerManagedDevice -Device $device -SourceGroup '9fd16af0-c224-4242-998e-a7138b038dbb' -TargetGroup '6084ffb1-c2d7-45e8-b6ab-5322ff761a30'Moves a managed device object retrieved with Get-TeamViewerManagedDevice from the source group to the target group.
The TeamViewer API access token.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalsePrompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseA string representing the management Id of the device.
Type: Object
Parameter Sets: (All)
Aliases: Id, DeviceId, ManagedDeviceId, ManagedDevice
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseA string representing the group Id of the source group.
Type: Object
Parameter Sets: (All)
Aliases: GroupId
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseA string representing the group Id of the target group.
Type: Object
Parameter Sets: (All)
Aliases: GroupId
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseShows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.