Skip to content

Latest commit

 

History

History
112 lines (74 loc) · 2.27 KB

Add-TeamViewerAssignment.md

File metadata and controls

112 lines (74 loc) · 2.27 KB

external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Add-TeamViewerAssignment.md schema: 2.0.0

Add-TeamViewerAssignment

SYNOPSIS

Assigns the local device to a TeamViewer company.

SYNTAX

Add-TeamViewerAssignment [-AssignmentId] [-DeviceAlias] [-Retries] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Assigns the local device to a TeamViewer company, where it appears in the Managed Devices list. The assignment ID can be obtained from the Management Console (MCO) under Design & Deploy.

EXAMPLES

Example 1

Add-TeamViewerAssignment -AssignmentId '0001CoABChCiJnyAKf0R7r6'

Assigns the local device with default alias (hostname of device) to the TeamViewer company corresponding to the Assignment Id.

Example 2

Add-TeamViewerAssignment -AssignmentId '0001CoABChD3RCXwL6IR7pS' -DeviceAlias 'My Test Device'

Assigns the local device with alias "My Test Device" to the corresponding TeamViewer company using the default number of retries.

Example 3

Add-TeamViewerAssignment -AssignmentId '0001CoABChD3RCXwL6IR7pS' -DeviceAlias  'My Test Device' -Retries 3

Assigns the local device with alias "My Test Device" to the corresponding TeamViewer company. Three assignment retries are done.

PARAMETERS

-AssignmentId

Object that is required to assign the device to a Company.

Type: Object
Parameter Sets: (All)
Aliases: None

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DeviceAlias

The alias to assign to the device. If omitted, the hostname is used.

Type: String
Parameter Sets: (All)
Aliases: None

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Retries

The assignment is retried in case of temporary connection errors. There is a waiting time of 1 second between each try.

Type: int
Parameter Sets: (All)
Aliases: None

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

INPUTS

OUTPUTS

NOTES

RELATED LINKS