[Autogenerated] now that we have seen the
teary, let's go to the lab environment and
see how we can rename Sykes by using
PowerShell. We are now in the lab
environment. And first things first. I
have my PowerShell. I see Open over here
where I have already connected to
SharePoint Online PowerShell and my
tenant. For the second demo of this
module, we will play with the Bravo team
instead of the Alfa team. So I have
created a new site here that is at the
Sykes B team. You are well and Xcor. A
name is B team, so let's head over to the
PowerShell. The first thing that I want to
show you is changing the title only so
leaving that you are real intact but
simply changing the title. If we want to
only change the title, we use the set,
Spock IT partial cmdlet provide the
identity of the site. We want to do the
change on so that sites u R l and then the
property or properties that we want to
change. But since we're only talking title
right now, I'll give it a new title, which
his Bravo team. So let's run this it will
only take a few seconds to run. It should
be fairly fast. And now if I go back in
the browser and I refresh this, it already
changed to Bravo team. Awesome! So that
worked really well. Now let's go back
inside the partial icy scroll down a
little bit. And now let's talk about
changing the URL in order to make it
easier to read what I have done here
again. Like in the slides, I'm creating
two variables. First of all, our current
You are well, which his slash site slash b
team and then the new site. You are also
my target, your role, which will be slash
___ slash bravo team. We don't need to use
a different cmdlet, which is start Spock.
IT rename pass on the identity, which is
the current URL and then the new site URL
real. So let's run all of this. I do have
a confirmation. Are you sure you want to
perform this action? I will say yes, I am
sure. And now this one might take a bit
longer. The way that it works with
PowerShell is that this is added in a kind
of a synchronous Q. So if we look at the
information it gives back to us, you can
see that the state is not started and it
might take a few minutes for it to be
done. However, in 99% of the cases, this
will be done right away and you can see
Are you Are real is now the new one x at
Bravo team. But just so you're aware,
don't panic if it takes 345 minutes for
that change to be done even in the user
interface. Six. Asynchronous, you do get
the updating and then updated. But because
it's done so fast, you barely see it so
great. So changing the site URL was also a
success. Now the last thing that we want
to look at in this demo is doing them both
at the same time. So let me clean up this
partial over here and let's take a look at
our last example. This time again, I will
change that you are real. So I updated
that you are well. The current want to be
Bravo team. I will change it to Team Bravo
and then I also want to have a new title,
which is Team Bravo since right now. X
Bravo team. I want both u R L and titled
to be Team Bravo. The really only thing
that's different between the last example
is that we will also use the new site
title parameter and give it a new title.
If we really want to take it again to the
next level and not have that confirmation,
I can add the confirm falsy parameter at
the end. This way, it doesn't ask me to
confirm the change. It just does it. So
let me select all of this. Now run it all.
It will again take just a few minutes for
it to be fully done. Once the site renamed
gets added to the Q, we will get that
confirmation message again because it gets
added to Accu. It gets marked as non
started, but 99% of the time, as soon as
you get that message in there, you will be
able to refresh the page and see it right
away. There we go. We just got the
confirmation message and let me go to the
browser. We're going from Bravo team to
Team Bravo. So let's do a refresh. There
we go. It redirected us. And now again, if
we go to Bravo team, we will be
automatically read, erected to deem Bravo.
And even if we go to the first URL that we
had the B team, we will get redirected all
the way to Team Bravo. So if any users had
any bookmarks to the previous year Wells
they will get automatically read, erected.
Thanks to that. Redirects IT. This is it
for this demo. And we have talked about
this red Direct Sykes quite a few times.
So let's head back to the slides and
learn. How do we remove those site
redirects if we want to use those old you RL's for something else?