Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions teams/teams-ps/teams/Get-CsTeamsWorkLocationDetectionPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ PS C:\> Get-CsTeamsWorkLocationDetectionPolicy
Identity EnableWorkLocationDetection
-------- ----------------------
Global False
Tag:wld-enabled True
Tag:wld-disabled False
Tag:wld-policy1 True
Tag:wld-policy2 False
```
Fetches all the policy instances currently available.

### Example 2
```powershell
PS C:\> Get-CsTeamsWorkLocationDetectionPolicy -Identity wld-enabled
PS C:\> Get-CsTeamsWorkLocationDetectionPolicy -Identity wld-policy1
```
```output
Identity EnableWorkLocationDetection
-------- ----------------------
Tag:wld-enabled True
Tag:wld-policy1 True
```
Fetches an instance of a policy with a known identity.

Expand All @@ -63,8 +63,8 @@ PS C:\> Get-CsTeamsWorkLocationDetectionPolicy -Filter *wld*
```output
Identity EnableWorkLocationDetection
-------- ----------------------
Tag:wld-enabled True
Tag:wld-disabled False
Tag:wld-policy1 True
Tag:wld-policy2 False
```
The `Filter` parameter can be used to fetch policy instances based on partial matches on Identity.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,28 +47,28 @@ Passes in the `Identity` of the policy instance in the `PolicyName` parameter an

### Example 1
```powershell
PS C:\> Grant-CsTeamsWorkLocationDetectionPolicy -PolicyName sms-enabled -Identity [email protected]
PS C:\> Grant-CsTeamsWorkLocationDetectionPolicy -PolicyName sms-policy -Identity [email protected]
```

Assigns a given policy to a user.

### Example 2
```powershell
PS C:\> Grant-CsTeamsWorkLocationDetectionPolicy -Group f13d6c9d-ce76-422c-af78-b6018b4d9c80 -PolicyName wld-enabled
PS C:\> Grant-CsTeamsWorkLocationDetectionPolicy -Group f13d6c9d-ce76-422c-af78-b6018b4d9c80 -PolicyName wld-policy
```

Assigns a given policy to a group.

### Example 3
```powershell
PS C:\> Grant-CsTeamsWorkLocationDetectionPolicy -Global -PolicyName wld-enabled
PS C:\> Grant-CsTeamsWorkLocationDetectionPolicy -Global -PolicyName wld-policy
```

Assigns a given policy to the tenant.

### Example 3
```powershell
PS C:\> Grant-CsTeamsWorkLocationDetectionPolicy -Global -PolicyName wld-enabled
PS C:\> Grant-CsTeamsWorkLocationDetectionPolicy -Global -PolicyName wld-policy
```

Note: _Using $null in place of a policy name can be used to unassigned a policy instance._
Expand Down
10 changes: 5 additions & 5 deletions teams/teams-ps/teams/New-CsTeamsWorkLocationDetectionPolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,25 @@ This gives users the ability to consent to the use of this location data to set

### Example 1
```powershell
PS C:\> New-CsTeamsWorkLocationDetectionPolicy -Identity wld-enabled -EnableWorkLocationDetection $true
PS C:\> New-CsTeamsWorkLocationDetectionPolicy -Identity wld-policy -EnableWorkLocationDetection $true
```
```output
Identity EnableWorkLocationDetection
-------- ----------------------
Tag:wld-enabled True
Tag:wld-policy True
```
Creates a new policy instance with the identity wld-enabled. `EnableWorkLocationDetection` is set to the value specified in the command.

### Example 2
```powershell
PS C:\> New-CsTeamsWorkLocationDetectionPolicy -Identity wld-disable
PS C:\> New-CsTeamsWorkLocationDetectionPolicy -Identity wld-policy
```
```output
Identity EnableWorkLocationDetection
-------- ----------------------
Tag:wld-disable False
Tag:wld-policy False
```
Creates a new policy instance with the identity wld-disable. `EnableWorkLocationDetection` will default to false if it is not specified.
Creates a new policy instance with the identity wld-policy. `EnableWorkLocationDetection` will default to false if it is not specified.

## PARAMETERS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Deletes an instance of TeamsWorkLocationDetectionPolicy. The `Identity` paramete

### Example 1
```powershell
PS C:\>Remove-CsTeamsWorkLocationDetectionPolicy -Identity Foobar
PS C:\>Remove-CsTeamsWorkLocationDetectionPolicy -Identity wld-policy
```

Deletes a given policy instance with the Identity Foobar.
Deletes a given policy instance with the Identity wld-policy.

## PARAMETERS

Expand Down