Share via

New-CsApplicationAccessPolicy issue

Bartek Olejniczak 1 Reputation point
2022-01-25T10:13:57.233+00:00

Hello,

I'm trying to add New-CsApplicationAccessPolicy (Team Admin) via PS and i receive error:

New-CsApplicationAccessPolicy: Unable to cast object of type 'System.Management.Automation.PSListModifier' to type 'System.String'.

I used command from docs example:
New-CsApplicationAccessPolicy -Identity "Global MS Teams Policy" -AppIds "000000-00000-xxxx" -Description "Azure is amazing "

Any idea what else i can check?

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

1 answer

Sort by: Most helpful
  1. Limitless Technology 40,106 Reputation points
    2022-01-28T08:52:57.453+00:00

    Hi there,

    This might help you out.

    • Upgrade the Microsoft team's PowerShell module to the latest .
    • Connect-MicrosoftTeams #Enter global Administrator account credential and make sure that you see Admin account details in connection output.
    • Now execute the New-CsApplicationAccessPolicy
    • Make sure the PowerShell connects/works.

    Here is a thread as well that discusses the same issue and you can try out some troubleshooting steps from this and see if that helps you to sort the Issue.

    Creating a New-CsApplicationAccessPolicy through Teams Admin Center
    https://learn.microsoft.com/en-us/answers/questions/475809/creating-a-new-csapplicationaccesspolicy-through-t.html

    -------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.