Connect-eTask
This command connect to session to eTask using the account credential to perform queries. If you are not connected to Team, a login form will be presented for you to provide the log in account. PowerShell
Get-exTasks
-Domain <String>
-ErrorLogPath <String>
[-Cookie <String> ]
[<CommonParameters>]
Parameters
- Domain:
- The domain where Team site is hosted, teams.company.com.
- Cookie:
- Optional cookie token to be used to authenticated into Team environment for eTask cmdlets.
- ErrorLogPath:
- Error log file path, "E:\My Documents\PowerShell\TestOneLog.txt"
Outputs
None.
Error: TBS.
Examples
#import extension modules
If (!(Get-module MicrosoftTeams )) {
Import-Module -name 'MicrosoftTeams'
}
If (!(Get-module Appvity.eTask.PowerShell)) {
Import-Module -name 'Appvity.eTask.PowerShell'
}
#test variables
$myDomain = "teams.appvity.com"
$myChannelName = "Team Playground V2"
$myTeam = "19:ca7641c904da4fdf92820722ff6489fc@thread.skype"
$myChannel = "19:2645ed60e7d941ddb954f5e09366bb48@tGethread.skype"
$myChannelName = "Anade Project"
$myGroupId = "2aee63b0-a616-4d52-b22b-84c971ba0d25"
$myLogPath = "E:\Data\My Documents\Projects\PowerShell\eTask\TestOneLog.txt"
# connect to Team instance
$myAccount = "oliver@anadea.com"
$userCredential = Get-Credential -UserName $myAccount -Message "Type the password."
Connect-MicrosoftTeams -Credential $userCredential
# connect to eTask
Connect-eTask -Domain $myDomain -ErrorLogPath $myLogPath