Install and Uninstall of Active Directory Service

 Rename the Computer Name:

Rename-Computer    -NewName   ITBD-ADDS   -LocalCredential      WS\Administrator  -PassThru

Here - 

ITBD-ADDS - is the New-Name of the computer

WS - is the Old/Previous Name of the Computer


To see the interfaces name:

netsh interface show interface


To rename the interface name:

netsh   interface    set    interface    name="Current Name"      newname="New Name"


Setting IP Address:

netsh   interface   ipv4   set   address    "LAN"    static   192.168.1.100 255.255.255.0    192.168.1.1


netsh interface ipv4 delete dns "LAN" all


Delete default gateway: route delete -p 0.0.0.0


Joining into a Domain:

add-computer   –domainname   itbd.local    -Credential   itbd\administrator  -restart  –force


Installation of Active Directory Service


To see the list of Windows Feature:

Get-WindowsFeature


Step-01:Install ADDS-Service:

Install-WindowsFeature     AD-Domain-Services


Step-02:Promote as a Directory Service:

Install-ADDSForest     -DomainName     itbd.local     -InstallDNS


                            Uninstallation  of Active Directory Service

Step-01: Demote ADDS:(This command will be in a single line)

Uninstall-ADDSDomainController -LastDomainControllerInDomain  -Force  

-RemoveApplicationPartitions -DemoteOperationMasterRole


Step-02:Uninstall ADDS:

Uninstall-WindowsFeature   AD-Domain-Services   -RestartComputer

Rename-Computer    -NewName   ITBD-ADDS   -LocalCredential      WS\Administrator  -PassThru








Comments

Popular posts from this blog

Some Questions for MTCNA Exam

ডিপ্লোমা লেভেল এর ইন্ডাস্ট্রিয়াল এটাচমেন্ট এ আসার পূর্বে একটু ভেবে আসার অনুরোধ রইলো

Basic Router & Switch IOS commands