CmdID / PowerShell / Cmdlets / New
New-CsTeamsWorkLocationDetectionPolicy
This cmdlet is used to create a new instance of the TeamsWorkLocationDetectionPolicy. Microsoft Teams PowerShell reference
From the Microsoft Teams PowerShell reference 6 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-EnableWorkLocationDetectionThis parameter specifies whether Microsoft Teams determines a user’s work location based on interaction with organization‑managed networks and devices.-UserSettingsDefaultThis parameter specifies the default user consent behavior when Automatic Update of location is enabled.-ForceSuppresses the display of any non-fatal error message that might arise when running the command.-IdentityName of the new policy instance to be created.-WhatIf, -wiShows what would happen if the cmdlet runs.