☁️
OSDCloud.com
OSDeploy.comTwitter
  • About
  • Contributors
    • Damien Van Robaeys | MVP
    • Ákos Bakos
    • David Segura | MVP
    • Gary Blok
    • Jérôme Bezet-Torres | MVP
  • OSDCloud
    • Local Setup
      • OSDCloud Template
        • Build Process
        • Logs
        • Named Templates
        • WinRE WiFi
        • Public Content
        • Languages
        • Cumulative Updates
        • ISO Boot Media
        • Universal WinPE
      • OSDCloud Workspace
        • Get-OSDCloudWorkspace
        • Set-OSDCloudWorkspace
        • New-OSDCloudWorkspace
          • Restore from ISO
          • Restore from ISO URL
          • Restore from USB
        • Update-OSDCloudWorkspace
        • Configuration Files
      • OSDCloud WinPE
        • Default Wallpaper
        • Wallpaper
        • Drivers
        • PSModule
        • Startup
      • OSDCloud ISO
      • OSDCloud USB
        • New-OSDCloudUSB
        • Update-OSDCloudUSB
        • USB Drives
        • Secure USB Drives
      • 🚧OSDCloud VM
        • Get-OSDCloudVMDefaults
        • Get-OSDCloudVMSettings
        • Set-OSDCloudVMSettings
        • Reset-OSDCloudVMSettings
        • New-OSDCloudVM
    • Deployment
      • WinPE
        • Start-OSDCloud
          • OS Parameters
          • ZTI
        • Start-OSDCloudGUI
          • Parameters
          • Defaults
          • Global Variable
          • Customize
        • Start-OSDCloud Wrapping
      • First Boot
      • OOBE
      • Windows
  • Sandbox
    • OSDCloud
      • sandbox.osdcloud.com
      • WinPE Usage
      • OOBE Usage
      • Functions
    • OSDCloud Azure
      • az.osdcloud.com
    • WinPE Downloads
  • OSDCloud Automate
    • 🆕Basic Configuration
    • 🆕OSDCloudGUI Defaults
    • 🆕Autopilot
    • 🆕Provisioning
      • 🆕Windows Configuration Designer
      • 🆕MSI Application PPKG
      • 🆕Bulk Enroll PPKG
      • 🆕PowerShell Script PPKG
    • 🚧Scripts
  • OSDCloud Azure
    • Azure Setup
      • Azure Portal
        • Storage Accounts
        • Storage Containers
          • BootImage
          • DriverPack
        • Storage Access Control (IAM)
      • Infrastructure As Code
        • Prerequisites
        • Technicien
        • Workspace
        • Bicep
        • Terraform
        • Configure Azure
    • Deployment
      • Testing
      • OSDCloudRE Azure
    • Deep Dive
      • Cloud Functions and Scripts
      • Connect Azure in WinPE
      • Azure Tags
      • Log Files
  • Offline Deployment
    • ISO: Adding a WIM
  • Integration
    • ADK: Use the OSDCloud Boot.wim
    • MDT: Use the OSDCloud Boot.wim
    • MDT: Add OSDCloud WinPE Drivers
    • MDT: Use OSDCloud DriverPacks in a Task Sequence
    • OSDCloud IPU
      • Windows In-place Upgrades
      • Windows Media Download
  • Archive
    • 💡Tips
      • 🆕Media Cleanup
      • Firmware Update
      • Quick Setup
    • 🌎Community
      • OSDCloud: The ZTI Way
      • OSDCloud - Image devices without need of infrastructure
      • Trying out Windows 10 Deployment with OSDCloud
      • Deploying Windows 10 to bare metal devices with just WinPE & internet
    • 💔Under Review
      • ISO
      • WIM
    • 🪦Recycle Bin
      • Release Notes
      • Enable-OSDCloudODT
      • Deploy
        • OOBE Phase
      • Guides
        • OSDCloud WIM
        • Custom OSDCloud
        • AutoPilot
          • AutoPilot Configuration File
          • AutoPilot in Audit Mode
          • AutoPilot in OOBE
        • WiFi
      • OOBE
        • Start-OOBE.settings
        • Start-OOBE.wifi
        • Start-OOBE.autopilot
      • Concepts
        • K.I.S.S.
        • OSD Disks Logically
        • Office365 Specialize
        • Specialize DriverPacks
        • Model Reference Image
        • MDT OSDCloud DriverPacks
        • MDT DriverPacks
      • Blob SAS URL
      • Storage Containers (Public)
Powered by GitBook
On this page
  • Configuration File
  • Download
  • WinPE Phase
  • OSDCloud Install
  • Copy Content
  • Edit
  • Snapshot and Reboot
  • Specialize
  • OOBE
  • Further Steps

Was this helpful?

Export as PDF
  1. Archive
  2. Recycle Bin
  3. Concepts

Office365 Specialize

April 6, 2021

The concept is simple. Can Office 365 / 2019 be installed prior to OOBE/AutoPilot?

Jeff was kind enough to send me his Office Configuration file for this test, so kudos for stepping up.

Keep in mind this is ROUGH and not automated at all. I'm just testing the concept to make sure it works. If so, then I'll look at automation

Configuration File

Here's a sanitized copy of Jeff's Office Configuration file

<Configuration ID="INSERT GUID HERE">
  <Add OfficeClientEdition="64" Channel="SemiAnnual" MigrateArch="TRUE">
    <Product ID="O365ProPlusRetail">
      <Language ID="en-us" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="Bing" />
    </Product>
    <Product ID="VisioPro2019Volume" PIDKEY="INSERT PID HERE">
      <Language ID="en-us" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="Bing" />
    </Product>
    <Product ID="ProjectPro2019Volume" PIDKEY="INSERT PID HERE">
      <Language ID="en-us" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Lync" />
      <ExcludeApp ID="OneDrive" />
      <ExcludeApp ID="Bing" />
    </Product>
  </Add>
  <Property Name="SharedComputerLicensing" Value="0" />
  <Property Name="SCLCacheOverride" Value="0" />
  <Property Name="AUTOACTIVATE" Value="0" />
  <Property Name="FORCEAPPSHUTDOWN" Value="FALSE" />
  <Property Name="DeviceBasedLicensing" Value="0" />
  <Updates Enabled="TRUE" />
  <RemoveMSI />
  <AppSettings>
    <Setup Name="Company" Value="INSERT COMPANY HERE" />
  </AppSettings>
  <Display Level="Full" AcceptEULA="TRUE" />
</Configuration>

Download

For this first test, I'll download the content before the install to speed things along. In his case, he is installing from MDT, so this will probably be the method he uses. This is the command I will use to download the content

setup.exe /download Office2019Conf.xml

WinPE Phase

OSDCloud Install

I'll start out by running through an OSDCloud, it doesn't matter what OS or anything. I just need to remember not to reboot yet! In the screenshot below, this is my entry point for installing Office (which shouldn't have run for a VM, but I'm glad it's here)

Copy Content

There's no universally agreed upon path for saving the Office content, so I'll just dump it at C:\MSOffice. Here's what that looks like in that directory with setup.exe, Office Configuration XML, and the Office Data

Edit

I'll need to edit the Expand-StagedDriverPack.xml for this test ... in this example I've removed the Driver bit (since I'm on a VM, that doesn't matter)

C:\Windows\Panther\Expand-StagedDriverPack.xml

Here is how the XML looks. The first order of business is to disable the Office Telemetry since this will prevent the Office installation from finishing. This can be added back in the Unattend xml, or in the OS, or I can leave it disabled. PowerShell_ISE is not necessary, but it gives me a WAIT so I can check some things out before rebooting to OOBE

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
        <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Description>Disable Telemetry</Description>
                    <Path>reg add HKCU\Software\Policies\Microsoft\Office\Common\ClientTelemetry /v DisableTelemetry /t REG_DWORD /d 1 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Description>Install Office365</Description>
                    <Path>C:\MSOffice\setup.exe /configure C:\MSOffice\Office2019Conf.xml</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Description>PowerShell ISE</Description>
                    <Path>PowerShell_ISE.exe</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
</unattend>

Snapshot and Reboot

Time to take a snapshot and reboot to Specialize and see if this works

Specialize

I'd take screenshots of how it worked, but I think the video works best so you can see the process taking only a few minutes

OOBE

Another video. Nothing much to see here, I just did a Domain setup (this was not an AutoPilot test)

Further Steps

  • AutoPilot - this should work fine, but it will have to be tested

  • Download Content - this test was done with the Office data in place, so a test downloading the content will need to be performed. I had done this previously with another configuration, so I'm sure this will work

  • Network Drivers - obviously this will run after the Driver injection, but I will need to perform some tests if the Network Adapter isn't installed

PreviousOSD Disks LogicallyNextSpecialize DriverPacks

Last updated 4 years ago

Was this helpful?

🪦