I have the following script. It gives an overload error. Basically I need to set the WINS address to 3 different IP addresses on all my Servers. If I just use 2 ip's it works great but then I would have to add the third ip on each server.
Can someone help out?
$computer = get-content C:\servers.txt
$NICs = Get-WMIObject Win32_NetworkAdapterConfiguration -computername $computer |where{$_.IPEnabled -eq “TRUE”}
Foreach($NIC in $NICs) {
$NIC.SetWINSServer("xx.xx.xx.xx", "xx.xx.xx.xx", "xx.xx.xx.xx")
}