< Back
Connect-BTSession
Post
NAME Connect-BTSession
SYNOPSIS
Connects to a Power365 instance. The Power365 Session remains the default until Connect-BTSession is invoked
again, or -Session is specified on a cmdlet.
SYNTAX
Connect-BTSession -ApiKey <SecureString> [<CommonParameters>]
DESCRIPTION
Connect-BTSession connects to a Power365 instance.
This requires an ApiKey issued by an administrator of your Power365 account.
PARAMETERS
-ApiKey <SecureString>
The API Key issued by an administrator of your Power365 account.
Required? true
Position? named
Default value
Accept pipeline input? false
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
OUTPUTS
BinaryTree.Power365.Cmdlet.Session
---------- EXAMPLE 1 ----------
$secureKey = Read-Host 'What is your ApiKey?' -AsSecureString
Connect-BTSession -ApiKey $secureKey
Returns the Power365 Session.
RELATED LINKS
SYNOPSIS
Connects to a Power365 instance. The Power365 Session remains the default until Connect-BTSession is invoked
again, or -Session is specified on a cmdlet.
SYNTAX
Connect-BTSession -ApiKey <SecureString> [<CommonParameters>]
DESCRIPTION
Connect-BTSession connects to a Power365 instance.
This requires an ApiKey issued by an administrator of your Power365 account.
PARAMETERS
-ApiKey <SecureString>
The API Key issued by an administrator of your Power365 account.
Required? true
Position? named
Default value
Accept pipeline input? false
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
OUTPUTS
BinaryTree.Power365.Cmdlet.Session
---------- EXAMPLE 1 ----------
$secureKey = Read-Host 'What is your ApiKey?' -AsSecureString
Connect-BTSession -ApiKey $secureKey
Returns the Power365 Session.
RELATED LINKS