external help file | schema |
---|---|
Posh-Teamviewer-help.xml |
2.0.0 |
Encrypts the User's Teamviewer AccessToken and sets the SecureString value as a Global Variable.
Set-TeamviewerAccessToken -AccessToken <SecureString> [-MasterPassword] <SecureString> [<CommonParameters>]
Encrypts the User's Teamviewer AccessToken with a Master Password and sets the SecureString value as $Global:TeamviewerAccessToken Variable.
PS C:\> Set-TeamviewerAccessToken -AccessToken $SecureAccessTokenString -MasterPassword $SecureString
Sets the AccessToken using the supplied Secure String Password.
PS C:\> Set-TeamviewerAccessToken
Prompts the User for their Master Password and AccessToken.
The Teamviewer Access Token.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value:
Accept pipeline input: False
Accept wildcard characters: False
The Master Password the AccessToken will be Encrypted with.
Type: SecureString
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value:
Accept pipeline input: True (ByPropertyName)
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).
Special thanks to Carlos Perez for the AccessToken Encryption Code.