1
00:00:01,940 --> 00:00:03,580
[Autogenerated] Now that we know why, it's

2
00:00:03,580 --> 00:00:05,980
important to know. Let's go and find

3
00:00:05,980 --> 00:00:09,110
SharePoint Sykes associated with teams,

4
00:00:09,110 --> 00:00:12,530
private channels. First of all, you need

5
00:00:12,530 --> 00:00:15,510
to have the SharePoint online PowerShell

6
00:00:15,510 --> 00:00:18,450
module, and I would also recommend the

7
00:00:18,450 --> 00:00:21,780
Microsoft teams PowerShell module. And

8
00:00:21,780 --> 00:00:24,930
this is optional and only needed. If you

9
00:00:24,930 --> 00:00:27,980
want to get the private channel Sykes for

10
00:00:27,980 --> 00:00:32,420
a specific team. Microsoft has given a

11
00:00:32,420 --> 00:00:35,210
special template name to the SharePoint

12
00:00:35,210 --> 00:00:38,230
Sykes associated with private channels,

13
00:00:38,230 --> 00:00:41,240
and this is the team channel pound zero

14
00:00:41,240 --> 00:00:44,970
template. So if we want to get all of the

15
00:00:44,970 --> 00:00:48,140
sites associated with private channels, we

16
00:00:48,140 --> 00:00:51,910
could run a get is Pluralsight limit all

17
00:00:51,910 --> 00:00:54,430
in order to see all of them in case you

18
00:00:54,430 --> 00:00:57,850
got a lot and limit the team channel

19
00:00:57,850 --> 00:01:01,430
template to find a SharePoint site to our

20
00:01:01,430 --> 00:01:04,810
roles of private channels for a specific

21
00:01:04,810 --> 00:01:08,040
team, we first need to get the team that

22
00:01:08,040 --> 00:01:11,580
we want and save it in a variable by using

23
00:01:11,580 --> 00:01:14,890
the team's PowerShell module. We will then

24
00:01:14,890 --> 00:01:17,350
get all of the SharePoint sites in our

25
00:01:17,350 --> 00:01:19,940
attendant with the team Channel zero

26
00:01:19,940 --> 00:01:23,020
template, and we will look through each

27
00:01:23,020 --> 00:01:25,720
SharePoint site and actually use the

28
00:01:25,720 --> 00:01:29,200
detail switch parameter in order to get

29
00:01:29,200 --> 00:01:32,800
all of the information we need. Finally,

30
00:01:32,800 --> 00:01:35,630
if the site collection property called

31
00:01:35,630 --> 00:01:39,520
Related Group ID is the same as the team

32
00:01:39,520 --> 00:01:46,000
group ID, we will output the site collection. You are URL.

