32 lines
2.4 KiB
PowerShell
32 lines
2.4 KiB
PowerShell
#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)
|
|
# Assessment checks writable paths and HTTP HEAD 200; it creates no deployment directory or downloads.
|
|
# Deployment clears prior run artifacts, downloads fresh media before uninstalling, and leaves only logs.
|
|
# Only registered Click-to-Run products require removal; service/registry remnants alone do not.
|
|
# Failed removal with products remaining can trigger one Microsoft Get Help scrub.
|
|
# Scrub downloads are on demand, may display a child window, and honor DeferReboot after verification.
|
|
# Background scrub waits up to 30 minutes plus verification within Syncro's overall limit.
|
|
# Leave its window open during removal; dismiss a completed 'Press any key to exit' prompt.
|
|
# The child window cannot be reliably locked; failed/interrupted monitored workers stop installation.
|
|
# Pending user tasks keep synchronization markers and fetch their helper live. Active installers block 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
|