Link to home
Start Free TrialLog in
Avatar of Parity123
Parity123Flag for United States of America

asked on

Powershell: sidhistory

Hello experts,

Is there a way to save the sidHistory attribute values prior to removing it for a user/group and restore these if there is an issue with a script.

Looking forward to you assistance.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It looks like you may be able to do this:  https://alwinperotti.wordpress.com/2013/03/29/update-the-sidhistory-attribute-for-existing-accounts-with-powershell/  Provided the trust is still there.  Never Tried it.

I think you are looking for a backout plan.   As oBdA mentioned, you can save it so you can cross reference the old SID incase there was some old SIDs that didn't get migrated.

Probably best idea would be to remove the trust for a period of time and see what breaks.  If issues arise, you can re-establish the trust quickly to get going again.  Or fix the security using the new SIDs.  If you can run with the trust removed for an extended period of time, you can be confident with removing the sIDHistory.
I think this deserves a split.