Forum Discussion
New feature: Recover deleted Office 365 Group via PowerShell
From the documentation:
"You can also permanently delete a soft-deleted group if you can't wait the 30 days for the retention period to expire for the content to be permanently deleted."
- Paul MillerJan 23, 2018Copper Contributor
What's the procedure for permanent deletion? the -permanent switch is designated for internal Microsoft Use only according to the documentation for the Remove-UnifiedGroup command. And attempting to use it in Azure PowerShell results in the following error:
A parameter cannot be found that matches parameter name 'Permanent'.
+ CategoryInfo : InvalidArgument: (:) [Remove-UnifiedGroup], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Remove-UnifiedGroup
+ PSComputerName : ps.outlook.com- Paul MillerJan 23, 2018Copper Contributor
Found the Answer in the Linked article.
Remove-AzureADMSDeletedDirectoryObject –Id <objectId>
- cfiessingerJan 23, 2018
Microsoft
great, all documented here: https://support.office.com/en-us/article/Restore-a-deleted-Office-365-Group-b7c66b59-657a-4e1a-8aa0-8163b1f4eb54?ui=en-US&rs=en-001&ad=US
- Mar 29, 2017Yes I saw the 30 days but when looking at a soft deleted Group you currently cannot see how many days it has left before permanent deletion or when it was deleted. I was just curious if this is something currently being talked about to surface through the supporting cmdlets. I believe I can get it through the audit log if needed.
- cfiessingerApr 27, 2017
Microsoft
Drew Madelung if you get the lastest module you will see a new property exposed: DeletedDateTime as shown belowGet-AzureADMSDeletedGroup | Sort-Object DisplayName| Format-Table Id, DisplayName, Description, Visibility, DeletedDateTime
- Apr 27, 2017
Thank you cfiessinger!
- cfiessingerMar 29, 2017
Microsoft
Drew we will expose in a few weeks the deleted date/time property of each object, please stay tune.