#Requires -Version 5.1 # Upload this shim to Syncro. Windows PowerShell 5.1; Run As: System. # Installs Office, new Outlook, OneDrive, and Teams when included in the subscription. # See docs/Office365-Deployment.md. # Configure these [string] Dropdown variables in Syncro: # [string]$ValidateBeforeChanges - true (default: validate only), false (remove/reinstall) # Validation checks prerequisites and small release metadata; it downloads no installation media. # Install mode downloads before uninstalling and cleans media on success/failure/restart exits. # Logs and pending per-user cleanup helpers are retained; active installers defer media cleanup. # [string]$OfficeSubscription - Required; use the exact subscription names in the guide. # [string]$OfficeArchitecture - Auto (default), 64, 32 # [string]$UpdateChannel - Current (default), MonthlyEnterprise, SemiAnnual # [string]$OfficeActivation - User (default), SharedComputer # [string]$OfficeAppShutdown - Abort (default), Force (unsaved work can be lost) # [string]$DeferReboot - true (default: continue after verified removal), false (stop on reboot request) # The main script converts the injected string with ConvertTo-RmmBoolean. # Neither choice automatically restarts Windows. Set Syncro's execution limit to 120 minutes. # Every variable configured in Syncro needs a nonempty value. Do not overwrite injected values. # Syncro also supplies [string]$COMPANY with the endpoint's company name. # It is passed through to Office setup; no company dropdown is needed. $ErrorActionPreference = 'Stop' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 . $([Scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://dev.emberkom.com/emberkom/management-scripts/raw/branch/master/Tools.ps1'))) Run-Script -LivePSScript Install-MicrosoftOffice365