Intune Configuration Profiles for AVD Optimization

This article is designed to give you an overview of how to optimize your Azure Virtual Desktop virtual machines managed by Microsoft Endpoint Manager / Intune and based on the Windows 10/11 multi-session operating system.

Table of contents

  1. How to configure profiles
  2. Windows 11/10 multi-session settings (Computer Settings only)
  3. How to import an Intune device configuration profile
  4. Where is the option “gpupdate /force”?
  5. Troubleshooting

How to configure profiles

  1. Open the Microsoft Endpoint Manager and sign-in with your Intune Administrator or different user who has enough permission to configure Windows policies.

  2. Navigate to Devices > Windows > Configuration profiles and click on Create profile.

  3. Select Windows 10 and later as the Platform and Settings catalog (preview) as the Profile type. Then click on Create.

2022-02-05-000.png

  1. Enter your profile name following your naming convention and Next.

  2. Click on Add settings to open the settings catalog.

2022-02-05-001.png

  1. Add the following filter in the settings picker to get only the supported settings for Windows 10/11 Enterprise multi-session.

2022-02-05-002.png

  1. Now you can search for a setting and enable this setting for your profile.

Note: The user settings are shown as (users).

  1. After pick your settings, you need to configure these settings and click on Next.

  2. Assign this profile to a device or user group for non-multi-session operating systems and Next.

  3. Configure a Scope tag if needed otherwise Next and then Review + create for creating this Configuration Profile.

Windows 11/10 multi-session settings

User & Device settings for Windows 11/10 multi-session are now in generally available. See more details here.

These computer settings are based on the Virtual-Desktop-Optimization-Tool:

Setting Value  
Force a specific default lock screen and logon image Enabled  
Path to lock screen image: (Device) C:\Windows\web\screen\img105.jpg  
Turn off fun facts, tips, tricks, and more on lock screen (Device) True  
Allow BITS Peercaching Disabled  
Do not allow the computer to act as a BITS Peercaching client Enabled  
Do not allow the computer to act as a BITS Peercaching server Enabled  
Specify passive polling Enabled  
Disable passive polling (Device) True  
Turn off “Found New Hardware” balloons during device installation Enabled  
Continue experiences on this device Disabled  
Turn off access to all Windows Update features Enabled  
Turn off Event Viewer “Events.asp” links Enabled  
Turn off Help and Support Center “Did you know?” content Enabled  
Turn off Help and Support Center Microsoft Knowledge Base search Enabled  
Turn off Registration if URL connection is referring to Microsoft.com Enabled  
Turn off Search Companion content file updates Enabled  
Turn off Windows Customer Experience Improvement Program Enabled  
Turn off Windows Update device driver searching Enabled  
Do not display the Getting Started welcome screen at logon Enabled  
Show clear logon background Enabled  
Turn off System Restore Enabled  
Configure Scheduled Maintenance Behavior Disabled  
Execution Level (Device) Regular  
Configure Security Policy for Scripted Diagnostics Disabled  
Troubleshooting: Allow users to access and run Troubleshooting Wizards Disabled  
Troubleshooting: Allow users to access online troubleshooting content on Microsoft servers from the Troubleshooting Control Panel (via the Windows Online Troubleshooting Service - WOTS) Disabled  
Turn off Inventory Collector Enabled  
Set the default behavior for AutoRun Enabled  
Default AutoRun Behavior Do not execute any autorun commands  
Do not allow window animations Enabled  
Do not show the ‘new application installed’ notification Enabled  
Prevent the computer from joining a homegroup Enabled  
Allow Microsoft services to provide enhanced suggestions as the user types in the Address bar Disabled  
Turn off sensors Enabled  
Turn off Windows Location Provider Enabled  
Do Not Show First Use Dialog Boxes Enabled  
Allow Configuration Update For Books Library Block  
Allow Prelaunch Block  
Allow Web Content On New Tab Page Block  
Always Enable Books Library Disabled  
DO Download Mode 9 - Simple download mode with no peering. Delivery Optimization downloads using HTTP only and does not attempt to contact the Delivery Optimization cloud services. Added in Windows 10 version 1607.
Allow Find My Device Block  
Configure Chat Icon Disabled  
Do Not Show Feedback Notifications Feedback notifications are disabled.  
Allow Edge Swipe Block  
Allow Offline Maps Download Over Metered Connection Disabled.Force disable auto-update over metered connection.  
Allow Game DVR Block  
Allow user feedback Disabled  
Automatically import another browser’s data and settings at first run Enabled  
Automatically import another browser’s data and settings at first run (Device) Disables automatic import and the import section of the first-run experience is skipped  
Block all ads on Bing search results Enabled  
Hide the First-run experience and splash screen Enabled  
Disable Advertising ID Disabled  
Allow Online Tips Block  
Allow Disk Health Model Updates Do not allow  
Allow Linguistic Data Collection Block  
Allow widgets Not allowed  
Manage Preview Builds Disable Preview builds  

The settings for chat icon and widgets are effective only on Windows 11.

How to import an Intune device configuration profile

You can automatically provide these settings in the Intune configuration profile via MS Graph or via Intune portal. However, you need a template file with all the optimized settings. Here you can download our exported JSON policy template file.

First open the Micorosft Intune Admin Center (https://in.cmd.ms) and then navigate to Devices and Configuration Profiles.

Next, click on Create and then select Import policy to import a policy from a JSON file.

This Intune Import Policy feature is currently in public preview.

2023-11-20-000.png

Select the policy template file (JSON), e.g. DeviceConfig-WIN-VDI-Optimization_2023-11-20.json, and enter a name for your new device configuration profile, then click Save.

2023-11-20-000.png

And now your VDI optimization device configuration profile is available and you can change the settings.

Where is the option “gpupdate /force”?

Short answer: It’s gone and it’s not coming back. Without Hybrid-Joined Machine, Active Directory features like Group Policy objects are not available. Azure Active Directory connected machines are managed only by Intune configuration profiles.

However, there is a way to manually synchronize the latest MDM settings from the client. Run the following commands in the evaluated Powershell:

Get-ScheduledTask | ? {$_.TaskName -eq "PushLaunch"} | Start-ScheduledTask                      
Get-ScheduledTask | ? {$_.TaskName -eq "Schedule to run OMADMClient by client"} | Start-ScheduledTask

As Administrator, you will find many Schedule Tasks for the MDM Synchronization under Microsoft > Windows > EnterpriseMgmt > GUID in the Task Scheduler. In addition, it is shown at which times the sync is executed automatically (Schedule #1 to #3).

2022-02-05-003.png

If you want to perform synchronization from the Endpoint Manager / Intune administration panel, you can select your Windows 10/11 device and use the “Sync” button.

2022-02-05-005.png

It takes some time for the check-in time to be updated in the device overview table.

Troubleshooting

How to collect logs directly from the client

Windows 10/11 includes a MDM diagnostic tool called mdmdiagnosticstool.exe that collects all information and log files from the client directly to a CAB, XML or ZIP file.

The commands can be performed via CMD or Powershell.

The output paths are examples and must be modified to best fit your environment.

This command creates a collection of all important log files, which in most cases help to solve the problems.

mdmdiagnosticstool.exe -out C:\Users\Public\Documents\

Here is an example for output:

2022-02-05-004.png

The file MDMDiagReport.html gives a good overview of the MDM status and which policies are applied and which are not. It is comparable to the good old gpresult tool.

For deeper analysis, you can use this command to create a CAB file that contains more event logs, tpm information, and more.

mdmdiagnosticstool.exe -area DeviceEnrollment;DeviceProvisioning;Autopilot -cab C:\Users\Public\Documents\MDMDiagReport.cab

How to see applied configuration profiles in Intune

  1. Open the Microsoft Endpoint Manager and sign-in with your Intune Administrator or different user who has enough permission to configure Windows policies.

  2. Navigate to Devices > Windows and select the device you want to check.

  3. Open the Device Configuration and select the settings catalog policy.

2022-02-05-006.png

  1. Then you will get an overview of all settings, whether they were applied, failed or not applied. You can click on each setting to get more information, for example about the error message.

The status “Not applicable” means that specific settings are not supported by the Windows version or edition running on the VM.