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
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