2 min read

Modernize your way of deploying Office Templates, through a cloud only approach.

Preface

In this modern day of Enterprise Mobility, using Intune and Autopilot. I often get asked, well what about Office templates files?

In the past you might have put them on a file share, or copied them to your users workstation, using a combination of scripts and Group Policy.

This is no longer optimal in a pure cloud strategy. Instead many organizations falsely assume that SharePoint Online, MUST have some built-in functionality to handle this. This unfortunately is not the case, and trying to put a URL to a SharePoint Library, into the Personal Templates setting, in programs like Word, will not work.

Personal Templates can ONLY be referenced through a UNC path or a local device path.

The modern way

To help my customers and others in the community, I have put together a script that much like my other OneDrive automation solution, uses the OneDrive client to securely and accurately transfer the templates to our Users profile.

OneDrive brings reliable Async off-line files to the modern desktop deployment

Combining this with some registry modifications, we can tell Office, that there is a local copy of the Templates available.

The Template files will be read-only, as long as the user only has “viewer” permission on the Sharepoint Library.

Well how about if my user is not online, and haven’t used the templates in a while?

In this case, I have employed a neat little trick, to tell OneDrive to always keep the Template folder and it’s contents available off-line. Using the good old ATTRIB command, to “pin” the files to the system, always keeping them hydrated.

The Script

This is the meat you want. And I have been diligent with in-line comments, so please read thoroughly!

You can grab a copy of the script on Technet, or in my GitHub repo, which is most likely to receive updates.

Final Words

As always, I encourage you to contribute to this script via GitHub.

Just because it’s awesome to help out! And together we can make the best solutions possible.

Comments / questions / spoons / forks are always welcome.

Please follow me on Twitter@michael_mardahl to learn more about me and the knowledge I share.

Michael Mardahl

Michael works as a Cloud Architect with APENTO in Denmark. Specializing in customer journeys from classic Infrastructure to Cloud consumption. He has been in the IT industry for more than 20 years, and has experience from a broad range of IT projects. When not at work, Michael enjoys the value of spending time with family and friends, and BLOG's passionately about Enterprise Mobility whenever he has time to spare.

Recent Posts

Passwordless journey with FIDO2 – Part 3 – Engine troubles

After a few months away from bloggin because family and holiday and one self is important to tend to, I…

4 years ago

Conditional Access and the woes of being an external user

Conditional Access and multi tenancy can be tough on anyone... (more…)

4 years ago

Passwordless journey with FIDO2 – Part 2 – Usage experiences

Continuing my ongoing series on passwordless with Azure AD and FIDO2... The story continues on SCConfigMgr.com... :) https://www.scconfigmgr.com/2019/11/18/passwordless-journey-with-fido2-part-2-usage-experiences/

4 years ago

Passwordless journey with FIDO2 – Part 1 – Getting started with security keys

Passwordless with FIDO2 is becoming a real option for enterprises that are adopting the cloud. In this guest blog post…

5 years ago

Unattended access to Exchange Online using a privileged account with MFA enforced

I published a PowerShell Gallery script, that will get you through this headache in a jiffy. (more…)

5 years ago

2 Cool new password policy features in Azure AD Connect

Enabling preview features in Azure AD to extend your on-prem password policy to Azure AD. (more…)

5 years ago

This website uses cookies to track views anonymously with analytics.