查看IP(包含DNS信息)|ipconfig /all
设置网卡"本地连接"静态IP地址为192.168.1.8子网掩码255.255.255.0网关192.168.1.1|netsh interface ip set address 本地连接 static 192.168.1.8 255.255.255.0 192.168.1.1
设置网卡"本地连接"动态获取IP地址|netsh interface ip set address 本地连接 dhcp
设置网卡"本地连接"静态DNS首选为218.85.157.99|netsh interface ip set dnsserver 本地连接 static 218.85.157.99
设置网卡"本地连接"静态DNS备用为218.85.152.99|netsh interface ip add dns 本地连接 218.85.152.99 index=2
设置网卡"本地连接"动态获取DNS|netsh interface ip set dnsserver 本地连接 dhcp
测试本地TCP/IP是否正确安装|ping 127.0.0.1
防火墙允许ping|netsh firewall set icmpsetting 8
防火墙禁用ping|netsh firewall set icmpsetting 8 disable
查看系统有哪些用户|net user
新建用户mike密码aA1|net user mike aA1 /add
查看系统有哪些组|net localgroup
新建组manager|net localgroup manager /add
将mike用户加入manager组|net localgroup manager mike /add
将mike用户移除manager组|net localgroup manager mike /del
授权用户mike管理员权限|net localgroup administrators mike /add
删除用户mike|net user mike /del
删除组manager|net localgroup manager /del
修改用户user1的密码为Abc123|net user user1 Abc123
禁用用户mike|net user mike /active:no
启用用户mike|net user mike /active:yes
查看用户mike的信息|net user mike
注销登录|logoff
打开本地用户和组|lusrmgr.msc