Commands › Microsoft Teams

Set-CsTeamsShiftsAppPolicy

Microsoft Teams MicrosoftTeams Set-*

Allows you to set or update properties of a Teams Shifts App Policy instance.

Quick start script

# Set-CsTeamsShiftsAppPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsTeamsShiftsAppPolicy
$before | Format-List

# 3. Make the change (dry run first)
Set-CsTeamsShiftsAppPolicy  -WhatIf
Set-CsTeamsShiftsAppPolicy

# 4. Verify and diff
$after = Get-CsTeamsShiftsAppPolicy
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Set-CsTeamsShiftsAppPolicy [-AllowTimeClockLocationDetection <Boolean>] [[-Identity] <String>]
 [-MsftInternalProcessingMode <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-AllowTimeClockLocationDetection Boolean Turns on the location detection. The time report will indicate whether workers are "on location" when they clocked in and out. Workers are considered as "on location" if they clock in or out within a 200-meter radius...
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Identity String Policy instance name.
-MsftInternalProcessingMode String For internal use only.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.