I recently used this on a Hyper-V build. It should provide enough network connectivity to add your server to the Active Directory domain.
Find connected NICs and interface names
1 |
[cc lang="powershell"]Get-NetAdapter[/cc] |
Configure IP address
1 |
[cc lang="powershell"]New-NetIPAddress -InterfaceAlias "NIC1" -IPAddress 10.20.0.141 -AddressFamily IPv4 -PrefixLength 24 -DefaultGateway 10.20.0.1[/cc] |
Configure DNS Servers
1 |
[cc lang="powershell"]Set-DnsClientServerAddress -InterfaceAlias "NIC1" -ServerAddresses 10.20.0.133[/cc] |
Configure the suffix search list
1 |
[cc lang="powershell"]Set-DnsClientGlobalSetting -SuffixSearchList corp.contoso.com[/cc] |