fixed Install-MicrosoftOffice365.ps1

added Repair-OneDriveKnownFolderPaths.ps1
This commit is contained in:
2026-10-22 00:16:40 -04:00
parent aea80c7be4
commit 031cfe40a1
8 changed files with 1041 additions and 22 deletions
+4
View File
@@ -24,6 +24,10 @@ For download failures, use the standalone [Test-FileDownload.ps1](Test-FileDownl
See [Office365-Deployment.md](docs/Office365-Deployment.md) for the Syncro dropdowns and clean deployment workflow. Upload the shim in `rmm/Install-MicrosoftOffice365.ps1`; publish the core installer and `resources/office/Office-UserCleanup.ps1` together first. The shim uses the existing `Tools.ps1` unchanged; deployment, host relaunch, and result handling live in the main repository script. `ValidateBeforeChanges` defaults to `true` (checks and stages media only); explicitly select `false` to enable deployment. The workload runs in Windows PowerShell 5.1, requires an explicit subscription selection, removes Office and its companion apps, preserves Windows work-account sign-in, and installs the matching suite silently using Microsoft's current ODT. It then installs new Outlook and per-machine OneDrive using Microsoft's signed installers, plus current Teams only when the selected subscription includes Teams. Pending per-user cleanup is reported separately and protects the reinstalled apps. Action/error diagnostics use the existing Tools log; the result is printed to Syncro.
## OneDrive folder preparation
Use [Repair-OneDriveKnownFolderPaths.ps1](Repair-OneDriveKnownFolderPaths.ps1) to preview and optionally shorten overlong filenames in a user's Documents, Pictures, and Desktop before OneDrive folder backup. It accounts for the projected OneDrive path, preserves extensions, avoids collisions, and saves a CSV plan and rename journal. Preview is the default; paths that require folder restructuring are reported. See [the configuration and RMM guide](docs/OneDrive-PathPreparation.md) and [RMM caller](rmm/Repair-OneDriveKnownFolderPaths.ps1).
## Converting RMM boolean variables
After dot-sourcing `Tools.ps1`, use `ConvertTo-RmmBoolean` with any RMM variable: