- Get link
- X
- Other Apps
Microsoft Teams Powershell Module Overview
Microsoft has released its first version of PowerShell module for Microsoft team Back in November 2017, so as a PowerShell enthusiastic I thought to review and module and mess around with the CMDs available in the current version of the module.So in this post, I will review the CMDs available in the Module, and further, we will see how admins can take advantage of powershell for Managing Microsoft Teams, so without wasting the time further let’s do the same.
If you have not yet installed the module for “MicrosoftTeams” and wondering how to do that please check out my last article on how to download and install MicrosoftTeams PowerShell Module below.
Install Microsoft Teams PowerShell module
So once you have installed the module for MicrosoftTeams, run the below CMD to get the full list of the available CMDs.
Get-Module Microsoftteams | select -ExpandProperty Exportedcommands
So as we know this is the first version of the module, there are very limited CMDs available in this module.
so let’s connect to the MicrosoftTeams
Connect-MicrosoftTeams -Credential $Cred
Once you are successfully connected you will see the output like below.
So now that we are connected to MicrosoftTeams let's review some Get Commands.
Get-Team
Get-TeamChannel
Get-TeamFunSettings
Get-TeamGuestSettings
Get-TeamMemberSettings
Get-TeamMessagingSettings
Get-TeamUser
In this post we are going to review the above Get Commands, so let's review them one by one.
Get-Team # This CMD will return all the team available in the Environment, there are only 3 attributes return at this time showing below in the Screenshot.
Get-TeamChannel # This CMD returns the Team Channels, to get all the Teams channels we can pipe this cmd to Get-Team CMD.
Get-Team | Get-TeamChannel | fl
we can also get the channels of an individual Team providing the "groupID".
Get-TeamChannel -GroupId ee7781b7-4d45-4a39-ade4-d7872de6490c | fl
Get-TeamFunSettings# This CMD returns the settings for Fun options available on the Team, as highlighted in the screenshot below.
These settings are also available for Team owners in the settings.
Get-Team | Get-TeamFunSettings
By default, all the features are enabled, but if we wish we can disable them for the team using the Set-TeamFunSettings this we are going to review in our next post.
Get-TeamGuestSettings# This CMD returns the Guest Settings options as showing in the picture below.
Get-Team | Get-TeamGuestSettings
As we can Guest settings are disabled by default, Available Set command can be used to manage these settings form powershell.
Get-TeamMemberSettings# This CMD will return settings available for the Team Members, By default all the settings are enabled.
Set command can be used to modify these settings.
if we check the available settings under Member Permissions, we would also see Message related options these settings are control by the "Get-TeamMessagingSettings" which we are going to review Next.
Get-TeamMessagingSettings# This cmd will revert the above message related settings showing in the picture above.
These settings can be enable/disable using the set CMD.
Get-TeamUser# This CMD returns the Teams Member list and what role is assigned to them. By default the person who setups the Team is the Owner of the Team, and the other users are member.
This complete this post where we reviewed the Available Get CMDs in this Module, in the next post we will review the "Set-" CMDs and will see how we can modify or control the setting using powershell.
Visit the next post in the series below.
Overview of the new Microsoft Teams PowerShell Module - part 2
Get-Team
Get-TeamChannel
Get-TeamFunSettings
Get-TeamGuestSettings
Get-TeamMemberSettings
Get-TeamMessagingSettings
Get-TeamUser
- Get link
- X
- Other Apps
Comments
Post a Comment