[Autogenerated] Now that we have seen the
Tillery, let's go to the lab environment
and see how we can lock and unlock
SharePoint sites. We are now in the demo
environment. And let me open up the
PowerShell. I see where I have already
locked in to SharePoint online by using
the SharePoint online management shell. In
this demo, we're going to play with a few
sites that we have created and modified in
previous demos Tim Bravo and Alfa Team.
Let's start first of all, by changing a
site to read only. So in order to lock a
site to read only we will use the set.
Spock, IT partial cmdlet specified
identity of the site. We want to do the
change on in this case Alphatec, Eem. And
then we will use the lock state parameter,
which we will set to read only. So let me
run this. It should only take a few
seconds. And there we do. NICs already
done. Now, if I go to the browser and I
refresh the Alfa team site, I should have
a warning that says this share prints. IT
is read only right now. So if I go to
documents for example. You see, I do not
have the plus, but I cannot add any
documents. I cannot modify the page or
anything. This site is now unread only. So
this is the read only mode. Now, if we go
back to the PowerShell, let me scroll down
a bit. Let's take a look at the no access
mode. So in this case I will run again.
The set, Spock, IT provide identity, which
is Team Bravo and then the lock state,
which is no access. If I leave it like
that right now, what will happen is that
users will get and not founder of four or
three forbidden error. But in order to
make this more user friendly, I have
actually created a page on the Internet
that says the site you attempted to visit
has been locked and then a bit of
information on what users should do if
they need to get access to the site. And I
can use the set Spoto tenant and provide
that you are well in the no access
redirect. You are well, so if any user
goes on a site that is in the no access
log state, they will be automatically
read, directed to that specific page part
of the internet so looks run that it's
already done. However, it might take a few
seconds until we see the experience in the
actual browser. So let's try to do a
refresh here. Great. It actually worked
right away. You can see that I was not
able to refresh the Dream Bravo site, but
it has actually read directed me to the
page that we specified in the tenant
properties. So now any user that goes
there, either by a bookmark a link from an
old email they will get some information
that the site is still there. But it's
locked and a way for them to contact
somebody in order to get it unlocked. Now,
the last thing I want to show you is how
do we unlock Sykes? Procedure is very
similar. Set, Spock IT give it identity
and the lock state should be unlock. So if
I run this now under Alfa team site, if I
go back here, click on refresh. My warning
should be gone. And now I am able to
actually create things, and again it might
take a few minutes before the user
interface experience is completely
refreshed or a few refreshes if you do it
right away. But as you can see now, I have
my new button and I'm ready to collaborate
in this site again. This is it for this
demo in which we have seen how to set a
site to read only to no access. How to
redirect all of the request to a locked
site in no access mode to a nice page in
the internet that tells people what to do.
And finally, how to unlock sites. This is
it for this demo, and now let's go back in the slides and finish off this module.