Synchronize SharePoint sites with Intune & PowerShell

I recently spent some time with my good friend and frequent collaborator Steven Hosking. We spoke about a solution I came up with to synchronize SharePoint sites to devices using PowerShell & Intune.

This is something I’ve had in my drafts for quite a while, but it kept ending up being too long to write about. As it turns out, Steve ( and Adam) runs a very valuable and informative youtube channel that is dedicated to everything that is “Intune”.

As the solution I wrote for this is directly linked with Intune, we figured it’d be perfect for the channel. We decided to film this little video to show how my solution works better than the official one provided by Microsoft.

To summarize everything in the video:

  • SharePoint sites can be synchronized natively through Intune Administrative Template Policies
  • The native policy has a URI character limit which is very easy to hit
  • Capturing the details required to sync SharePoint sites is very easy using Chrome / Edge Chromium
  • Using PowerShell can overcome current limitations with the native policy solutions.

Here is a link to the code mentioned in the video - if anyone wants further info, please let me know!

Enjoy!

— Ben