| external help file | TeamViewerPS-help.xml |
|---|---|
| Module Name | TeamViewerPS |
| online version | https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/New-TeamViewerContact.md |
| schema | 2.0.0 |
Create a new contact entry in the TeamViewer Computers & Contacts list.
New-TeamViewerContact [-ApiToken] <SecureString> [-Email] <String> [-Group] <Object> [-Invite] [-WhatIf]
[-Confirm] [<CommonParameters>]Adds a new contact to the Computers & Contacts list of the account that is associated to the TeamViewer API access token.
PS /> New-TeamViewerContact -Email 'test@example.test' -Group 'g1234'Add the account with the given email address to the Computers & Contacts list into the group with the given group ID.
PS /> New-TeamViewerContact -Email 'another@example.test' -Group 'g1234' -InviteAdd a new entry to the Computers & Contacts list and send an invitation to the given email address if no such user exists yet.
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: FalseEmail address of the contact to add (or invite).
Type: String
Parameter Sets: (All)
Aliases: EmailAddress
Required: True
Position: 1
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: FalseCreates an invitation if there is no account with the given email address.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
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.