To restore a deleted chat from a video conference in Microsoft Teams, you can use the Undo-MgTeamworkDeletedChatDelete cmdlet if you have the appropriate permissions. This cmdlet allows you to restore a deleted chat back to an active state. Here’s how you can do it:
- Import the Microsoft Graph Teams Module:
Import-Module Microsoft.Graph.Teams - Use the Cmdlet:
You need to know the unique identifier of the deleted chat. Use the following command to restore it:
ReplaceUndo-MgTeamworkDeletedChatDelete -DeletedChatId $deletedChatId$deletedChatIdwith the actual ID of the deleted chat.
Make sure you have the necessary permissions to perform this action, such as Chat.ManageDeletion.All for delegated work or school accounts.
If you were the administrator and the chat was deleted by mistake, this cmdlet should help you recover it.
References: