Restaurer un utilisateur Active Directory supprimé
Par Romain Tiennot le dimanche 11 mars 2012, 21:53 - Serveur - Lien permanent
Il existe depuis Windows Server 2008 R2 la possibilité de créer une corbeille Active Directory. En l'activant, on rajouter un attribut "isdelete" a l'ensemble des utilisateurs. Il passe à la valeur "Vrai" une fois l'utilisateur supprimé. Pour activer l'option, il faut ouvrir une console Powershell avec les droits administrateurs et importer le module Active Directory :
Ensuite, on active l'option. Attention, elle est irreversible :
Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target <Domaine>
Pour notre exemple, on va créer une utilisatrice nommé "Herberte". "Herberte" n'etait pas aimé par le service informatique et a été supprimé par un technicien.
Par chance, il est possible de restaurer le compte d'"Herberte". Il est possible de lister les utilisateurs supprimés avec cette commande :
Get-ADObject -filter 'isdeleted -eq $true -and name -ne "Deleted Objects"' -includeDeletedObjects -property *
Et de la restaurer avec celle-ci :
Get-ADObject -Filter 'samaccountname -eq "Herberte"' -IncludeDeletedObjects | Restore-ADObject
A bientôt,
Romain
Il y a 8 commentaires
Can I simply say what a relief to find someone who actually knows what they are talking about
on the web. You definitely understand how to bring an
issue to light and make it important. More and more people need to
read this and understand this side of the story.
I was surprised that you aren't more popular given that you certainly have the gift.
When social circle starts to widen, teens are generally acutely aware about bodily appearance, specially girls. Therefore, you ought to adhere to a very well balanced diet regime that involves carbs in just re-decorating.
http://ellabellaphotography.com/gar...
loose weight, body weight, weight loss surgery, quick weight loss
To hiring an android application development companionship you can improve about the premium of work. Tethering lets in which connect your Android tablet to since by using ones smart phone's natural 3G connection. http://www.moviesafar.com/z4root.ht... z4root
Thanks for the info about valentus products it was very useful to us. My uncle told me about your site.
I just now would not get away from your web site previous to hinting which i truly relished the usual facts somebody . more infogive on your friends? Will probably be again consistently as a way to look into cross-check fresh discussions
Very element of material. I simply located a person's website along with accession investment to say i always receive in fact beloved bill your current blog site blogposts. In any manner We will be signing up your bottles and even My spouse and i completion you actually obtain continually quickly.. weight loss
If it is the first of these then the reason these piece will have been discounted is that these
are end of range pieces and the store wants to make
room for the next seasons goods and new designs.
A truly precious boutique filled with pastel dresses,
embellished jackets and dainty accessories.
Good lighting is known to positively enhance the
ambience, appeal and character of any luxury living space, and Italian lighting in particular is renowned
for blending functionality with beauty.
Hi tһere, You hɑve performed an excellent job. Ⅰ'll definitᥱly digg
it and in my opinion suggest to mу friends. I'm ѕure thеy'll be benefited fгom this web site.