Professional Documents
Culture Documents
The big changes in the V1.0 module are in the Get-Team cmdlet. First, Get-
Team supports basic filtering capabilities. Get-Team can return a set of
teams:
Owned by someone: specify the User parameter and pass the user’s email
address:
PowerShell
1 Get-Team -User Oisin.Johnston@Office365itpros.com
PowerShell
1 Get-Team -Archived $True
PowerShell
1 Get-Team -Visibility Public
PowerShell
1 Get-Team -Visibility Private -Archived $True -User Tony.Redmond@office365itpros.com
While you retrieve sets of teams with Get-Team, two issues become
painfully apparent. First, the cmdlet is slow. Second, the filters are client-
side rather than server-side and don’t support the kind of filtering
functionality that you might be accustomed to with cmdlets like Get-Mailbox.
For instance, wildcard matching is unsupported.
This won’t be a big deal when you only work with a few teams, but it
becomes a much bigger problem as the number of teams mounts into the
hundreds or thousands.
Microsoft acknowledges that performance isn’t what it should be, and we
can hope for improvements in the future. Unfortunately, the Get-
UnifiedGroup cmdlet (often used to retrieve information not returned by Get-
Team) is a sloth of a cmdlet too. The net is that we have plenty of time to
drink coffee.
Here’s what the full set of properties returned for a team looks like:
PowerShell
1 Get-Team -GroupId de797c44-d998-4682-b1e0-aa938cfc05a8 |Format-List
2
3 GroupId : de797c44-d998-4682-b1e0-aa938cfc05a8
4 DisplayName : Forza Roma
5 Description : Rome at its best
6 Visibility : Public
7 MailNickName : ForzaRoma
8 Classification :
9 Archived : False
10 AllowGiphy : True
11 GiphyContentRating : moderate
12 AllowStickersAndMemes : True
13 AllowCustomMemes : True
14 AllowGuestCreateUpdateChannels : False
15 AllowGuestDeleteChannels : False
16 AllowCreateUpdateChannels : True
17 AllowDeleteChannels : True
18 AllowAddRemoveApps : True
19 AllowCreateUpdateRemoveTabs : True
20 AllowCreateUpdateRemoveConnectors : True
21 AllowUserEditMessages : True
22 AllowUserDeleteMessages : True
23 AllowOwnerDeleteMessages : True
24 AllowTeamMentions : True
25 AllowChannelMentions : True
As mentioned above, the Set-Team cmdlet now can control all the settings
previously set in cmdlets like Set-TeamGuestSettings. For example:
PowerShell
1 Set-Team -GroupId de797c44-d998-4682-b1e0-aa938cfc05a8 -AllowGuestCreateUpdateChannels $True