Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Help Adding 3 WINS Addresses

$
0
0

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")
}


Viewing all articles
Browse latest Browse all 6937

Trending Articles