Professional Documents
Culture Documents
38 - Module-1
38 - Module-1
38 - Module-1
au
PowerShell Commands to remotely promote a Second Domain Controller (VIC-Srv1) in GCyber forest.
1. From VIC-DC1, Type the following command to check which AD DS roles and features are installed on
VIC-Srv1, and then press Enter:
2. Type the following command to Install the AD DS role on VIC-Srv1, and then press Enter:
Install-WindowsFeature –Name AD-Domain-Services –ComputerName VIC-Srv1
3.Type the following command to verify that the AD DS role is installed on VIC-Srv1, and then press
Enter:
4. Install the domain controller role by running the following command on VIC-DC1, and then press
Enter:
PowerShell commands for deploying domain controllers by performing domain controller cloning
1. At the Windows PowerShell command prompt, type the following command, and then press Enter:
Get-ADDCCloningExcludedApplicationList
2.Verify the list of critical apps. In production, you need to verify each app or use a domain controller
that has fewer apps installed by default. Type the following command, and then press Enter:
Get-ADDCCloningExcludedApplicationList –GenerateXML
3.Type the following command to create the DCCloneConfig.xml file, and then press Enter:
New-ADDCCloneConfigFile
Gravitycyber.com.au
4.To modify the cloned machine with specific settings, Type the following command, and then press
Enter:
New-ADDCCloneConfigFile –Static -IPv4Address “192.168.0.15” -IPv4DNSResolver “192.168.0.4” -
IPv4SubnetMask “255.255.255.0” –CloneComputerName “VIC-Srv3” -IPv4DefaultGateway “192.168.0.1”
-SiteName “Default-First-Site-Name”
5.Type the following command to shut down VIC- Srv1, and then press Enter:
Stop-Computer
Test-ADDSDomainControllerUninstallation
Uninstall-ADDSDomainController
Uninstall-WindowsFeature AD-Domain-Services