Tuesday, March 8, 2016

Error: Could not find attribute: 'dNSHostName'

Command:

Move-ADDirectoryServerOperationMasterRole -Identity "Target-DC" -OperationMasterRole 0,1,2,3,4

Error:
Move-ADDirectoryServerOperationMasterRole : Could not find attribute:
'dNSHostName' on object: 'CN=XXXX,CN=Servers,CN=Default-First-Site-Name,CN=S
ites,CN=Configuration,DC=XXXX,DC=LOCAL'.
At line:1 char:1
+ Move-ADDirectoryServerOperationMasterRole -Identity "XXXX"
-OperationMasterRo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~
    + CategoryInfo          : NotSpecified: (XXX:ADDirectoryServer) [Move-
   ADDirector...ationMasterRole], ADException
    + FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirector
   y.Management.Commands.MoveADDirectoryServerOperationMasterRole


Solution:
In my case there was a wrong DNS settings in the IPv4 configuration. After correcting the DNS in the IPv4 the command ran successfully.



3 comments:

  1. I'm having the same problem, but I don't see anything obviously wrong in the IPv4 DNS config. What exactly did you change?

    ReplyDelete
  2. Most likely a dead thread now, but in my case, I had two NICs, one of which was unplugged. Disabked this and it worked fine.

    ReplyDelete
  3. We also facing same issue and check ipv4 config it seems ok any other suggestion

    ReplyDelete