Domain join fails with status 0x6BA, the RPC server is unavailable: find the DC in NetSetup.log, test TCP 135, 445, 389 and 49152-65535 with PortQry, take a trace, and tell it apart from 0x6BF/0xC002001C and 0x3A.
Home › Guides › Domain join status 0x6BA
Last updated 21 November 2026
Status code 0x6BA during a domain join is RPC_S_SERVER_UNAVAILABLE (1722 in decimal): the RPC server is unavailable. In Microsoft's example the DC locator process has found a domain controller, but the joining computer fails to bind to it. Microsoft's steps:
C:\Windows\Debug\NetSetup.log on the client and confirm which DC was located and that the bind to it failed with 0x6ba.Two related join codes are covered below: 0x6BF / 0xC002001C (the remote procedure call failed and did not execute: a network device rejects packets) and 0x3A (the specified server cannot perform the requested operation: no reliable connectivity on TCP 389).
Joining a workgroup computer to a domain fails with:
Changing the Primary Domain DNS name of this computer to "" failed. The name will remain "<DomainName>". The error was: The RPC service is unavailable.
| Hexadecimal | Decimal | Symbolic name | Description |
|---|---|---|---|
| 0x6ba | 1722 | RPC_S_SERVER_UNAVAILABLE | The RPC server is unavailable. |
NetSetup.log shows the bind to the DC failing and the join exiting with the same status:
NetpGetComputerObjectDn: Unable to bind to DS on '\\DCNAME': 0x6ba NetpCreateComputerObjectInDs: NetpGetComputerObjectDn failed: 0x6ba NetpProvisionComputerAccount: LDAP creation failed: 0x6ba ldap_unbind status: 0x0 NetpJoinCreatePackagePart: status:0x6ba. NetpJoinDomainOnDs: Function exits with status of: 0x6ba NetpJoinDomainOnDs: status of disconnecting from '\\DCNAME': 0x0 NetpResetIDNEncoding: DnsDisableIdnEncoding(RESETALL) on 'DOMAINNAME' returned 0x0 NetpJoinDomainOnDs: NetpResetIDNEncoding on 'DOMAINNAME': 0x0 NetpDoDomainJoin: status: 0x6ba
The log is on by default at C:\Windows\Debug\NetSetup.log. Confirm that the DC locator process found a DC (connecting to it returns 0x0) and that the bind to that DC then fails with 0x6ba:
NetpJoinDomainOnDs: status of connecting to dc '\\DCNAME': 0x0 NetpGetComputerObjectDn: Unable to bind to DS on '\\DCNAME': 0x6ba
Note the DC name: the port tests in the next step go against that DC. If the log shows that no DC was located, compare with error 0x54B, which Microsoft describes as issues locating domain controllers (see the 0x54B guide).
The RPC endpoint mapper listens on port 135 and tells the client which randomly assigned port a service is listening on. Check these ports:
| Server port | Service / protocol |
|---|---|
| TCP 135 | RPC Endpoint Mapper |
| TCP 49152-65535 | RPC (dynamic port allocation) |
| TCP 445 | Server Message Block (SMB) |
| UDP/TCP 389 | LDAP |
Test each one from the client with the PortQry command-line tool, replacing <problem_server> with the DC from step 1:
portqry -n <problem_server> -e 135 portqry -n <problem_server> -e 445 portqry -n <problem_server> -e 389 portqry -n <problem_server> -p UDP -e 389 portqry -n <problem_server> -r 49152:65535
A blocked TCP 135 looks like this:
C:\PortQryV2>portqry -n dc2 -e 135 Querying target system called: Dc2 Attempting to resolve name to IP address... Name resolved to 192.168.1.2 querying... TCP port 135 <epmap service>: FILTERED
A working TCP 389 ends with TCP port 389 <ldap service>: LISTENING.
Collect a trace while you reproduce the join to double-check connectivity. You can use netsh trace to generate an ETL file and convert it to a PCAP file that Wireshark can read. In Microsoft's example the client keeps retransmitting its TCP SYN to the DC's port 135 and gets no answer:
PortQry.exe CLIENT DC TCP TCP:Flags=CE....S., SrcPort=51542, DstPort=DCE endpoint resolution(135), PayloadLen=0, ... PortQry.exe CLIENT DC TCP TCP:[SynReTransmit #50]Flags=CE....S., SrcPort=51542, DstPort=DCE endpoint resolution(135), PayloadLen=0, ... PortQry.exe CLIENT DC TCP TCP:[SynReTransmit #50]Flags=......S., SrcPort=51542, DstPort=DCE endpoint resolution(135), PayloadLen=0, ...
In a trace taken on the DC at the same time you might not see the SYN from the client at all: it might be blocked by a firewall or a device in the middle. Check the network devices and firewalls between the client and the DC.
The join fails with The remote procedure call failed and did not execute. and NetSetup.log shows:
NetpGetLsaHandle: LsaOpenPolicy on \\<DC name>.<domain>.<tld> failed: 0xc002001c NetpGetLsaPrimaryDomain: status: 0xc002001c NetpJoinDomain: initiaing a rollback due to earlier errors NetpJoinDomain: status of disconnecting from '\\<DC name>.<domain>.<tld>': 0x0 NetpDoDomainJoin: status: 0x6bf
This happens when a network device (router, firewall or VPN device) rejects network packets between the joining client and the DC. Microsoft separates three RPC session problems:
| Status | What happens on the network |
|---|---|
| 0x6ba (RPC_S_SERVER_UNAVAILABLE) | The client can't create the TCP session to the server port. |
| 0x6bf | The TCP session is created, but the RPC request message can't be delivered and the TCP session is reset. |
| 0x6be (RPC_S_CALL_FAILED) | The RPC request message is delivered, but the TCP session is reset before the response is received. |
Troubleshoot it with the same port table and PortQry lines as above, plus a quick LDAP test with PowerShell:
Test-NetConnection <IP_address_of_the_DC> -Port 389
TcpTestSucceeded : True with RemotePort : 389 means TCP 389 is open between the client and the DC. Collect a network trace while reproducing the issue if the ports look open. Microsoft's networking-errors article (KB 4341920) adds for this message: install the most up-to-date network adapter drivers on the client, verify connectivity to the target DC over the required ports and protocols, and disable the TCP Chimney Offload feature and IP offloading. The 0x6bf code also shows up as AD replication error 1727; see the 1727 guide for that side.
The join fails with:
The following error occurred when attempting to join the domain"<DomainName>": The specified server cannot perform the requested operation.
NetSetup.log shows the LDAP bind failing with 81 (Server Down):
NetpLdapBind: ldap_bind failed on <dc_fqdn>: 81: Server Down NetpJoinCreatePackagePart: status:0x3a. NetpJoinDomainOnDs: Function exits with status of: 0x3a NetpJoinDomainOnDs: status of disconnecting from '\\<dc_fqdn>': 0x0 NetpResetIDNEncoding: DnsDisableIdnEncoding(RESETALL) on '<domain_name>' returned 0x0 NetpJoinDomainOnDs: NetpResetIDNEncoding on '<domain_name>': 0x0 NetpDoDomainJoin: status: 0x3a
Status 0x3a is logged when the client lacks reliable network connectivity on TCP 389 to the DC. Besides the port being blocked on a firewall, incorrect MTU sizes on some network devices can cause packet loss during the join and make it fail. Run Test-NetConnection <IP_address_of_the_DC> -Port 389 and look for TcpTestSucceeded : True, then collect a network trace: TCP retransmissions from the client with no response from the DC's TCP 389 port point at the network.
CLIENT DC TCP TCP:Flags=CE....S., SrcPort=49300, DstPort=LDAP(389), PayloadLen=0, ... CLIENT DC TCP TCP:[SynReTransmit #177]Flags=CE....S., SrcPort=49300, DstPort=LDAP(389), PayloadLen=0, ... CLIENT DC TCP TCP:[SynReTransmit #177]Flags=......S., SrcPort=49300, DstPort=LDAP(389), PayloadLen=0, ...
Microsoft's domain join troubleshooting guidance lists the ports that must be open between the client and the DC:
| Port | Protocol | Application protocol | System service |
|---|---|---|---|
| 53 | TCP | DNS | DNS Server |
| 53 | UDP | DNS | DNS Server |
| 389 | UDP | DC Locator | LSASS |
| 389 | TCP | LDAP Server | LSASS |
| 88 | TCP | Kerberos | Kerberos Key Distribution Server |
| 135 | TCP | RPC | RPC Endpoint Mapper |
| 445 | TCP | SMB | LanmanServer |
| 1024-65535 | TCP | RPC | RPC Endpoint Mapper for DSCrackNames, SAMR and Netlogon calls between client and DC |
For the message There are no more endpoints available from the endpoint mapper, see domain join error 0x6D9. For the dynamic port range on the DC itself, the AD replication error 1722 guide covers DNS, TCP 135 and dynamic RPC port checks from the replication side.
Look up events logged on the client at the time of the join in the Windows Event ID Lookup, copy the portqry, Test-NetConnection and nltest lines from the PowerShell Cheat Sheet, pull the 0x status codes out of NetSetup.log with the Regex Tester, check that the client and the DC subnets are routed through the firewall you are testing with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the network adapter vendor of the joining client before you update its driver with the MAC Vendor Lookup. Related guides: domain join error 0x54B, domain join error 0x6D9, AD replication error 1722 and common AD replication errors.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
It is RPC_S_SERVER_UNAVAILABLE (1722): the RPC server is unavailable. In Microsoft's example the DC locator found a domain controller, but the joining client failed to bind to it, and NetSetup.log shows Unable to bind to DS with 0x6ba.
TCP 135 (RPC Endpoint Mapper), TCP 49152-65535 (RPC dynamic ports), TCP 445 (SMB) and UDP/TCP 389 (LDAP) on the DC named in NetSetup.log. Microsoft gives PortQry lines for each, such as portqry -n with -e 135 against the DC.
With 0x6ba the client cannot create the TCP session to the server port. With 0x6bf the TCP session is created but the RPC request message cannot be delivered and the session is reset. With 0x6be the request is delivered but the session is reset before the response.
A network device such as a router, firewall or VPN device rejects network packets between the joining client and the DC. NetSetup.log shows LsaOpenPolicy failing with 0xc002001c and the join ending with status 0x6bf.
The specified server cannot perform the requested operation. NetSetup.log shows ldap_bind failed with 81: Server Down. The client lacks reliable connectivity on TCP 389 to the DC, because of a blocked port or incorrect MTU sizes on network devices.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.