MS-700 practice question 10 of 10
Your company has a Microsoft 365 subscription. An administrator reports that teams were deleted accidentally today. You need to restore the teams as quickly as possible. Which cmdlets should you run?
Full set: 420 questionsA Microsoft Team is built upon a Microsoft 365 Group. When a team is deleted, the underlying group is soft-deleted and can be restored within 30 days. The correct procedure using PowerShell is to first identify the deleted group using the Get-AzureADMSDeletedGroup cmdlet. Then, using the Object ID of that deleted group, you run the Restore-AzureADMSDeletedDirectoryObject cmdlet to restore the group, which in turn restores the associated team and its content.
B. Get-Team only lists active teams, and Restore-ADObject is for on-premises Active Directory, not Azure AD.
C. Restore-ADObject is for on-premises Active Directory and cannot be used to restore an Azure AD object.
D. Get-AzureADGroup only lists active groups, not soft-deleted ones, so it cannot find the group to restore.
E. Get-Team cannot find a deleted team; you must find the underlying soft-deleted Microsoft 365 Group.
- Microsoft. (2023). Restore a deleted Microsoft 365 group. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/microsoft-365/admin/create-groups/restore-deleted-group. (See section "Restore a group using PowerShell").
- Microsoft. (2023). Restore-AzureADMSDeletedDirectoryObject. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/powershell/module/azuread/restore-azureadmsdeleteddirectoryobject. (See cmdlet description and examples).
- Microsoft. (2023). Get-AzureADMSDeletedGroup. Microsoft Learn. Retrieved from https://learn.microsoft.com/en-us/powershell/module/azuread/get-azureadmsdeletedgroup. (See cmdlet description).
Keep practicing
Take the free MS-700 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other MS-700 practice questions
- Question 1What should you recommend to meet the Microsoft Teams requirements for guest access?
- Question 2You have a Microsoft Office 365 subscription. You discover that apps from a third-party p…
- Question 3Your company has a Microsoft 365 subscription. The company has a group named Sales. You n…
- Question 4Your company has a Microsoft Office 365 subscription. All users can create private channe…
- Question 5Note: This question is part of a series of questions that present the same scenario. Each…
- Question 6You plan to implement a pilot project on Phone System for 100 users. The pilot project wi…
