/images/profilepic.jpeg

Associate multiple sites to a Hubsite using PowerShell

 

Hubsites have been announced at Microsoft Ignite in 2017, and provide a way to display content from multiple sites (once they’re connected) with same branding, and also a search functionality across all connected sites.

In today’s post, we’ll see how to use PowerShell PnP (Patterns & Practices) to associate teams and/or communication sites to a hubsite. You can have a total of 100 hubsites per tenant, and there’s no maximum in the number of sites that can be connected.

Assign licenses using the Group-Based licensing feature

 

Group-based licensing for security groups in Office 365. This is something that will reduce clicking, scripting, and admin burden overall. If this fits your organisation requirements and governance, then go for it! It’s a great feature.

Let’s see how we can start using it.
 

Minimum requirements:

  • Global Admin or User Management permissions
  • Office 365 trial/paid subscription (E3 in my case)
  • Enough licences in the tenant for users
     

In my scenario, I have 2 fake users as follows:

Create a Microsoft 365 Group from an existing SharePoint site

 

If you created a modern Team Site in SharePoint Online (SPO) and decided back then, not to connect it to an Office 365 group, it’s totally possible to create this group, and ‘link‘ it to an Office 365 group.

You’ve changed your mind, and you want to take advantage of what the Office 365 groups have to offer. Shared mailbox, Planner, and even Microsoft Teams! So let’s get started, and see how we can accomplish that.
 

Create SharePoint Site policies

 

Today’s blog post will be about creating site policies in SharePoint. Site policies are a great way to manage site collections without the admin overhead part!

This applies to SharePoint on-prem as well as SharePoint Online (in Office 365) – For this post, we’ll use SharePoint Online.
 

Create a site policy

First step is to create a site policy for a given Site Collection. In order to achieve that, log into your Site Collection with admin rights –> click on the “gear icon” on the top right corner –> choose Site settings.

How and why I created the Office 365 Data Retriever Tool

 

Today’s post is a bit different. I’m not going to share how to do this in SharePoint, or that in Office 365. Instead, I’m going to share how & why I created the O365 Data Retriever tool, which I made available on Github yesterday, Aug 22nd 2018.

Why did I create the tool?

A few months back, I was looking at doing something on my spare time, that would improve my skills in PowerShell, or maybe SharePoint. Then, one of my colleague mentioned that he had to build a tool for the support team, to make it easier for them to manage users in Active Directory. And I was like “but how are you going to do that? 🤨”. Then he showed me a few videos. And that was so interesting, that I came back home, and watched most of them straight away.

Share documents with OneDrive For Business

 

OneDrive for Business is your personal storage in Office 365 and also available in SharePoint on-premises.

When enabled, OneDrive for Business is actually a site collection within SharePoint, and a great way to share documents and collaborate between colleagues without sending large emails! Microsoft offers OneDrive for Business (online), but also (if your company allows it) a Sync Client if you wish to sync your documents locally.

In this blog post, we are going to use OneDrive for Business with Office 365, and share documents with the online version.
 

Get SharePoint site policies using PowerShell

 

Site Policies in SharePoint can be used to have a better governance as the platform is growing. Storage is expensive, so if you let your (unused) sites just “sitting there“, then it’s not a good use of money is it?

If you need more information about Site Policies, start with an Overview of site policies in SharePoint Server.

In this blog post, we are going to use PnP PowerShell to retrieve site policies that are applied in SharePoint Online site collections.
 

Create Site Collections in SharePoint Server using PowerShell and XML file

 

We have so many different ways to achieve something using PowerShell. In this blog post, we’ll have a look at how we can create Site Collections in SharePoint Server using an XML file and PowerShell (of course!)
 

Create the XML file

XML (eXtensible Markup Language) files have their syntax, so it’s important to be familiar with it. If you’re not, have a look at the Introduction to XML provided by w3chools.com, it may help you to get started 🙂