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
Post a Comment