User Tools

Site Tools


restore_groups_powershell

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

restore_groups_powershell [2018/04/25 10:44] (current)
admin created
Line 1: Line 1:
 +**Command for restore a delete Groups via powershell**
  
 +Uninstall the outdated tool :
 +
 +<sxh ps>
 +
 +Uninstall-Module AzureADPreview
 +Uninstall-Module AzureAD
 +</​sxh>​
 +
 +Install the newest tool :
 +
 +<sxh ps>
 +Install-Module AzureAD
 +</​sxh>​
 +
 +
 +Verify the version of the tool :
 +
 +<sxh ps>
 +Get-InstalledModule -Name "​AzureAD*"​
 +</​sxh>​
 +
 +
 +----
 +
 +Connect to your tenant :
 +
 +<sxh ps>
 +Connect-AzureAD
 +</​sxh>​
 +
 +Enter your credentials.
 +
 +Get the list of deleted Groups :
 +
 +<sxh ps>
 +Get-AzureADMSDeletedGroup
 +</​sxh>​
 +
 +Restore the wanted deleted Groups :
 +
 +<sxh ps>
 +Restore-AzureADMSDeletedDirectoryObject –Id <​objectId>​
 +</​sxh>​
 +
 +To check the restore of the Groups :
 +<sxh ps>
 +Get-AzureADGroup –ObjectId <​objectId>​
 +</​sxh>​
 +
 +----
 +
 +Source : [[https://​support.office.com/​fr-fr/​article/​restaurer-un-groupe-office-365-supprim%C3%A9-b7c66b59-657a-4e1a-8aa0-8163b1f4eb54?​ui=fr-FR&​rs=fr-FR&​ad=FR|microsoft]]
 +----
 +- created date : 2017.12.06 -
restore_groups_powershell.txt · Last modified: 2018/04/25 10:44 by admin