The operation failed because SPN value provided for addition/modification is not unique forest-wide.

Ernani Ancheta 35 Reputation points
2023-02-22T02:43:24.3566667+00:00

Hi Team,

Whenever we tried to rename and move machine to different OU, we encounter this error.

"Fail to rename computer 'Computer01' to Computer02' due to the following exception: The operation failed because SPN value provided for addition/modification is not unique forest-wide."

Can you please guide me on how to fix this issue?

Thank you in advance.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-02-23T10:15:49.17+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query\issues related to computer move to different OU.

    1. Please verify that AD health and Replication is good and all are synced. using dsdiag and repadmin /showrepl commands
    2. Please open Powershell and run below command to replace the computer name with the current may be you have this SPN already exist or open attribute editor and find serviceprincipalname

    Get-ADComputer -Filter {serviceprincipalname -like 'computername'} -Properties serviceprincipalname | select serviceprincipalname

    --If the reply is helpful, please Upvote and Accept as answer--

    1 person found this answer helpful.

  2. Adam Logan 0 Reputation points
    2024-01-26T18:08:55.2133333+00:00

    Apparently if you have a computer named very similarly it can be a problem example: X########## & ########## caused this error.

    For us, deleting the ########## name from AD allowed us to use X########## but it complained with this error when we had both in AD.

    In my case I forgot a letter prefix during re-imaging and adding the letter was problematic. Just check to be sure you don't have similar names in AD like my example.

    0 comments No comments

  3. shuklakuldip 0 Reputation points
    2024-10-20T01:11:05.2166667+00:00

    try to re-join domain, follow below steps,

    1 set local admin password if its re-set, or create local admin and set password,

    2 login with local admin with set password,

    3 remove system from domain,

    4 restart system,

    5 now you can login with local admin,

    6 login with local admin and re-join the domain.

    hop this help!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.