Here is an installation script for Microsoft Office 365 x64:
Our own CDN for filesharing is used, here but basically you could download your own Office setup.exe from portal.office.com and also generate your own Configuration.xml from the link below to better fit your needs.
Office website: office.com
Configurator website: config.office.com
Office 365 requires user license! No GVLK/KMS option available!
Don't forget to have them located so your clients can access them trough https using the script below.
Updates:
Click to reveal
Click to hide
Update 2025-03-27:
Replaced the URL for the setup to grab the official setup from Microsoft.
Changed the timing from 600 seconds to 30 to speed up the process a bit. It was way to slow and done long before the files got deleted, which in turn locked up the RMM client to continue installing other applications.
Update 2025-03-21:
Added the TempPath part to shorten the script.
Here we go:
$tp = "C:\TempPath"
mkdir $tp
Invoke-WebRequest -Uri https://c2rsetup.officeapps.live.com/c2r/download.aspx?ProductreleaseID=O365ProPlusRetail&language=en-us&platform=def&version=O16GA&source=MktDownloadForWinPage -OutFile $tp\OfficeSetup.exe
Invoke-WebRequest -Uri https://cdn.mspot.se/files/M365/Configuration.xml -OutFile $tp\Configuration.xml
cmd /c "$tp\OfficeSetup.exe /configure $tp\Configuration.xml"
Start-Sleep -s 30
del $tp\OfficeSetup.exe
del $tp\Configuration.xml