I have not been able to find nothing on the netsh command shell documentation for changing only the netmask configuration without modifying rest of it (ip, gateway, DNSs and so on).
The closest I know about is this one, that changes too IP and gateway:
netsh interface ip set address name=”Local Area Connection” static 192.168.0.1 255.255.255.0 192.168.0.254
Before attemping some more serious scripting about the problem, is there any way, like using powershell, power tools, wmic, or at least with some NirSoft, PSTools or similar command-line utility?
Thanks.