external help file | schema |
---|---|
Posh-Teamviewer-help.xml |
2.0.0 |
Connects to a Teamviewer Device
Connect-Teamviewer -ComputerName <String[]> -Password <SecureString> [<CommonParameters>]
Connect-Teamviewer -ComputerName <String[]> -Password <SecureString> [-UpdateDeviceList]
[-AccessToken <SecureString>] [<CommonParameters>]
Connects to a Teamviewer Device using ComputerName.
Requires a Teamviewer Access Token to be set via Set-TeamviewerAccessToken. If in a new PowerShell Session, you can load a saved Access Token with Initialize-Teamviewer.
PS C:\> Connect-Teamviewer -ComputerName 'TestName' -Password $SecureString
Connects to Teamviewer device using supplied password as Secure String.
PS C:\> Connect-Teamviewer -ComputerName 'TestName'
Connects to Teamviewer device and prompts the User to enter the Device Password.
PS C:\> $ComputerList = @('Test1','Test2')
PS C:\> Connect-Teamviewer -ComputerName $ComputerList
Connects to Teamviewer devices Test1 and Test2 and prompts the User to enter the Device Password.
PS C:\> Connect-Teamviewer -ComputerName 'Test'
The user is prompted to select a Device from a list of Matches of Devices with the word 'Test' in the name.
PS C:\> Connect-Teamviewer -ComputerName 'TestName' -UpdateDeviceList
Updates the stored Device list before connecting to the Device. Requires the Teamviewer AccessToken to be set using Set-TeamviewerAccessToken or Initialize-Teamviewer to load a previously saved one.
The Teamviewer Access Token.
Type: SecureString
Parameter Sets: Update
Aliases:
Required: False
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
The name or the alias of the Device to be connected to.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
The Teamviewer Device password.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
Update the Devices List Global Variable that the Device information is stored. Teamviewer accounts with a large device list can take a very long time to send a response back with Device Ids. To get around this Device information is gathered and stored when Initialize-Teamviewer is ran to decrypt the Teamviewer Access Token. This allows quick Device information look up.
Type: SwitchParameter
Parameter Sets: Update
Aliases:
Required: False
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
Before you can use this Command you need to set you Teamviewer AccessToken with Set-TeamviewerAccessToken or load a previously saved AccessToken with Initialize-Teamviewer.