Now that have seen the theory on how to
update site properties, let's go to the
lab and see it in real life. We are now in
the lab environment, so let me first go to
the UI, and let's go to the Active sites,
and let's pick our Charity at
Globomantics. If we want to modify some of
the properties, first of all, we must go
into the information here about the site,
and here I can really edit the properties,
such as the URL, hub site association, the
storage limit, primary admin, add other
admins, change the external sharing, and
even change the title here at the top.
However, not all of the options are
available via the admin center. Some of
them are only via PowerShell, but how do
we know what they are? So let me go into
PowerShell here, and a trick I have,
because I don't remember all of the
different properties myself, what I
usually do is I get a site. So, for
example, here I'm going to get SPOSite,
CharityatGlobomantics, and then I will
select all of the properties from that
site. So what this will give me? It will
really give me all of the different
properties that we can change for that
site collection. So, for example, if I
want to disable flows, I could simply do
it, and you don't have to remember them by
heart. You really just need to know how to
get to them. Some things, like the
template, cannot be changed after the site
is created; however, most of the things
that we have in the properties can be
modified. A good example of something that
you might want to modify at this site
collection level is the
SocialBarOnSitePagesDisabled and the
CommentsOnSitePagesDisabled. So maybe it's
a sensitive site and you don't want people
commenting on news or on pages, and you
don't want people liking them either, you
might want to disable those settings. So
you'd run a Set-SPOSite, give the identity
of the site that you want to modify. Here
I'm going to change the title to, let's
say, EMEA Charity Initiatives and
SocialBarOnSitePageDisabled true. So let's
run it. It'll take anywhere between 10
seconds and 1 or 2 minutes, really
depending on what properties you're
changing. But now let's go to the URL
here, and as you can see, the title got
updated to EMEA Charity Initiatives. It's
really that easy to update site
properties. Most of the time I do it via
PowerShell and not via the admin center
simply because all of the controls are
there. And once you get used to
PowerShell, it's a lot easier to do it
that way anyway. This is it for updating
site properties. Now let's go back to the
lab and look at how we can delete sites,
as well as restore them from the recycle bin.