Skip to content

Install Microsoft 365

Downloads setup.exe automatically if it is not present in $PackageRoot and installs Microsoft 365 Apps using the Office Deployment Tool (ODT).

Required — Default: O365ProPlusRetail

The Office product to install. Common values: O365ProPlusRetail (Microsoft 365 Apps for enterprise), O365BusinessRetail (Microsoft 365 Apps for business), VisioProRetail, ProjectProRetail. Allowed values: O365ProPlusRetail, O365BusinessRetail, VisioProRetail, VisioStdRetail, ProjectProRetail, ProjectStdRetail, SPDRetail, AccessRetail, LanguagePack.

Required — Default: MatchOS

Select one or more language IDs to install. You can also type your own language IDs manually. Special values: MatchOS, MatchInstalled, MatchPreviousMSI. Allowed values: af-za, ar-sa, az-latn-az, bg-bg, bn-bd, bs-latn-ba, ca-es, cs-cz, cy-gb, da-dk, de-de, el-gr, en-gb, en-us, es-es, es-mx, et-ee, eu-es, fa-ir, fi-fi, fr-ca, fr-fr, ga-ie, gd-gb, gl-es, gu-in, he-il, hi-in, hr-hr, hu-hu, id-id, it-it, ja-jp, ka-ge, kk-kz, km-kh, kn-in, ko-kr, lt-lt, lv-lv, MatchInstalled, MatchOS, MatchPreviousMSI, mk-mk, ml-in, mr-in, ms-my, nb-no, nl-nl, pl-pl, pt-br, pt-pt, ro-ro, ru-ru, sk-sk, sl-si, sq-al, sr-latn-rs, sv-se, ta-in, te-in, th-th, tr-tr, uk-ua, ur-pk, vi-vn, zh-cn, zh-tw.

Optional — Default: Teams

Select one or more Office applications to exclude. You can also type values manually. Allowed values: Access, Excel, Groove, Lync, OneDrive, OneNote, Outlook, OutlookForWindows, PowerPoint, Publisher, Teams, Word.

Required — Default: MonthlyEnterprise

Defines which update channel to install. MonthlyEnterprise is recommended for most organisations. Allowed values: Current, MonthlyEnterprise, SemiAnnualPreview, SemiAnnual, CurrentPreview, BetaChannel, PerpetualVL2024, PerpetualVL2021, PerpetualVL2019.

Required — Default: 64

64-bit is recommended. Only choose 32-bit when required by legacy add-ins. Allowed values: 64, 32.

Required — Default: None

None: silent installation with no UI. Full: shows the normal Office installation experience. Allowed values: None, Full.

Required — Default: True

Enable to automatically accept the Microsoft Software License Terms. Disable if users should review and accept the terms during setup.

Required — Default: True

Enable to remove existing MSI-based Office 2007-2016 products before installation. Disable to keep MSI-based Office products on the device.

Optional — Default: False

Enable to force Office applications that block installation to close automatically. Disable to let users close applications manually.

Required — Default: True

Enable to let Office check and apply updates automatically. Disable to turn off automatic update checks.

Optional

Pin to a specific build, e.g. 16.0.15330.20306. Leave blank to install the latest version available on the channel. Use MatchInstalled to match the already installed version.

Optional

Path to a local or network share containing the Office installation files. Leave blank to download directly from the Microsoft CDN. Remember to include the [Download Content] PowerBrick when using $PackageRoot.

Optional — Default: en-us

Fallback language used when MatchOS is specified and the OS language is not supported by Office. Example: en-us

Optional — Default: False

Enable to allow downloading missing language files from the Microsoft CDN when they are not available in Source Path. Disable to use only Source Path content.

Optional — Default: False

Enable to change an existing Office installation to the selected architecture, for example from 32-bit to 64-bit. Disable to keep the current architecture.

Optional — Default: False

Enable when updates are managed by Configuration Manager or another tool that requires the Office COM object. Disable when this integration is not needed.

Optional

Path to a local share or HTTP location where Office should look for updates. Leave blank to use the Microsoft CDN.

Optional

Switches an existing installation to this update channel after installation. Leave blank to keep the channel specified in Update Channel.

Optional — Default: False

Enable for shared computer scenarios such as Remote Desktop Services or Citrix. Disable for dedicated single-user devices.

Optional

Associates the device with your organisation in the Microsoft 365 Apps admin center Inventory. Find the key at https://config.office.com/. Leave blank if not used.

Required

Specify how each return code from the process is handled. Success continues the job, Failure stops the job as failed with that return code, and Retry Execution Later stops the job and runs it again later. Any return code not in the list stops the job as failed. Allowed values: Success, Failure, Retry Execution Later.

  • Category: Installer
  • Brick ID: Install-Microsoft-365