问题描述
嗨
我需要在vb中使用cmd行使用netsh cmd更改服务器ip,subnet,gateway,dns,有人为远程登录系统提供netsh cmd(使用用户名和密码)。
之前,Netsh可以在所有操作系统中使用(win7,win8,win 8.1)或仅限于某些操作系统。
netsh -r Admin-pc -u Admin-pc\Administrator -p XXXXX interface ip set address name =Local Area ConnectionStatic 192.168.0.2 255.255.255.0 192.168.0.1
如果我在cmd提示符下运行Windows Server 2008(Windows Server R Standard),它会显示错误消息,就像找不到某个命令行一样。
那么请给出正确的netsh cmd行以及所有操作系统的netsh支持吗?
问候
Aravind
Hi
I need to change that server ip,subnet,gateway,dns using netsh cmd using cmd line in vb,somebody give netsh cmd for remote login system(using username and password).
Before,Netsh can use in all OS (win7,win8,win 8.1) or restricted to some OS.
netsh -r Admin-pc -u Admin-pc\administrator -p XXXXX interface ip set address name="Local Area Connection" Static 192.168.0.2 255.255.255.0 192.168.0.1
if i run in Windows Server 2008(Windows Server R Standard)in cmd prompt,it show error msg like some command line not found.
So pls give correct netsh cmd line and also netsh support for all os ?
Regards
Aravind
推荐答案
这篇关于如何使用netsh命令配置ip config?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!