Gets all projects of the tenant
This cmdlet retrieves all projects as specified by the input parameters. This function returns only eTask projects, giving particular properties/information, including all projects that a specific user has permission.
Get-exProjects
-Domain <String>
[-TeamId <String>]
[-ChannelId <String>]
[-FilterExp <String>]
[<CommonParameters>]
Parameters
- Domain: The domain where Team site is hosted, teams.company.com
- TeamId:
Optional Team ID to be used by the cmdlet. See Common Parameters section in this document for more information. If TeamId is - ChannelId: Channel ID to be used by the cmdlet. Retrieve the value for this parameter by right-click on the team site or channel and press “Get Link” command.
- Cookie:
Optional cookie token to be used to authenticated into Team environment for eTask cmdlets. - FilterExp: Optional filter expression to be used by the cmdlet. See Common Parameters section in this document for more information.
Outputs
Collection of task objects.
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"
$myTeam = "19:ca7641c904da4fdf92820722ff6489fc@thread.skype"
$myChannel = "19:2645ed60e7d941ddb954f5e09366bb48@tGethread.skype"
# connect to Team instance
$myAccount = "oliver@anadea.com"
$userCredential = Get-Credential -UserName $myAccount -Message "Type the password."
Connect-MicrosoftTeams -Credential $userCredential
Write-Host "+ Get-exProjects for Product/General"
$myDomain = "teams.appvity.com"
$myTeam = "19:446c6ec26d414478a8af2af6f205e827@thread.skype"
$myChannel = "19:446c6ec26d414478a8af2af6f205e827@thread.skype"
Get-exProjects -Domain $myDomain -TeamId $myTeam -ChannelId $myChannel
Write-Host "+ Get-exProjects for <--Your channel-->"
$myTeam = "19:711c68b56d894b2697368214024dc89f@thread.skype"
$myChannel = "19:08c4a90b598840f0ad2055a9fe819aec@thread.skype"
Get-exProjects -Domain $myDomain -TeamId $myTeam -ChannelId $myChannel