Configuring Active Directory on Three Computers: DC, Comp, and IIS

Abstract: Configure Active Directory by setting up a Domain Controller, joining a client computer to the domain, and integrating an IIS web server for secure network authentication.

Created: 2026-10-07 by

Setting up a functional Active Directory environment requires coordinating three distinct roles: a Domain Controller for authentication, a client computer for domain joining, and an IIS server for web services. This guide details the step-by-step configuration of these components to create a secure, integrated network infrastructure.

Preparing the Virtual Environment

Before installing any software, you must establish a stable virtualization layer. Using Hyper-V or VMware Workstation, create three separate virtual machines (VMs). Assign unique static IP addresses to each VM to prevent DHCP conflicts during the setup process. For example, set the Domain Controller (DC) to 192.168.1.10, the Client Computer (Comp) to 192.168.1.20, and the IIS Server to 192.168.1.30. Ensure all VMs share the same virtual switch so they can communicate via internal networking. Disable firewalls temporarily on all machines if they block local traffic, but remember to re-enable them with appropriate rules once the configuration is complete.

Configuring the Domain Controller

The Domain Controller is the heart of your Active Directory structure. Install Windows Server on the first VM and promote it to a Primary Domain Controller using the "Active Directory Domain Services" role. During promotion, create a new forest with a root domain name such as corp.local. Set a strong password for the Administrator account, as this credential will be used across all subsequent configurations. After the reboot, verify that the DNS service is running correctly, as Active Directory relies heavily on DNS for locating resources. You can test this by pinging the domain name from the DC itself. If the ping resolves to the DC's IP address, your DNS foundation is solid.

Joining the Client Computer to the Domain

Now, configure the second VM, which acts as the standard user workstation. Install the client version of Windows, such as Windows 10 or 11 Enterprise. Navigate to System Properties and change the computer name settings. Instead of workinggroup, select "Domain" and enter the root domain name created earlier (corp.local). When prompted, provide the Administrator credentials from the Domain Controller. The system will contact the DC, validate the credentials, and join the domain. A successful join requires a restart. After rebooting, log in using a domain account (e.g., CORP\Administrator) to confirm that Group Policy Objects are applied correctly. This step ensures that users are authenticated centrally rather than locally.

Installing and Configuring IIS

The third VM hosts Internet Information Services. Install Windows Server on this machine and add the "Web Server (IIS)" role through Server Manager. By default, IIS listens on port 80. To integrate this server into the domain, you must first join it to the domain just like the client computer. Once joined, configure the Default Web Site to use HTTPS for security. This involves generating a self-signed certificate or importing a private key SSL cert to ensure encrypted communications. For detailed instructions on securing your web server, refer to our guide on Adding Private key SSL Cert to IIS. Additionally, ensure that the IIS server can resolve domain names by pointing its primary DNS adapter to the Domain Controller's IP address.

Testing Connectivity and Security

With all three components configured, perform end-to-end testing. From the Client Computer, open a browser and navigate to the IIS server's IP address or hostname. Verify that the website loads correctly. Next, test authentication by accessing shared folders on the Domain Controller from the Client Computer. Use the net user command in the command prompt to check current session information. If you encounter issues reaching the website after updates, review our troubleshooting steps for Troubleshooting: Unable to Reach Website After Downloading File During Windows Server Upgrade. Ensure that Windows Firewall allows inbound traffic on ports 80, 443, and 389 (LDAP) across all machines. Properly configured ACLs on shared folders should restrict access to only authorized domain groups.

Frequently Asked Questions

What happens if the Domain Controller goes offline?

Client computers that have already logged in can still access cached credentials for a short period. However, new login attempts will fail, and group policy updates will not occur. It is crucial to maintain high availability by configuring a secondary Domain Controller in production environments.

Can I use a dynamic IP address for the Domain Controller?

No, Active Directory requires static IP addresses for all critical servers. Dynamic IPs can cause DNS registration failures, leading to authentication errors and service disruptions. Always assign a static IP in the network adapter settings.

How do I reset the Administrator password if I forget it?

If you have physical or console access to the Domain Controller, you can boot into Safe Mode to reset the local administrator password. For domain accounts, you may need to use emergency backup media or another admin account to perform a reset. Regularly document recovery procedures to avoid lockouts.

Why can't the IIS server see the Domain Controller?

This is usually a DNS resolution issue. Ensure the IIS server's primary DNS setting points to the Domain Controller. Check that both machines are on the same subnet and that no firewall rules are blocking LDAP (port 389) or Global Catalog (port 3268) traffic.

Is it safe to use a self-signed certificate for internal IIS sites?

For internal development or testing, self-signed certificates are acceptable. However, they will trigger browser warnings because they are not trusted by default. In production, always use certificates issued by an internal Enterprise CA or a public Certificate Authority to ensure seamless trust.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More