This error appears when Windows cannot finish joining a computer to a domain, or cannot change the domain it is already in:
Changing the Primary Domain DNS name of this computer to “” failed. The name will remain “whyte.net”. The error was: The specified server cannot perform the requested operation.
I hit it in 2020 in an AWS lab, joining a Windows Server 2008 R2 machine to a domain with a Windows Server 2016 domain controller. I did not record a fix at the time, so this post is not “the answer”. It is the error, what I had already ruled out, and the checks and Microsoft guidance I would work through today.

My domain checks all passed at the time, traffic was open between the two servers, and nothing of note showed in Event Viewer:

What the Error Is Telling You
“The specified server cannot perform the requested operation” is Windows error 58. The client reached the domain controller, but the reply was not one it could use. That points at the conversation between the two machines (the network, the protocols they agree on, or the account being created) rather than at a simple typo in the domain name.
Checks to Work Through
Read NetSetup.log first. Every join attempt is logged on the computer you are joining, with the step that failed and its error code. It is far more useful than the pop-up:
# The domain join log on the machine you are joining (last 60 lines) Get-Content C:\Windows\debug\NetSetup.LOG | Select-Object -Last 60
Check DNS. The machine must use the domain’s DNS servers, not a public resolver or the cloud provider’s default. If it cannot resolve the domain controller SRV records, the join fails in odd ways. The DNS checks in Domain Join Sanity Checks cover this.
Look for an old computer account. If a computer with the same name was joined before (a rebuilt server, a cloned VM), the existing account in Active Directory can block the new join. Reset or delete the old account, or join with a new name.
Try the join from PowerShell. The error is often clearer than the System Properties dialog:
# Change corp.example.com to your domain and corp\admin.user to an account allowed to join computers Add-Computer -DomainName corp.example.com -Credential corp\admin.user Restart-Computer
Check the ports and anything inspecting traffic. In a cloud lab that means the security groups and network ACLs on both sides, for DNS (53), Kerberos (88), RPC (135 plus the dynamic range), LDAP (389) and SMB (445). “Traffic is open” in one direction is not always open in both.
Consider the age gap. Server 2008 R2 was already out of support when I wrote this, and newer domain controllers and security baselines turn off older protocols and ciphers that an old client may still rely on. Functional levels govern the domain controllers rather than member servers, but Microsoft’s page on Active Directory functional levels shows which Windows Server versions are still supported alongside each level. If you are joining something that old, it is worth asking whether it should be joined at all.
Check the clock. More than 5 minutes between the machine and the domain controller breaks Kerberos, and the errors rarely say so.
Microsoft’s Guidance
These 2 pages go through the join errors and their fixes in more detail than I can here: Troubleshoot errors when joining computers to a domain, and Active Directory domain join troubleshooting guidance, which explains how to read NetSetup.log.
Related
If SQL Server is part of your day job, my current work lives over at sqldba.blog: production DBA scripts, an error library and the SSMS guide.
Leave a Reply