Forum Discussion
New feature: Recover deleted Office 365 Group via PowerShell
- cfiessingerMar 29, 2017
Microsoft
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>
- 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