Share via

Autoreply MS teams powershell script

Tito Chen 0 Reputation points
2023-12-22T15:53:07.0766667+00:00

Hello there!
I'm looking for an autoreply script in PowerShell for my MS Teams user. Does anyone know any script?
I tried the following script, but it got me this error:

Get-MgUserChat : Authentication needed, call Connect-MgGraph.
No C:\projetos\teste.ps1:18 caractere:1
+ $privateChats = Get-MgUserChat -PageSize 50
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-MgUserChat_List1], AuthenticationException
    + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgUserChat_List1
Windows for business | Windows Server | User experience | PowerShell

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.