Each time we reinstalled Windows, it will create a new
SID for user even the username is as same as before.
// example (not real
SID format, just show the problem)
user
SID
--------------------
liuyan S-old-501 // old
SID before reinstall
liuyan S-new-501 // new
SID after reinstall
The annoying
…