Create new forest and new domain on server 2012

Here are the steps to create a new forest and a new domain on a Windows Server 2012:

Prerequisites:

Step 1: Promote the Server to a Domain Controller

  1. Open the Server Manager console on the server.
  2. Click on "Add roles and features" and select "Next".
  3. Select "Role-based or feature-based installation" and click "Next".
  4. Select "Domain Controller" and click "Next".
  5. Select the "Active Directory Domain Services" feature and click "Next".
  6. Click "Install" to install the feature.
  7. Once the installation is complete, click "Close".

Step 2: Create a New Forest

  1. Open the Active Directory Domain Services console on the server.
  2. Right-click on "Active Directory Domain Services" and select "Create a new forest".
  3. Enter the name of the forest (e.g. "example.com") and click "Next".
  4. Enter the DNS server IP address and click "Next".
  5. Enter the forest functional level (e.g. "Windows Server 2012") and click "Next".
  6. Click "Create" to create the forest.

Step 3: Create a New Domain

  1. Right-click on the forest and select "Create a new domain".
  2. Enter the name of the domain (e.g. "example.local") and click "Next".
  3. Enter the domain functional level (e.g. "Windows Server 2012") and click "Next".
  4. Enter the domain controller name and click "Next".
  5. Click "Create" to create the domain.

Step 4: Configure DNS

  1. Open the DNS Manager console on the server.
  2. Right-click on the "Forward Lookup Zones" folder and select "New Zone".
  3. Enter the name of the zone (e.g. "example.local") and click "Next".
  4. Select "Primary zone" and click "Next".
  5. Enter the replication scope (e.g. "All DNS servers running on this network") and click "Next".
  6. Click "Finish" to create the zone.

Step 5: Configure the Domain Controller

  1. Open the Server Manager console on the server.
  2. Click on "Tools" and select "Active Directory Domains and Trusts".
  3. Right-click on the domain and select "Properties".
  4. Enter the domain controller name and click "OK".
  5. Click "OK" to close the window.

Step 6: Verify the Domain

  1. Open the Command Prompt as an administrator.
  2. Type "netdom query /domain" and press Enter to verify the domain.

That's it! You have now created a new forest and a new domain on a Windows Server 2012.