After a few attempts resulting in damaged Windows that had to be reinstalled finally found working algorithm, this is applicable to local accounts only. And do backup before doing all described below, if something goes wrong you'll have a very good chance of ending up with unbootable OS. Create account with same username on a new computer and assign Admin privileges. Copy S-1-5-21... directory from old computer to new, do not overwrite and do not delete existing S-1-5-21... folder, you should have...
After a few attempts resulting in damaged Windows that had to be reinstalled finally found working algorithm, this is applicable to local accounts only. And do backup before doing all described below, if something goes wrong you'll have a very good chance of ending up with unbootable OS. Create account with same username on new computer and assign Admin privileges. Copy S-1-5-21... directory from old computer to new, do not overwrite and do not delete existing S-1-5-21... folder, you should have...