Posts

Showing posts from August, 2013

Active Directory - Domain Controller Settings & Troubleshooting

If you follow an online article about creating a new Domain Controller for either Windows Server 2008 or 2012, then it all seems to be a breeze. Well that’s not how it always turns out to be, as I recently found out myself.I was building a new domain controller on Windows Server 2012 Virtual Server on VMWare Workstation 9. On the face of it, everything I did was to the book – setup static IPs, new forest, new domain and new DNS. But soon I ran into problems where DNS name resolution won’t work and another VM wouldn’t connect to domain controller. After hours of troubleshooting, I gave up and re-built the server from scratch. Below are some of the lessons of this experience. Hopefully this will save someone else a great deal of time.Pre-requisites – Windows Server 2012 or 2008Before you install the ADDS role, make sure your server has the following settings. Don’t proceed without them.Static IP address. Have a look at my article here about how to assign a static IP on VMWare Workstatio…

Active Directory - Join Server to domain using PowerShell

Pre-requisitesMake sure preferred DNS server for all servers in the domain, including Domain Controller (DC) itself, is set to IP of domain controller. Use the following PowerShell command to set the preferred DNS server. Run it on all servers part of the domain including the DC. Set-DnsClientServerAddress -InterfaceAlias "Ethernet" -ServerAddresses <IP of your DC>, <alternate DNS server> Joining server to domainGive your server a meaningful name e.g. “WLG-SP13WFE”Run PowerShell command on the server being joined to the domain Add-Computer -DomainName corp.contoso.com -OUPath "ou=SharePoint, ou=Servers, ou=Machines,dc=corp,dc=contoso,dc=com" DebuggingRun “ipconfig /all” command and confirm that DNS server IP is set to your DC IPCheck the error log on DC to find out if there are any domain join failure errors loggedUse fully qualified domain name (FQDN) i.e. “Contoso.co.nz” rather than just “Contoso”Try pinging your DC from computer being joined to domai…