Sounds like the account used to join doesn't have enough permissions. Usually because the computer was joined previously by using different computer account credentials. (Assuming you did not join it to domain). So you must first delete the existing account or get full permissions on the account.
--please don't forget to
Accept as answer if the reply is helpful--