Suppress Warning changing user to TeamsOnly

Jason Guel 1 Reputation point
2020-12-23T16:46:33.22+00:00

When using skype or teams online powershell and using the Grant-CsTeamsUpgradePolicy cmdlet to set a users policy to UpgradeToTeams - is there away to suppress the warning you get after running this cmdlet?

I've tried using -warningaction silentlycontinue but it doesn't work. Is this something that can't be suppressed?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,954 questions
Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
618 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sharon Zhao-MSFT 25,081 Reputation points Microsoft Vendor
    2020-12-24T05:44:31.383+00:00

    @Jason Guel ,

    I tested this and with no luck. I also find someone else shared a way to suppress warnings in PowerShell scripts. However, the result is the same. It seems a hard code and has no way to avoid.

    Besides, this article introducing some common parameters which can be used with any cmdlet deserves a read.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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