| external help file | TeamViewerPS-help.xml |
|---|---|
| Module Name | TeamViewerPS |
| online version | https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/New-TeamViewerDevice.md |
| schema | 2.0.0 |
Create a new device entry in the TeamViewer Computers & Contacts list.
New-TeamViewerDevice [-ApiToken] <SecureString> [-TeamViewerId] <Int32> [-Group] <Object> [[-Name] <String>]
[[-Description] <String>] [[-Password] <SecureString>] [-WhatIf] [-Confirm] [<CommonParameters>]Adds a new device entry to the Computers & Contacts list of the account that is associated to the TeamViewer API access token.
PS /> New-TeamViewerDevice -TeamViewerId 12345678 -Group 'g1234'Adds the device with the given TeamViewer ID to the Computers & Contacts list into the group with the given group ID.
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: FalseOptional description for the device entry.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseObject that can be used to identify the group. This can either be the group ID or a group object that has been received using other module functions.
Type: Object
Parameter Sets: (All)
Aliases: GroupId
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOptional alias for the device entry.
Type: String
Parameter Sets: (All)
Aliases: Alias
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseOptional password that will be used when connecting to the device with the TeamViewer desktop client.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: False
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe TeamViewer remote control ID of the device to be added.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
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.