1
00:00:02,340 --> 00:00:03,820
[Autogenerated] now that we have seen the

2
00:00:03,820 --> 00:00:06,970
teary, let's go to the lab environment and

3
00:00:06,970 --> 00:00:10,030
see how we can rename Sykes by using

4
00:00:10,030 --> 00:00:13,560
PowerShell. We are now in the lab

5
00:00:13,560 --> 00:00:16,540
environment. And first things first. I

6
00:00:16,540 --> 00:00:20,050
have my PowerShell. I see Open over here

7
00:00:20,050 --> 00:00:23,330
where I have already connected to

8
00:00:23,330 --> 00:00:26,030
SharePoint Online PowerShell and my

9
00:00:26,030 --> 00:00:29,230
tenant. For the second demo of this

10
00:00:29,230 --> 00:00:33,110
module, we will play with the Bravo team

11
00:00:33,110 --> 00:00:36,280
instead of the Alfa team. So I have

12
00:00:36,280 --> 00:00:39,600
created a new site here that is at the

13
00:00:39,600 --> 00:00:43,720
Sykes B team. You are well and Xcor. A

14
00:00:43,720 --> 00:00:47,700
name is B team, so let's head over to the

15
00:00:47,700 --> 00:00:50,440
PowerShell. The first thing that I want to

16
00:00:50,440 --> 00:00:54,600
show you is changing the title only so

17
00:00:54,600 --> 00:00:56,930
leaving that you are real intact but

18
00:00:56,930 --> 00:01:00,170
simply changing the title. If we want to

19
00:01:00,170 --> 00:01:03,280
only change the title, we use the set,

20
00:01:03,280 --> 00:01:07,050
Spock IT partial cmdlet provide the

21
00:01:07,050 --> 00:01:09,410
identity of the site. We want to do the

22
00:01:09,410 --> 00:01:12,870
change on so that sites u R l and then the

23
00:01:12,870 --> 00:01:15,950
property or properties that we want to

24
00:01:15,950 --> 00:01:19,430
change. But since we're only talking title

25
00:01:19,430 --> 00:01:21,940
right now, I'll give it a new title, which

26
00:01:21,940 --> 00:01:25,930
his Bravo team. So let's run this it will

27
00:01:25,930 --> 00:01:29,040
only take a few seconds to run. It should

28
00:01:29,040 --> 00:01:33,110
be fairly fast. And now if I go back in

29
00:01:33,110 --> 00:01:36,600
the browser and I refresh this, it already

30
00:01:36,600 --> 00:01:40,920
changed to Bravo team. Awesome! So that

31
00:01:40,920 --> 00:01:43,820
worked really well. Now let's go back

32
00:01:43,820 --> 00:01:46,800
inside the partial icy scroll down a

33
00:01:46,800 --> 00:01:49,300
little bit. And now let's talk about

34
00:01:49,300 --> 00:01:52,950
changing the URL in order to make it

35
00:01:52,950 --> 00:01:55,520
easier to read what I have done here

36
00:01:55,520 --> 00:01:58,130
again. Like in the slides, I'm creating

37
00:01:58,130 --> 00:02:01,610
two variables. First of all, our current

38
00:02:01,610 --> 00:02:04,810
You are well, which his slash site slash b

39
00:02:04,810 --> 00:02:07,810
team and then the new site. You are also

40
00:02:07,810 --> 00:02:10,950
my target, your role, which will be slash

41
00:02:10,950 --> 00:02:14,760
___ slash bravo team. We don't need to use

42
00:02:14,760 --> 00:02:19,420
a different cmdlet, which is start Spock.

43
00:02:19,420 --> 00:02:23,040
IT rename pass on the identity, which is

44
00:02:23,040 --> 00:02:26,810
the current URL and then the new site URL

45
00:02:26,810 --> 00:02:31,810
real. So let's run all of this. I do have

46
00:02:31,810 --> 00:02:34,430
a confirmation. Are you sure you want to

47
00:02:34,430 --> 00:02:37,760
perform this action? I will say yes, I am

48
00:02:37,760 --> 00:02:41,650
sure. And now this one might take a bit

49
00:02:41,650 --> 00:02:43,820
longer. The way that it works with

50
00:02:43,820 --> 00:02:47,060
PowerShell is that this is added in a kind

51
00:02:47,060 --> 00:02:51,210
of a synchronous Q. So if we look at the

52
00:02:51,210 --> 00:02:53,690
information it gives back to us, you can

53
00:02:53,690 --> 00:02:58,080
see that the state is not started and it

54
00:02:58,080 --> 00:03:00,590
might take a few minutes for it to be

55
00:03:00,590 --> 00:03:04,960
done. However, in 99% of the cases, this

56
00:03:04,960 --> 00:03:07,810
will be done right away and you can see

57
00:03:07,810 --> 00:03:11,250
Are you Are real is now the new one x at

58
00:03:11,250 --> 00:03:14,790
Bravo team. But just so you're aware,

59
00:03:14,790 --> 00:03:19,880
don't panic if it takes 345 minutes for

60
00:03:19,880 --> 00:03:23,270
that change to be done even in the user

61
00:03:23,270 --> 00:03:26,520
interface. Six. Asynchronous, you do get

62
00:03:26,520 --> 00:03:30,170
the updating and then updated. But because

63
00:03:30,170 --> 00:03:34,400
it's done so fast, you barely see it so

64
00:03:34,400 --> 00:03:38,240
great. So changing the site URL was also a

65
00:03:38,240 --> 00:03:41,260
success. Now the last thing that we want

66
00:03:41,260 --> 00:03:44,970
to look at in this demo is doing them both

67
00:03:44,970 --> 00:03:48,540
at the same time. So let me clean up this

68
00:03:48,540 --> 00:03:51,510
partial over here and let's take a look at

69
00:03:51,510 --> 00:03:54,930
our last example. This time again, I will

70
00:03:54,930 --> 00:03:57,540
change that you are real. So I updated

71
00:03:57,540 --> 00:03:59,620
that you are well. The current want to be

72
00:03:59,620 --> 00:04:04,340
Bravo team. I will change it to Team Bravo

73
00:04:04,340 --> 00:04:07,300
and then I also want to have a new title,

74
00:04:07,300 --> 00:04:10,780
which is Team Bravo since right now. X

75
00:04:10,780 --> 00:04:14,610
Bravo team. I want both u R L and titled

76
00:04:14,610 --> 00:04:18,240
to be Team Bravo. The really only thing

77
00:04:18,240 --> 00:04:20,910
that's different between the last example

78
00:04:20,910 --> 00:04:23,530
is that we will also use the new site

79
00:04:23,530 --> 00:04:27,540
title parameter and give it a new title.

80
00:04:27,540 --> 00:04:29,880
If we really want to take it again to the

81
00:04:29,880 --> 00:04:33,410
next level and not have that confirmation,

82
00:04:33,410 --> 00:04:36,930
I can add the confirm falsy parameter at

83
00:04:36,930 --> 00:04:39,860
the end. This way, it doesn't ask me to

84
00:04:39,860 --> 00:04:43,790
confirm the change. It just does it. So

85
00:04:43,790 --> 00:04:47,640
let me select all of this. Now run it all.

86
00:04:47,640 --> 00:04:51,040
It will again take just a few minutes for

87
00:04:51,040 --> 00:04:55,010
it to be fully done. Once the site renamed

88
00:04:55,010 --> 00:04:57,550
gets added to the Q, we will get that

89
00:04:57,550 --> 00:05:00,990
confirmation message again because it gets

90
00:05:00,990 --> 00:05:03,970
added to Accu. It gets marked as non

91
00:05:03,970 --> 00:05:08,490
started, but 99% of the time, as soon as

92
00:05:08,490 --> 00:05:11,130
you get that message in there, you will be

93
00:05:11,130 --> 00:05:14,770
able to refresh the page and see it right

94
00:05:14,770 --> 00:05:17,540
away. There we go. We just got the

95
00:05:17,540 --> 00:05:20,760
confirmation message and let me go to the

96
00:05:20,760 --> 00:05:24,520
browser. We're going from Bravo team to

97
00:05:24,520 --> 00:05:28,370
Team Bravo. So let's do a refresh. There

98
00:05:28,370 --> 00:05:32,660
we go. It redirected us. And now again, if

99
00:05:32,660 --> 00:05:36,240
we go to Bravo team, we will be

100
00:05:36,240 --> 00:05:39,540
automatically read, erected to deem Bravo.

101
00:05:39,540 --> 00:05:42,390
And even if we go to the first URL that we

102
00:05:42,390 --> 00:05:46,830
had the B team, we will get redirected all

103
00:05:46,830 --> 00:05:51,090
the way to Team Bravo. So if any users had

104
00:05:51,090 --> 00:05:54,660
any bookmarks to the previous year Wells

105
00:05:54,660 --> 00:05:57,840
they will get automatically read, erected.

106
00:05:57,840 --> 00:06:01,430
Thanks to that. Redirects IT. This is it

107
00:06:01,430 --> 00:06:04,270
for this demo. And we have talked about

108
00:06:04,270 --> 00:06:07,040
this red Direct Sykes quite a few times.

109
00:06:07,040 --> 00:06:09,730
So let's head back to the slides and

110
00:06:09,730 --> 00:06:12,130
learn. How do we remove those site

111
00:06:12,130 --> 00:06:20,000
redirects if we want to use those old you RL's for something else?

