Installation of Active Directory

enable powershell mode by typing powershell.

Step 1

Install Active Directory

Install-WindowsFeature -Name ad-domain-services -IncludeManagementTools

Additional Information Get-WindowsFeature -Name tools RSAT-ADDS-Tools

Step 2 Install forest

Install-ADDSForest -DomainName “company.pri”

Step 3 To check/prove if active directory is really installed or not.

get-aduser -filter *

Step 4

For further clarification:

When prompted for credentials you may have to enter them in the following format or you will continue to get the “You must supply a user account” dialogue box.

Username: domain.local\UserAccount

in my case i enterd

company.pri\Administrator password: it is password of administrator account of main domain controllor.

So for anyone new to this that means -> (whatever the domain you are trying to join) \ (the user account on that domain you want to give credentials from)

Get-NetAdapterBinding -ComponentID ‘ms_tcpip6’ | Disable-NetAdapterBinding -ComponentID ‘ms_tcpip6’ -PassThru

Add-Computer -Domain “company.pri” -NewName mydesktop -Restart Add-Computer -Domain “company.pri” -Restart

Credentials: username : company/Administrator

Install-WindowsFeature -Name ad-domain-services -IncludeManagementTools

Install-ADDSDomainController -DomainName “company.pri” -Credential (Get-Credential company\administrator)

http://www.serverframework.com/asynchronousevents/2011/01/time-wait-and-its-design-implications-for-protocols-and-scalable-servers.html

https://docs.microsoft.com/en-us/windows/client-management/troubleshoot-tcpip-port-exhaust

Next