加上引号,
runas /user:administrator "netsh interface ip set address "以太网" static 192.168.130.2 255.255.255.0 192.168.130.1 gwmetric=1"
或者把netsh做成批处理文件。
runas /u:adminsitrator "cmd /c netsh interface ip set address \"本地连接\" static 192.168.1.2 255.255.255.0 192.168.1.1 gwmetric=1"
runas 后面貌似应该是/user:
我是win7系统。