Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Teams admin Center Settings :

1.How to export teams’ members name and adding owners/members in teams admin center
2.how to prevent users creating shared teams from teams policies
3.

To connect Microsoft Teams ( Single-factor authenticator)

 Install the module if you are connecting for the first time

Install-Module -Name MicrosoftTeams

 login with your credentials

$cred = Get-Credential

 Connect to the server

Connect-MicrosoftTeams

 Disconnet the session

Remove-PSSession -Id

To review team members

Get-Team

GroupId DisplayName Visibility Archived MailNickName Description


------- ----------- ---------- -------- ------------ -----------
d316eae4-d2a9-4aae-8a8b-92af5442ad0c Team-EXT-Collab... Private False Team-EXT-Collab...
Team-EXT-Collab...
7071f21d-e17e-45f1-aae3-aa1e6323f84e PCT ORG-WIDE TEAM Public False PCTORG-
WIDETEAM PCT ORG-WIDE TEAM
7da4fd31-cacc-49cf-9ea6-d26fe73b7def PCT TEST TEAM Private False PCTTESTTEAM
PCT TEST TEAM
b5b8d0d7-98db-45ee-a928-7630a195f620 PCT PUBLIC TEAM Public False
PCTPUBLICTEAM PCT PUBLIC TEAM

To Get the members list of the team


get-TeamUser

cmdlet Get-TeamUser at command pipeline position 1


Supply values for the following parameters:
GroupId: d316eae4-d2a9-4aae-8a8b-92af5442ad0c

UserId User Name Role


------ ---- ---- ----
9bb6aeeb-2ea6-4fa9-8af3-d414bfee0860 admin@tree38.onmicrosoft.com Shanmugaraj Rajendran
owner

PS C:\Windows\system32> get-TeamUser

cmdlet Get-TeamUser at command pipeline position 1


Supply values for the following parameters:
GroupId: 7da4fd31-cacc-49cf-9ea6-d26fe73b7def(mention the teams group ID here)

UserId User Name Role


------ ---- ---- ----
9bb6aeeb-2ea6-4fa9-8af3-d414bfee0860 admin@tree38.onmicrosoft.com Shanmugaraj Rajendran
owner

You might also like