ADDS Installation & Configuration via PowerShell



1) Change Server Name:-
--------------------

PS C:\Users\Administrator> Rename-Computer


2) Restart Server:-
----------------

PS C:\Users\Administrator> Restart-Computer


3) Show All Roles & Features of Server:-
-------------------------------------

PS C:\Users\Administrator> Get-WindowsFEature


4) Show ADDS Feature Status on Server:-
---------------------------------------

PS C:\Users\Administrator>Get-WindowsFeature -Name AD-Domain-Services



5) Install ADDS Roles & Sub-Feature in Server:-
-----------------------------------------------

PS C:\Users\Administrator>Install-WindowsFeature -Name AD-Domain-Services -IncludeAllSubFeature -IncludeManagementTools



6) Configure ADDS Roles in Server:-
------------------------------------

Note:- "Copy this all script & paste in PowerShell."

Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "WinThreshold" `
-DomainName "abhishek.local" `
-DomainNetbiosName "ABHISHEK" `
-ForestMode "WinThreshold" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-Force:$true



Server machine restart automatically. And Server 2019 has been moved in Domain.




7) Remove Domain from Server:-
-------------------------------

Note:- "Copy this all script & paste in PowerShell."

Import-Module ADDSDeployment
Uninstall-ADDSDomainController `
-DemoteOperationMasterRole:$true `
-ForceRemoval:$true `
-Force:$true

Give the password & restart the computer machine.

8) Remove ADDS Role & Feature from Server:-
-------------------------------------------

PS C:\Users\Administrator>Remove-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools



Thanks & Regards
Abhishek Pathak
+91-9621134014

abhishek9621134014@outlook.com

No comments:

Post a Comment

Computer Hardware_(A+) & Operating System with Networking

Microprocessor Motherboard About Operating System Create Bootable Pen Drive via Command Map Network Drive File Transfer Protocol in Windows ...