HI all
I was wondering if someone might be able to help me recently deployed some new domain controllers and we are looking at repointing our servers to the new DNS servers.
I have tried to run the following, pulling the server names from a text file.
$Computers = Get-Content C:\Temp\AllServers.txt
ForEach ($Computer in $Computers)
{
Get-NetAdapter | Set-DNSClientServerAddress ServerAddresses (10.0.0.10,10.0.0.11) -Verbose
}
now it says its completed with out issue but it actually only updates the dns on the server its ran from
could someone help
Chris