Enable-OSDCloudODT

August 10, 2021

This functionality will be removed in the next few weeks. Let me know if you are using this so I can detail a workaround

I would consider this Experimental and I am unsure of the future of this function. It will more than likely change, so consider this a Sandbox for now

This is a new function to add Office M365 and install it in the Specialize phase of Windows Setup. I had high hopes for this process, but in my testing, there was less than 1 minute difference in installing Office in Specialize versus pulling from an Intune (Office CDN). I'm sure one of you will look into this further, so this is for now an OSDCloud Opt-In

Do It

This process should be done before Edit-OSDCloud.winpe, although it really doesn't matter, but remember after adding this, you need to update your WinPE to see the magic

Enable-OSDCloudODT -Verbose

There is really nothing to it. As you can see in the Verbose output, it will download the latest Microsoft ODT and expand it into subdirectories

The Directory Structure

This is probably the most important process to understand, and the step that will probably be messed up the most on your end if you really don't understand. For you visual people, hopefully this will help you understand, but the key is that the ODT directory sits in the ROOT of your OSDCloud Workspace

Product

In the ODT directory are two subdirectories that represent the M365 / Office Product. You can see all the Products that can be used, but its important that your directory represent the Product for better organization. If you have no plans to work with ProPlus2019Volume, delete it

Channel

The next subdirectory represents the M365 / Office Channel

Delete the Channel directories that you don't need!

It really doesn't matter what you name them, as long as the Channels are separated. In each Channel directory there should be a copy of setup.exe which was expanded when you ran Enable-OSDCloudODT. You can always repeat that function to add the latest ODT setup.exe as needed, understanding that the XML files will be overwritten

XML Files

In each of the Channel directories, in addition to the setup.exe, is an Office Configuration File. Don't edit these as they can be overwritten. Create your own using this as an example. The biggest thing is for the Language ID to be set to "MatchOS", but whatever

<Configuration ID="002634c3-bedd-416a-82ea-764d564ec07a">
  <Add OfficeClientEdition="64" Channel="MonthlyEnterprise">
    <Product ID="O365ProPlusRetail">
      <Language ID="MatchOS" />
      <ExcludeApp ID="Groove" />
    </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 />
  <Display Level="Full" AcceptEULA="TRUE" />
</Configuration>

USB Considerations

This isn't entirely working as planned due to the inclusion of the XML files in WinPE. This should be considered as Concept Under Development for the time being

If you are deploying OSDCloud from a USB, you can download the content in advance. Assuming you have copied the ODT directory to <USBDrive>:\OSDCloud\ODT then do the following

Type cmd in the Windows Explorer Address Bar and press Enter

Now use setup.exe to /download the content specified by the Office Configuration XML. This will download your Office payload from the CDN

Edit-OSDCloud.usb

When you run this command, the necessary files will be added to WinPE

Walkthrough

How it works has been added to the Walkthrough

pageDeploy

Last updated