Commands › Microsoft Teams

Set-CsTeamsEducationAssignmentsAppPolicy

Microsoft Teams MicrosoftTeams Set-*

This policy is controlled by Global and Teams Service Administrators, and is used to turn on/off certain features only related to the Assignments Service, which runs for tenants with EDU licenses.

Quick start script

# Set-CsTeamsEducationAssignmentsAppPolicy — 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-CsTeamsEducationAssignmentsAppPolicy
$before | Format-List

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

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

Syntax — 2 parameter sets

Identity (Default)

Set-CsTeamsEducationAssignmentsAppPolicy [-Tenant <System.Guid>] [-ParentDigestEnabledType <String>]
 [-MakeCodeEnabledType <String>] [-TurnItInEnabledType <String>] [-TurnItInApiUrl <String>]
 [-TurnItInApiKey <String>] [[-Identity] <XdsIdentity>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Instance

Set-CsTeamsEducationAssignmentsAppPolicy [-Tenant <System.Guid>] [-ParentDigestEnabledType <String>]
 [-MakeCodeEnabledType <String>] [-TurnItInEnabledType <String>] [-TurnItInApiUrl <String>]
 [-TurnItInApiKey <String>] [-Instance <PSObject>] [-Force] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Force SwitchParameter Suppress all non-fatal errors.
-Identity XdsIdentity The identity of the policy being modified. The only value supported is "Global", as you cannot create user level policies of this type.
-Instance PSObject Pass in the policy fetched from Get-CsTeamsEducationAssignmentsAppPolicy.
-MakeCodeEnabledType String Block-based coding activities to introduce computer science concepts. Possible values are "Enabled" or "Disabled"
-ParentDigestEnabledType String Send digest emails to parents/guardians. Possible values are "Enabled" or "Disabled"
-Tenant Guid Internal use only.
-TurnItInApiKey String The api key in order to enable TurnItIn.
-TurnItInApiUrl String The api url in order to enable TurnItIn
-TurnItInEnabledType String A service that detects plagiarism in student writing. Possible values are "Enabled" or "Disabled"
-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.