There is no guaranteed way unfortunately, and the backup/restore of the registry is fraught with danger as a mistyped word could exacerbate the problem