CsTeamsWorkLocationDetectionPolicy
This cmdlet is used to update an instance of TeamsWorkLocationDetectionPolicy. This policy can be used to tailor the Automatic Update of work location experience in Microsoft Teams. When the EnableWorkLocationDetection parameter is enabled, a user’s work location is updated based on their interaction with organization‑managed networks and devices, such as desks or peripherals configured by IT administrators. To learn how to configure desks to certain work location, please see Configure buildings and floors - Microsoft Places | Microsoft Learn.
Microsoft processes this information in accordance with the Microsoft Privacy Statement to provide a consistent location‑based experience and support hybrid work scenarios in Microsoft 365.
Updates any of the properties of an existing instance of TeamsWorkLocationDetectionPolicy.
Available cmdlets
Parameters
| Name | Type | Default value | Accepted values |
|---|---|---|---|
| EnableWorkLocationDetection | Boolean | ||
| UserSettingsDefault | String | Disabled |
Examples
Example 1
PS> Set-CsTeamsWorkLocationDetectionPolicy -Identity ExistingPolicyInstance -EnableWorkLocationDetection $true Updates the EnableWorkLocationDetection field of a given policy.
Example 2
PS> Set-CsTeamsWorkLocationDetectionPolicy -Identity ExistingPolicyInstance -UserSettingsDefault Enabled Updates the UserSettingsDefault field of a given policy to Enabled.