on the client side;
when trying to join or unjoin a computer to the domain, the biggest problem is dns. If the client computer is unable to resolve the domain, it will not be able to join it.
Cause; Domain controller not in the primary DNS, WIN, Netbios list.
Solution;
A quick fix is to change the computer to manual DNS, and make the primary dns server the domain controller. When dynamic is required, ensure that the primary & secondary dns server provided by the DHCP server can resolve the domain;
example: if your DHCP server is 10.1.0.1, and the dns servers are 10.1.0.11 & 12, you would use nslookup at the command line; " nslookup technet.local 10.1.0.11 " which would query the 1st DNS server for the domain "technet.local". To complete the test, you should be able to ping technet.local. If you cannot, you must solve this problem before joining the computer to the domain.
note; in many small office networks, with SBS server, it is often best to disable DHCP on the SOHO gateway (2 wire, actiontec, linksys, etc...), enable a DHCP scope on the SBS (small business server) , exclude ranges used by static device (like the 2 dns servers (10.1.0.11 & 12), and ensure that the 1st DNS server in the list is the SBS server.