Forum Discussion
New feature: Recover deleted Office 365 Group via PowerShell
woot!
Is there a way for admins to know if/when an Office 365 Group is deleted?
- Sara CortezSep 13, 2017
Microsoft
I found this very useful to check all groups https://gallery.technet.microsoft.com/office/Office-365-Groups-Report-7e3e161b
- Paul CunninghamMar 29, 2017Iron Contributor
Brent Cordis try this script
https://practical365.com/collaboration/groups/powershell-script-generate-reports-groups-office-365/We'll be updating it to flag whether deleted groups are still recoverable as well, now that the new feature is available.
cc cfiessinger - Paul van LingenMar 28, 2017Copper ContributorFinally, thanks for the update!
- Mar 28, 2017Awesome stuff!!!
- cfiessingerMar 28, 2017
Microsoft
you can now write a script that notifies you on a regular basis for instance using this new cmdlet:
Get-AzureADMSDeletedGroup | Sort-Object DisplayName| Format-Table Id, DisplayName, Description, Visibility
- AnonymousApr 11, 2017
I installed Online Services Sign-In Assistant and AzureADPreview 2.0.0.98 on Windows 10 and connected to Azure AD with our tenant admin account, but when I execute Get-AzureADMSDeletedGroup cmdlet I receive the error;
The term 'Get-AzureADMSDeletedGroup' is not recognized as the name of a cmdlet, function, script file, or operable program.
Do I need antoher version of the AzureADPreview or am I missing a prerequisite?- Rob de JongApr 11, 2017Former Employee
Hi Paul,
The 'Get-AzureADMSDeletedGroup' cmdlet is part of AzureADPreview 2.0.0.98 so you should be able to use it if you installed this module. Can you please verify that the module has been installed correctly? You can use "Get-Module AzureADPreview" for that.
If you have installed the correct module on your computer you should be able to use the cmdlet. Please let me know if it still doesn't work.
-Rob