Skip to main content

Microsoft 365 - C2R - Set Update Channel

Overview

This script will modify the registry to set the Update Channel for Microsoft 365 products to the value specified in the variable and update the UDF accordingly.

NOTE: By default, the script will update the UDF ID 18. In case this UDF is already in use, please update the default value of Variable UpdateM365ChannelUDF by editing the script.

You can also update the Variable UpdateM365ChannelUDF with any other UDF ID during manual run.

Dependencies

Implementation

  1. Download the component Microsoft 365 - C2R - Set Update Channel from the attachments.

  2. After downloading the attached file, click on the Import button

  3. Select the component just downloaded and add it to the Datto RMM interface.
    Image 1

Sample Run

To execute the component over a specific machine, follow these steps:

  1. Select the machine you want to run the component on from the Datto RMM.

  2. Click on the Quick Job button.
    Image 2

  3. Search the component Microsoft 365 - C2R - Set Update Channel and click on Select Image 3

    Image 4

    Image 5

  • Click dropdown and select the required channel settings and then click run Image 6

Datto Variables

Variable NameTypeDefaultDescription
ChannelUpdateSelection (Values: Current ChannelMonthly Enterprise ChannelSemi-Annual Enterprise ChannelBeta ChannelNone) Image 7NoneSelect the Update Channel from the drop-down menu to set the Microsoft 365 application's Update Channel.
UpdateM365ChannelUDFStringcustom18This will update the UDF with the Update Channel information.

Output

  • stdout
  • stderr

Attachments

Microsoft 365 - C2R - Set Update Channel

FAQ

Q1. How to set the UDF name?

A. To set the User Defined Field (UDF) name, please set it under the Setup > Global Settings > User-defined field 18 and set the value as Update M365 Channel so that it can reflect the same name under the devices UDFs.

Image 8

Image 9

Q2. What happen if we didn't set the user defined field name as Update M365 Channel under global settings?

A. The User-Defined Field X will still get updated with the Update channel value, where X is the UDF number, but the name of the UDFs will show as User-Defined Field X and not as Update M365 Channel.

Note: The script will not break with the Global UDF settings not updated.