Update create-domain.ps1
This commit is contained in:
		| @@ -45,7 +45,7 @@ if ((gwmi win32_computersystem).partofdomain -eq $false) { | |||||||
|     -SysvolPath "C:\Windows\SYSVOL" ` |     -SysvolPath "C:\Windows\SYSVOL" ` | ||||||
|     -Force:$true |     -Force:$true | ||||||
|  |  | ||||||
|   $newDNSServers = "8.8.8.8", "4.4.4.4" |   $newDNSServers = "127.0.0.1", "8.8.8.8", "4.4.4.4" | ||||||
|   $adapters = Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object { $_.IPAddress -And ($_.IPAddress).StartsWith($subnet) } |   $adapters = Get-WmiObject Win32_NetworkAdapterConfiguration | Where-Object { $_.IPAddress -And ($_.IPAddress).StartsWith($subnet) } | ||||||
|   if ($adapters) { |   if ($adapters) { | ||||||
|     Write-Host Setting DNS |     Write-Host Setting DNS | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Chris Long
					Chris Long