Online Docs

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

1
2
3
4
5
Get-exTasks
-Domain <String>
-ErrorLogPath <String>
[-Cookie <String> ]
[<CommonParameters>]

Parameters

  • Domain:
  • 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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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

Comment

Was this article helpful?
Thanks For Your Feedback