วิธีติดตั้ง Active Directory บน Windows Server 2025 แบบละเอียด สำหรับองค์กรและ Home Lab

Active Directory หรือ AD คือหัวใจสำคัญขององค์กรที่ใช้ Windows Server เพราะช่วย:

  • จัดการ User
  • Login กลาง
  • ควบคุม Computer
  • ตั้ง Group Policy
  • จัดการ Security

และหนึ่งในสิ่งที่สาย:

  • SysAdmin
  • Infrastructure
  • IT Support
  • Enterprise IT

ต้องทำได้ คือ:

  • ติดตั้ง Domain Controller และ Active Directory

บทความนี้จะสอนวิธีติดตั้ง Active Directory บน Windows Server 2025 แบบละเอียด ใช้ได้ทั้ง:

  • Home Lab
  • Office
  • Enterprise Environment

พร้อมอธิบายแนวคิดที่ควรรู้จริงก่อนเริ่มใช้งาน


① 🔥 Active Directory คืออะไร

Active Directory (AD) คือระบบ:

  • Directory Service

ของ Microsoft

ใช้สำหรับ:

  • User Management
  • Authentication
  • Group Policy
  • Computer Management

องค์กรทั่วโลกใช้งานกันมหาศาล


② ⚡ ก่อนติดตั้งต้องเตรียมอะไรบ้าง

ขั้นต่ำควรมี:

  • Windows Server 2025
  • RAM 8GB+
  • SSD/NVMe
  • IP Address แบบ Static

แนะนำ:

  • Hyper-V VM
    หรือ
  • เครื่องแยก

③ 🌐 ทำไมต้องใช้ Static IP

เพราะ Domain Controller ต้องใช้:

  • DNS
  • Authentication
  • AD Service

ถ้า IP เปลี่ยน:

  • Client อาจ Login ไม่ได้

④ 🚀 ตั้งค่า Static IP ก่อนติดตั้ง

ไปที่:

Settings > Network > Ethernet

กำหนด:

  • IP Address
  • Subnet Mask
  • Gateway
  • DNS

ตัวอย่าง:

IP: 192.168.1.10
DNS: 192.168.1.10

ควรชี้ DNS มาที่ตัวเอง


⑤ 🔍 เปลี่ยนชื่อ Server ก่อน

ก่อน Promote เป็น Domain Controller ควรตั้งชื่อก่อน

ไปที่:

System > Rename this PC

ตัวอย่าง:

DC01

แล้ว Restart


⑥ 💻 เปิด Server Manager

Windows Server จะมี:

  • Server Manager

เปิดอัตโนมัติหลังเข้า Desktop

นี่คือศูนย์กลางจัดการ Server


⑦ ⚡ เริ่มติดตั้ง AD DS

ไปที่:

Add Roles and Features

เลือก:

Role-based or feature-based installation

⑧ 🐳 เลือก Server ที่ต้องการติดตั้ง

เลือก:

This Server

แล้วกด:

Next

⑨ 🤖 เลือก Active Directory Domain Services

ติ๊ก:

Active Directory Domain Services

แล้วกด:

Add Features

⑩ 🌍 กด Install

ตรวจสอบ Feature แล้วกด:

Install

รอระบบติดตั้งเสร็จ


⑪ 🔒 Promote เป็น Domain Controller

หลังติดตั้งเสร็จ จะมีแจ้งเตือน:

Promote this server to a domain controller

กดเข้าไป


⑫ 📡 สร้าง Forest ใหม่

เลือก:

Add a new forest

ใส่ชื่อ Domain เช่น:

comsiam.local

หรือ:

lab.local

⑬ ⚠️ ตั้ง DSRM Password

DSRM = Recovery Mode Password

ควร:

  • จำให้ได้
  • เก็บไว้ปลอดภัย

⑭ 🚀 DNS จะถูกติดตั้งอัตโนมัติ

AD จะติดตั้ง:

  • DNS Server

ร่วมด้วยอัตโนมัติ

เพราะ AD ใช้ DNS เป็นหัวใจหลัก


⑮ 🌐 ตรวจสอบ NetBIOS Name

ระบบจะสร้าง:

COMSIAM

อัตโนมัติจาก Domain


⑯ 📈 กด Install และ Restart

เมื่อพร้อม:

Install

ระบบจะ:

  • Configure AD
  • Restart

อัตโนมัติ


⑰ 🧠 Login ด้วย Domain Administrator

หลัง Restart ให้ Login ด้วย:

COMSIAM\Administrator

หรือ:

administrator@comsiam.local

⑱ ⚡ เปิด Active Directory Users and Computers

ไปที่:

Tools > Active Directory Users and Computers

นี่คือจุดจัดการ:

  • User
  • Group
  • Computer

ทั้งหมด


⑲ 🌍 สร้าง User ใหม่

คลิกขวา:

Users > New > User

ใส่:

  • Username
  • Password

แล้วกด Finish


⑳ 🔥 Join Client เข้า Domain

บน Windows 11:

Settings > System > About > Domain or Workgroup

เลือก:

Join Domain

ใส่:

comsiam.local

㉑ 📡 Group Policy คืออะไร

ระบบตั้งค่าจากส่วนกลาง เช่น:

  • Password Policy
  • Wallpaper
  • Software Restriction
  • Security Rule

นี่คือพลังสำคัญของ AD


㉒ ⚠️ ปัญหาที่มือใหม่ชอบเจอ

❌ DNS ผิด


❌ ใช้ DHCP


❌ เวลาเครื่องไม่ตรง


❌ Firewall Block


❌ ตั้ง Domain Name แปลกเกิน


㉓ 🚀 Home Lab ควรฝึก AD ไหม

ควรมาก

เพราะ AD คือพื้นฐานของ:

  • Enterprise IT
  • SysAdmin
  • Infrastructure

หลายบทความสาย Infrastructure ใน comsiam ก็เริ่มย้ำว่า “ถ้าเข้าใจ AD จริง จะเข้าใจโลก Enterprise ได้เร็วมาก”


㉔ 🌐 AD ยังสำคัญในยุค AI ไหม

ยังสำคัญมาก

เพราะ AI ไม่ได้แทน:

  • Authentication
  • User Management
  • Enterprise Security

AD ยังเป็นรากฐานขององค์กรจำนวนมหาศาล


㉕ ✅ สรุป

การติดตั้ง Active Directory บน Windows Server 2025 ไม่ยาก แต่สำคัญมากสำหรับโลก Enterprise

ขั้นตอนหลักคือ:

  1. ตั้ง Static IP
  2. ติดตั้ง AD DS
  3. Promote Domain Controller
  4. ติดตั้ง DNS
  5. สร้าง Domain
  6. Join Client

Active Directory ยังเป็นหนึ่งในหัวใจสำคัญที่สุดของ Infrastructure โลกปัจจุบัน และเป็นทักษะที่สาย IT ควรฝึกตั้งแต่ Home Lab ไปจนถึง Enterprise จริง