We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4fd727 commit d2b77cfCopy full SHA for d2b77cf
Vagrant/scripts/join-domain.ps1
@@ -12,6 +12,9 @@ $adapters = Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object {$_.I
12
# Specify the DC as a WINS server to help with connectivity as well
13
$adapters | ForEach-Object {if (!($_.Description).Contains("Hyper-V")) {$_.SetDNSServerSearchOrder($newDNSServers); $_.SetWINSServer($newDNSServers, "")}}
14
15
+# Ensure dns preference on domain interface through higher interface metrics # fix #801
16
+Get-NetIPAddress | Where-Object { $_.IPAddress -match "192.168.56." } | Set-NetIPInterface -ifIndex { $_.InterfaceIndex } -InterfaceMetric 10
17
+
18
Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Now join the domain..."
19
$hostname = $(hostname)
20
$user = "windomain.local\vagrant"
0 commit comments