Good afternoon everyone,
I am completely stumped and have exhausted all the links Master Google has to offer on this question; so it's time to ask the experts.
In short I'm trying to add 3 IP addresses the WINS list using a script. To configure this manually using windows control panel is simple yet time consuming and I wish to avoid this due to the number of PC's that need configuring. I have added an example screenshot of what I am attempting to achieve -IP Addresses are examples. WINS LIST Screenshot
I have tried the following batch script but it only adds the last address to the wins list.
netsh int ip set winsservers "Wi-Fi" static 10.0.0.1
netsh int ip set winsservers "Wi-Fi" static 10.0.0.2
netsh int ip set winsservers "Wi-Fi" static 10.0.0.3
I've tried a variation of this script that I came across that uses an index setting for example:
netsh int ip set winsservers "Wi-Fi" static 10.0.0.1 index=0
netsh int ip set winsservers "Wi-Fi" static 10.0.0.2 index=1
netsh int ip set winsservers "Wi-Fi" static 10.0.0.3 index=2
However this returns a syntax error. I have looked for a powershell script to do the same thing but again have come up empty handed in my research.
Any assistance will be greatly appreciate.
From my comment, my syntax expectation would have been:
To learn more about the
netsh.exeexecutable, ENTER the following command examples in a Command Prompt window:netsh /?netsh interface /?netsh interface ip /?