Table of contents
- Introduction
- Windows location service
- How to enable Location service on Windows 11 for AVD
- How to enable Location redirection for AVD
- Look and feel
- Limitations
- Conclusion
Introduction
Traveling across europe with my Van while working on a VDI deployed in Western Europe can be a challenge, especially when route planning. 😅 (This VDI thinks all the time I am in Amsterdam…)
And so, you might have the same or at least a similar challenge that a lot of your deployments are in the North/West Europe Region, but your end users are located in a different country.
This brings the big question, can we improve the over all user experience by redirecting the edge device location.
Yes…and No. First we need to understand, Windows is determining the location and region settings based on multiple factors and some services services (like your search engine of choice) are using the IP-based Geo-location to display results. The only way to improve this, is via a proxy or breakout in the country itself.
Nevertheless, in our latest test we notices new settings in the Windows Client and RDP Properties and managed to redirect the location to the session host. This allows us to get weather reporting, more relevant local news, and overall greater functionality for apps and Windows like the map.
⚠️ There is no official documentation around this configuration ⚠️
Lab setup and requirements
We performed all test with
- Windows 11 21H2 Edge Device
- Windows MSRDC Client Version
- Windows 11 21H2 Session Host, Intune enrolled, since we are using the settings picker to configure the session host
Redirecting geo-location information from the client device to remote desktops or published applications requires enabling the geo-location redirection feature on the session host machine, configuring group policy settings on your Active Directory server, and specifying which websites use this feature.
Location services must be enabled on both client devices and the session host.
Windows location service
All is about the famous Windows location service, which has been available since Windows 10. This service allows users to use their local location in websites and applications, e.g. for navigation requests or weather information.
💡 Microsoft location service will use a combination of global positioning service (GPS), nearby wireless access points, cell towers, and your IP address (or default location) to determine your device’s location.
You can find a detailed description and documentation about the Windows location service and privacy.
How to enable Location service on Windows 11 for AVD
There are several ways to enable the location service on Windows 11 devices, including Windows 11 multi-session. In this post we will show the options (1) local settings, the (2) Intune configuration as well as the (3) registry key configuration.
Let’s start with the local setting, which are not enterprise-grade because it is done manually.
Via local settings
From the start menu search for Location and open the Privacy & security > Location settings then you need to switch the Location services to On. Additionally, you can specify the location settings for individual application or service.
Please verify that the option “Let desktop apps access your location” is enabled that is needed for native AVD client.
Via Intune Configuration Policy
Option (2) would be the ability to enable location services via the Intune configuration policy. We still focus on the settings catalog and not on the templates (ADMX, Custom & Co).
The Settings Catalog is the only way to define configuration policies for Windows 10+ multisession (currently only System Settings). VDI is also supported with the settings catalog. It will be the next standard for configuration policies in the future.
Please follow the description to create a new settings catalog for Windows 10+ VDI or multisession: How to configure profiles
You can create a new configuration policy or add the setting to an existing policy.
Search for Allow Location in the settings picker and select Allow Location in the results list.
Next, select Force Location On. All location privacy settings are toggled… for the Allow Location setting on the Configuration Settings tab.
If you have created a new policy, you must assign that policy to a user or device group.
That is all to enable location services via Intune configuration policy.
Via Registry Key
The (3) option is to add the following registry to the session host and to your local machine to enable location services:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionCapabilityAccessManagerConsentStorelocation]
"Value"="Allow"
How to enable Location redirection for AVD
As a next step you have to configure the RDP Properties for your Hostpool and enable the redirection for the client location.
In the Azure Portal, navigate to Azure Virtual Desktop, select your Hostpool, RDP Properties and add redirectlocation:i:1 to your existing RDP properties in the Advanced tab:
redirectlocation:i:1
You can also enable this in the Device redirection tab and select Enable location sharing from the local device and redirect to apps in the remote session and click on Save.
⚠️ This is a host pool configuration and cannot be set individually per session host.
Done! This is how to enable location redirection on AVD session host.
Look and feel
Let’s see how it looks and feels. As soon as you logon to your AVD session host and open the browser or maps application you will see you local weather forecast and news.
Our AVD session host is hosted in Azure Brazil South region, so everything will be displayed from Brazil. With location redirection enabled, you can use their localization.
Here are two examples of how location redirection looks and works:
- Location redirection for Edge for navigation
- Location redirection for the native Windows weather app
Limitations
This feature does not change the Bing or Google search results or news to your location, which only works with web proxy in the correct location.
These websites are based on the public IP address of the client to show you the search results or news and not on the combination of Global Positioning Service (GPS).
Conclusion
Even if it just a limited scope, it is an improvement for the overall user experience and since a couple of days the Azure Portal is showing new features in the RDP Properties section.
Feel free to test the location redirection in your AVD environment.
So stay tuned for more updates.
Leave a Reply