Active Directory and Azure AD Connect
$DomainName = "CMIT382XX.local" # Replace XX with your initials $DomainNETBIOSName = "CMIT382XX" # Replace XX with your initials $DomainMode = "7" $ForestMode = "7" $DBPath = "C:\NTDS" $LogPath = "C:\NTDS" $SysvolPath = "C:\Sysvol" Write-host "Installing AD Domain Services feature" -foregroundcolor yellow $command = Install-WindowsFeature AD-Domain-Services –IncludeManagementTools Write-host "AD Domain Services feature was installed successfully" -foregroundcolor green Write-host "Installing New AD forest : $DomainName" -foregroundcolor yellow $SafeModePass = Read-Host -AsSecureString -Promtp "Please enter safe mode administrator password" $command = Install-ADDSForest -CreateDnsDelegation:$false -DomainName $DomainName -DomainNetbiosName $DomainNetbiosName -SafeModeAdministratorPassword $SafeModePass -DatabasePath $DBPath -LogPath $LogPath -SysvolPath $sysvolPath -DomainMode $DomainMode -ForestMode $ForestMode -InstallDns -NoRebootOnCompletion