Edit

Share via


Get-CsTeamsWorkLocationDetectionPolicy

This cmdlet is used to fetch policy instances of TeamsWorkLocationDetectionPolicy.

Syntax

Get-CsTeamsWorkLocationDetectionPolicy
   [[-Identity] <String>]
   [<CommonParameters>]
Get-CsTeamsWorkLocationDetectionPolicy
   [-Filter <String>]
   [<CommonParameters>]

Description

Fetches instances of TeamsWorkLocationDetectionPolicy. Each policy object contains a property called EnableWorkLocationDetection. This setting allows your organization to collect the work ___location of users when they connect, interact, or are detected near your organization's networks and devices. It also captures the geographic ___location information users share from personal and mobile devices. This gives users the ability to consent to the use of this ___location data to set their current work ___location.Microsoft collects this information to provide users with a consistent ___location-based experience and to improve the hybrid work experience in Microsoft 365 according to the Microsoft Privacy Statement.

Examples

Example 1

PS C:\> Get-CsTeamsWorkLocationDetectionPolicy

Identity            EnableWorkLocationDetection
--------                 ----------------------
Global                                     False
Tag:wld-policy1                            True
Tag:wld-policy2                           False

Fetches all the policy instances currently available.

Example 2

PS C:\> Get-CsTeamsWorkLocationDetectionPolicy -Identity wld-policy1

Identity            EnableWorkLocationDetection
--------                 ----------------------
Tag:wld-policy1                            True

Fetches an instance of a policy with a known identity.

Example 3

PS C:\> Get-CsTeamsWorkLocationDetectionPolicy -Filter *wld*

Identity            EnableWorkLocationDetection
--------                 ----------------------
Tag:wld-policy1                            True
Tag:wld-policy2                           False

The Filter parameter can be used to fetch policy instances based on partial matches on Identity.

Note: The "Tag:" prefix can be ignored when specifying the identity.

Parameters

-Filter

This parameter can be used to fetch policy instances based on partial matches on the Identity field.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Identity

This parameter can be used to fetch a specific instance of the policy.

Type:String
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

Outputs

TeamsWorkLocationDetectionPolicy.Cmdlets.TeamsWorkLocationDetectionPolicy