AutomoxAutomox

Worklet - Add Custom Office Templates for O365 - Mac

VicKhan
September 14, 2020 at 8:29 pm UTC

Hi Everyone,
The below code will install a custom office template for O365 on Mac’s. All that’s needed is to upload the custom template and change the sampletemplate.dotx references to your own. Confirmed working with Dotx and Potx files.

bash5 lines
#!/bin/sh
scp sampletemplate.dotx /private/tmp/

currentUser=$(/bin/ls -l /dev/console | /usr/bin/awk '{print $3}')
sudo -u "$currentUser" cp /private/tmp/sampletemplate.dotx /Users/$currentUser/library/"group containers"/ubf8t346g9.office/"user content.localized"/templates.localized/

This discussion is archived and closed to replies. Continue it in the Automox Community Slack.

Discuss on Slack