Calculate SID of the specified account name and then find particular value of the registry key