Initial Installation and configuration of Core Apps for AVD Golden Image

Ever had this message in the middle of a meeting ?

Yes, configuring your applications and network correctly is often challenging especially in a virtual environment.

Some Microsoft Office Apps, like OneDrive and Teams have different settings for AVD, and it is practical to have a simple script, which pulls the latest versions of the apps and installs them in the image with the correct virtual environment configurations.

So, here we go 🙂

The following is an extract of the following Microsoft articles:

Install Office on a master VHD image – Azure | Microsoft Learn

Teams for Virtualized Desktop Infrastructure – Microsoft Teams | Microsoft Learn

Also the installation of FsLogix Apps and an example configuration of Office 365 Apps for Enterprise for a Virtual Infrastructure.

You can change the office installation, depending on the client licenses, bit architecture and desired applications (Visio, etc.) , if required. To make the suitable configuration for your Office 365 products, go to this site: Microsoft 365 Apps admin center (office.com)

Now let’s start scripting 🙂

You can find the whole script here.

The applications, which are configured with it are:

  • Office 365 Apps
  • OneDrive (should be separately installed in a virtual environment)
  • Teams machine-wide installer (also should be separately installed in a virtual environment)
  • FsLogix Apps

The script is pretty self-explanatory, but here is what you need:

First you need to download the Office 365 Deployment Toolkit from here

Once you download it, you need to extract 2 files: setup.exe and an XML Configuration file.

You can call the configuration file however you want, but it is important to follow the structure of the O365 installation parameters inside the file. You can configure such file using the Office 365 Configuration Tool at config.office.com

Once you are ready with the files, copy them to the VM, where you’re doing the golden image.

Once this is done, you can just add the 4 script parameters:

“TenantID” – this is the ID of your Azure tenant

“tempsourcepath” – the name of the path which will be used to temporary store the files. I would advise you to create it in advance.

“O365ConfigFile” is the location, where you saved the O365 Configuration XML File, which we created in the previous steps

“O365SetupFile” is the location, where you saved the O365 Setup File, which we downloaded and extracted in the previous steps.

The last two files will be copied in the O365 Folder in your temp Directory after you start the script:

This is all the preparation you need to do. Once you are ready, just start the script, by adjusting the 4 parameters to your

Like this:

.\script.ps1 -tenantid “123456” -tempsourcepath “c:\installs” -O365ConfigFile “c:\config.xml” -O365SetupFile “c:\setup.exe”

Note: The script requires administrative privileges to run.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *