首页 > 解决方案 > 关于 MicrosoftTeams-TeamFunSettings

问题描述

今天发现当 GiphyContentRating 属性值为“允许所有内容”时, MicrosoftTeams powershell命令Get-TeamFunSettings运行失败。错误信息:

Get-TeamFunSettings:将值“unknownFutureValue”转换为类型“System.Nullable`1[Microsoft.TeamsCmdlets.PowerShell.Custom.Model.GiphyRatingType]”时出错。路径 'funSettings.giphyContentRating',第 1 行,位置 844。在第 1 行 char:1 + Get-TeamFunSettings -GroupId a3f33284-82a5-4643-a43d-401f2568177c + ~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ + CategoryInfo : NotSpecified: (:) [Get-TeamFunSettings], JsonSerializationException + FullyQualifiedErrorId : Newtonsoft.Json.JsonSerializationException,Microsoft.TeamsCmdlets.PowerShell.Custom.GetF unSettings

标签: microsoft-teams

解决方案


也许它只是非常新,但根据命令“允许所有内容”的文档不是一个选项。(我确实认为它应该是一个) https://docs.microsoft.com/en-us/powershell/module/teams/set-teamfunsettings


推荐阅读