在cmd中的几条命令

在cmd中的几条命令,第1张

概述查看接口:netsh interface show interface 自动获取ip:netsh interface ip set address "本地连接" dhcp ipconfig /all dns服务: netsh interface ip set dnsservers "本地连接" static dns地址 设置本机dns备用 netsh interface ip add dns na 查看接口:netsh interface show interface
自动获取ip:netsh interface ip set address "本地连接" dhcp ipconfig /all
dns服务:
netsh interface ip set dnsservers "本地连接" static dns地址
设置本机dns备用
netsh interface ip add dns name = “本地连接” addr = 192.168.1.1
自动获取dns:
netsh interface ip set dnsservers "本地连接" DHCP
改主机名:netdom rename computer localhost /newname: "abck"

查看ip地址:ipconfig
/all 详细信息
/release 丢弃释放ip
/renew 重新获取
/flushdns 刷新dns缓存

设置管理员密码
net user administrator 123123
创建用户zhangsan密码为pddpdd
net user zhangsan pddpdd /add
删除用户lisi
net user lisi /del
激活用户:net user wangwu /active:yes
查看当前登录的用户
net user 或whoami
创建组:net localgroup test1 /add
删除组:net localgroup test1 /del
添加组用户:net localgroup test1 lisi /add
删除组用户:net localgroup test1 lisi /del

查看本地监听的服务netstat -anPing命令telent命令

总结

以上是内存溢出为你收集整理的在cmd中的几条命令全部内容,希望文章能够帮你解决在cmd中的几条命令所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1082968.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存