วิธีติดตั้ง Active Directory Domain Services
วิธีติดตั้ง Active Directory Domain Services

วิธีติดตั้ง Active Directory Domain Services (AD DS) บน Windows Server 2019

Active Directory Domain Services (AD DS) ช่วยให้คุณสามารถสร้างและจัดการเครือข่ายแบบโดเมนได้ นี่คือวิธีติดตั้ง Active Directory Domain Services (AD DS) บน Windows Server 2019


📦 ขั้นตอนที่ 1: ติดตั้งบทบาท AD DS

✅ ใช้ Server Manager (GUI)

  1. เปิด Server Manager

  2. คลิก Manage > Add Roles and Features

  3. ที่หน้า Before You Begin ให้คลิก Next

  4. เลือก Role-based or feature-based installation แล้วคลิก Next

  5. เลือกเซิร์ฟเวอร์ของคุณ > คลิก Next

  6. ที่หัวข้อ Server Roles ให้ติ๊กเลือก Active Directory Domain Services

    • คลิก Add Features หากมีหน้าต่างเด้งขึ้น

  7. คลิก Next ไปจนถึงหน้า Confirmation

  8. คลิก Install

  9. รอจนการติดตั้งเสร็จสิ้น จากนั้นคลิก Close


💻 ใช้ PowerShell

powershell
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools

⚙️ ขั้นตอนที่ 2: โปรโมทเซิร์ฟเวอร์ให้เป็น Domain Controller

✅ ใช้ Server Manager (GUI)

  1. หลังติดตั้งเสร็จ คลิก Promote this server to a domain controller (จะเห็นใน Server Manager)

  2. เลือกหนึ่งในตัวเลือกต่อไปนี้:

    • Add a new forest (ถ้าคุณต้องการสร้างโดเมนใหม่)

    • Add a domain controller to an existing domain (ถ้าคุณจะเพิ่มในโดเมนที่มีอยู่แล้ว)

  3. หากสร้างโดเมนใหม่ ให้กรอก Root domain name เช่น example.local

  4. ตั้งรหัสผ่านสำหรับ Directory Services Restore Mode (DSRM)

  5. คลิก Next ผ่านแต่ละหน้าจอ (หากไม่แน่ใจสามารถใช้ค่าพื้นฐานได้)

  6. คลิก Install

  7. เซิร์ฟเวอร์จะรีสตาร์ทอัตโนมัติหลังการโปรโมทเสร็จ


💻 ใช้ PowerShell (ตัวอย่างสำหรับสร้าง Forest ใหม่)

powershell
Install-ADDSForest -DomainName "example.local" -DomainNetbiosName "EXAMPLE" -SafeModeAdministratorPassword (ConvertTo-SecureString "YourDSRMpassword" -AsPlainText -Force) -Force

✅ หลังจากติดตั้งเสร็จ

  • เข้าระบบด้วยบัญชีโดเมน เช่น EXAMPLE\Administrator

  • ใช้ Active Directory Users and Computers เพื่อจัดการผู้ใช้ กลุ่ม และ OU ต่าง ๆ

  • ใช้ DNS Manager เพื่อปรับตั้งค่า DNS หากจำเป็น


🎯 สรุป

งาน วิธีการ
ติดตั้งบทบาท AD DS ผ่าน Server Manager หรือ PowerShell
โปรโมทเป็น Domain Controller ผ่านวิซาร์ด หรือคำสั่ง PowerShell (Install-ADDSForest)
ข้อมูลที่ต้องใช้ ชื่อโดเมน, รหัสผ่าน DSRM
ต้องรีสตาร์ทเครื่องหรือไม่? ✅ ต้อง

Ref : https://techdiary11.blogspot.com/2025/04/how-to-install-active-directory-domain.html

Comments

No comments yet. Why don’t you start the discussion?

ใส่ความเห็น

อีเมลของคุณจะไม่แสดงให้คนอื่นเห็น ช่องข้อมูลจำเป็นถูกทำเครื่องหมาย *