I’m tried to delete some specific SIDHistory after a lot of migrations. I have a problem with my script because if some objects has more than 1 SIDHistory, it clear all of them and I don’t want that.
For example, I want to choose object with this SIDHistory S-1-5-21-2952651426-2628096683-2210756013 but if the object got many SIDHistory, it delete all of them.
How can I do it better ?
Set-ADUser : Impossible de valider l’argument sur le paramètre « Identity ». L’argument est null. Indiquez un argument non-null et réessayez.
Au niveau de ligne : 12 Caractère : 66