< Back
Set-TeamviewerAccessToken
Post
NAME Set-TeamviewerAccessToken
SYNOPSIS
Encrypts the User's Teamviewer AccessToken and sets the SecureString value as a Global Variable.
SYNTAX
Set-TeamviewerAccessToken [-MasterPassword] <SecureString> -AccessToken <SecureString> [<CommonParameters>]
DESCRIPTION
Encrypts the User's Teamviewer AccessToken with a Master Password and sets the SecureString value as
$Global:TeamviewerAccessToken Variable.
PARAMETERS
-AccessToken <SecureString>
The Teamviewer Access Token.
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-MasterPassword <SecureString>
The Master Password the AccessToken will be Encrypted with.
Required? true
Position? 1
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Security.SecureString
OUTPUTS
System.Object
NOTES
Special thanks to Carlos Perez for the AccessToken Encryption Code.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\> Set-TeamviewerAccessToken -AccessToken $SecureAccessTokenString -MasterPassword $SecureString
Sets the AccessToken using the supplied Secure String Password.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\> Set-TeamviewerAccessToken
Prompts the User for their Master Password and AccessToken.
RELATED LINKS
Online Version http://posh-teamviewer.readthedocs.io/e ... cessToken/
Markdown Version https://github.com/gerane/Posh-Teamview ... ssToken.md
Documentation https://readthedocs.org/projects/posh-teamviewer/
PSGallery https://www.powershellgallery.com/packa ... eamviewer/
Carlos Perez Github https://github.com/darkoperator
Create Teamviewer Access Token https://integrate.teamviewer.com/en/dev ... eateScript
Teamviewer Api Documentation https://integrate.teamviewer.com/en/develop/api/
SYNOPSIS
Encrypts the User's Teamviewer AccessToken and sets the SecureString value as a Global Variable.
SYNTAX
Set-TeamviewerAccessToken [-MasterPassword] <SecureString> -AccessToken <SecureString> [<CommonParameters>]
DESCRIPTION
Encrypts the User's Teamviewer AccessToken with a Master Password and sets the SecureString value as
$Global:TeamviewerAccessToken Variable.
PARAMETERS
-AccessToken <SecureString>
The Teamviewer Access Token.
Required? true
Position? named
Default value
Accept pipeline input? False
Accept wildcard characters? false
-MasterPassword <SecureString>
The Master Password the AccessToken will be Encrypted with.
Required? true
Position? 1
Default value
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.Security.SecureString
OUTPUTS
System.Object
NOTES
Special thanks to Carlos Perez for the AccessToken Encryption Code.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\> Set-TeamviewerAccessToken -AccessToken $SecureAccessTokenString -MasterPassword $SecureString
Sets the AccessToken using the supplied Secure String Password.
-------------------------- EXAMPLE 2 --------------------------
PS C:\\> Set-TeamviewerAccessToken
Prompts the User for their Master Password and AccessToken.
RELATED LINKS
Online Version http://posh-teamviewer.readthedocs.io/e ... cessToken/
Markdown Version https://github.com/gerane/Posh-Teamview ... ssToken.md
Documentation https://readthedocs.org/projects/posh-teamviewer/
PSGallery https://www.powershellgallery.com/packa ... eamviewer/
Carlos Perez Github https://github.com/darkoperator
Create Teamviewer Access Token https://integrate.teamviewer.com/en/dev ... eateScript
Teamviewer Api Documentation https://integrate.teamviewer.com/en/develop/api/