MS link to download the Office 365 business addition for Mac

Asifahmed
New Contributor III

Hello All,

 

Please help me to get the MS link to download the latest version of office package for macOS so that I can make a script and use in my policy to install on macOS. I don't to do it from https://macadmins.software only MS link is needed. I will do curl to it.

1 ACCEPTED SOLUTION

sudoErase
New Contributor III

I'd like to use scripts instead of pkg:
Script below:

#Download and install MS Office from website directly
mkdir /Users/Shared/MSOffice
cd /Users/Shared/MSOffice
Curl -L "https://go.microsoft.com/fwlink/?linkid=2009112" --output "MSOffice.pkg"
installer -pkg /Users/Shared/MSOffice/MSOffice.pkg -target /
rm -rf /Users/Shared/MSOffice

View solution in original post

5 REPLIES 5

AVmcclint
Honored Contributor

You may want to reconsider using curl in a script to download a 2GB+ package. There's too many points of failure. It's easier for you as the admin to download the package from the macadmins.software site and then put the package in Jamf. After it installs on the Macs, then the MS Updater should keep it updated regularly.

Asifahmed
New Contributor III

Make sense, but I just wanted to do some test for scripting.

 

BTW, after downloading it from macadamias.software why I am not able to convert into source by Jamf composer app? All time it is getting failed.

YanW
Contributor III

just upload the .pkg to Jamf. There are posts with scripts for downloading Office apps if you want to test it out. 

sudoErase
New Contributor III

I'd like to use scripts instead of pkg:
Script below:

#Download and install MS Office from website directly
mkdir /Users/Shared/MSOffice
cd /Users/Shared/MSOffice
Curl -L "https://go.microsoft.com/fwlink/?linkid=2009112" --output "MSOffice.pkg"
installer -pkg /Users/Shared/MSOffice/MSOffice.pkg -target /
rm -rf /Users/Shared/MSOffice

Asifahmed
New Contributor III

My exact problem is that how I will com to know that this is the URL t download the O365 package? When I am trying to download the O365 browsing by a  browser it is asking me to buy it. How it is avoiding to but the package ?