1
00:00:02,340 --> 00:00:03,870
[Autogenerated] Now that we have seen the

2
00:00:03,870 --> 00:00:06,830
theory, let's go to the lab environment

3
00:00:06,830 --> 00:00:09,570
and learn how to find SharePoint. Sykes

4
00:00:09,570 --> 00:00:13,840
associated with teams, private channels.

5
00:00:13,840 --> 00:00:17,180
We are now in the lab environment and let

6
00:00:17,180 --> 00:00:20,110
me open up the PowerShell. I see over here

7
00:00:20,110 --> 00:00:22,430
where I have already connected to

8
00:00:22,430 --> 00:00:25,030
SharePoint online using the SharePoint

9
00:00:25,030 --> 00:00:28,130
online PowerShell module as well as to

10
00:00:28,130 --> 00:00:31,970
Microsoft Eames. Now, first of all, as we

11
00:00:31,970 --> 00:00:34,870
have discussed in the slides, all of the

12
00:00:34,870 --> 00:00:38,080
teams private channels have a specific

13
00:00:38,080 --> 00:00:41,300
template, which is team channel pound

14
00:00:41,300 --> 00:00:45,820
zero. This allows us to super easily used

15
00:00:45,820 --> 00:00:50,010
the get SP Oh, site partial cmdlet IFilter

16
00:00:50,010 --> 00:00:53,960
on that template and quickly find all of

17
00:00:53,960 --> 00:00:57,440
the Sykes in our tenant that have that

18
00:00:57,440 --> 00:00:59,730
template. So, really, all of the private

19
00:00:59,730 --> 00:01:03,670
channel sharpen Sykes in our tenant. Now,

20
00:01:03,670 --> 00:01:06,150
if we want to get a bit more advanced and

21
00:01:06,150 --> 00:01:09,260
let's say we want to take the I T. Systems

22
00:01:09,260 --> 00:01:14,120
refresh team, which if I go and look in

23
00:01:14,120 --> 00:01:16,510
the team's interface, I have one private

24
00:01:16,510 --> 00:01:20,230
channel. Let's say we want to find all of

25
00:01:20,230 --> 00:01:23,340
the private channel SharePoint sites from

26
00:01:23,340 --> 00:01:27,540
that specific team. Let me clean this up,

27
00:01:27,540 --> 00:01:30,170
and the first thing I will do is I will

28
00:01:30,170 --> 00:01:33,860
run to get team partial cmdlet and save

29
00:01:33,860 --> 00:01:38,440
that team inside of a variable, cold team.

30
00:01:38,440 --> 00:01:41,390
After that, I will get all of my shirt

31
00:01:41,390 --> 00:01:44,170
point Sykes with the team Channel pound

32
00:01:44,170 --> 00:01:47,580
zero template. After that, What I will say

33
00:01:47,580 --> 00:01:50,820
is that for each psyched that I got

34
00:01:50,820 --> 00:01:54,990
earlier, look in those and look for the

35
00:01:54,990 --> 00:01:58,940
related group IDE parameter of that site.

36
00:01:58,940 --> 00:02:02,490
And if it matches the group ID, it means

37
00:02:02,490 --> 00:02:06,280
that it's a private channel site and it's

38
00:02:06,280 --> 00:02:08,820
part of that group. And if that is the

39
00:02:08,820 --> 00:02:12,740
case, show me that you are well, so let me

40
00:02:12,740 --> 00:02:15,800
run this for each loop now. And if

41
00:02:15,800 --> 00:02:18,710
everything goes well, I have one. You are

42
00:02:18,710 --> 00:02:21,280
real that comes up, which is of the

43
00:02:21,280 --> 00:02:24,460
stakeholders, which is the private channel

44
00:02:24,460 --> 00:02:28,380
that I have in this team. This is it for

45
00:02:28,380 --> 00:02:31,050
this demo in which we have looked at how

46
00:02:31,050 --> 00:02:34,350
to use PowerShell in order to find all of

47
00:02:34,350 --> 00:02:36,700
the SharePoint sites associated with

48
00:02:36,700 --> 00:02:39,610
private channels in order tenant or for

49
00:02:39,610 --> 00:02:48,000
only a specific team. Now let's go back to the slides and finish off this module

