Installing OneNote for MacOS using JumpCloud Commands

I had a request from a user on the JumpCloud Slack Lounge for a script to install Microsoft OneNote on MacOS. So here it is, follows the form of all of my other scripts. Any questions leave a comment below and I will try to answer the best I can.

# Script to download, Silent Install and then clean up once installed Microsoft onenote for Mac
# Writen by

#Make temp folder for downloads.
mkdir "/tmp/onenote/";
cd "/tmp/onenote/";

#Download Word, PowerPoint and Excel into temp folder.
curl -L -o /tmp/onenote/onenote.pkg "";

#Silent Install each application.
sudo -S installer -allowUntrusted -pkg "/tmp/onenote/onenote.pkg" -target /;

#Remove Temp Files
sudo rm -rf "/tmp/onenote/";

5 thoughts on “Installing OneNote for MacOS using JumpCloud Commands”

  1. Hi Richards,

    I have a Zip file, which contains .pkg file and XML.
    Can you please provide the script to unzip the file and then install the .pkg silently from the same folder where XML is ?

    Kind regards,

    • Hi Waseem, How big is the zip file? If its over 2mb it will need storing somewhere accesible? Send me an email to richard @ and I can help you out.

  2. Thanks for your reply, i already scripted it and it is working now. 🙂

    Your material is really helpful, Good work 🙂

    For storage, i used G-drive storage :). Appreciated.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.