AD DS

From AlphaBook
Jump to: navigation, search

Active Directory Domain Service Design

Setup the first Domain Controller

Reference

FSMO (Flexible single master operation)

5 FSMO roles

  • Schema master / Forest level
    • To make change Schema in forest (such as implement Exchange, Lync, SCCM)
  • Domain naming master / Forest level
    • To add/remove domain in forest
  • PDC / Domain level
    • Time root in forest (PDC->DCs->Computers)
    • Group policy central management
    • Handle password change specially (the change will sync to PDC immediately)
    • Handle user account lock specially
  • RID pool master / Domain level
    • Assign RIDs to DCs (500/time)
  • Infrastucture master / Domain level
    • Objects reference in different domains

To check the FSMO servers

  • netdom query fsmo

To transfer / seize to FSMO roles

  • Ntdsutil
  • Roles
  • Connections
  •  ?
  • Connect to server BJDC01
  • Quit
  • Transfer schema master
  • Transfer domain naming master
  • Transfer PDC
  • Transfer RID master
  • Transfer infrastructure master

How to configure a firewall for domains and trusts

Detect Password Changes in Active Directory

  • Enable security log
    • Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> Audit Policy -> Audit account management -> Define -> Success and Failure
    • Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Event Log -> Maximum security log size -> 1GB
    • Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Event Log -> Retention method for security log -> Overwrite events as needed
  • Get log (password reset attempt by administrator)
    • Get-EventLog -LogName Security -InstanceId 4724
  • Get log (password change attempt by user)
    • Get-EventLog -LogName Security -InstanceId 4723