hosts文件丢失怎么办?恢复电脑hosts文件方法
时间:2022-06-04 05:51:33
hosts文件丢失怎么办?最近有不少用户在使用电脑的时候发现自己在上网的时候总是遇到一些问题,通过检查是hosts文件丢失造成,下面小编就带着大家一起看看怎么恢复电脑中的hosts文件吧!
恢复电脑hosts文件方法
1、在任务栏的搜索框输入
cmd
鼠标右键点击“命令提示符”,选择“以管理员身份运行”。
![hosts文件丢失怎么办?恢复电脑hosts文件方法](https://img.aspxhome.com/file/2023/6/a321304_0.png)
2、将出现“用户账户控制”界面,点击“是”。
![hosts文件丢失怎么办?恢复电脑hosts文件方法](https://img.aspxhome.com/file/2023/6/a321304_1.png)
3、在“管理员:命令提示符”中输入:
01for /f %P in ('dir %windir%\WinSxS\hosts /b /s') do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P
复制代码
for /f %P in ('dir %windir%\WinSxS\hosts /b /s') do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P
标签:hosts文件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10微软商店下载错误0xC8000442怎么办?
2023-11-25 20:50:42
![](https://img.aspxhome.com/file/2023/26/a221094_0s.png)
Windows 10新版全力优化Edge浏览器:速度狂飙!
2023-03-06 20:48:02
![](https://img.aspxhome.com/file/2023/4/a306061_0s.jpg)
win10笔记本无法打开falogin.cn怎么办?
2022-04-27 23:50:48
![](https://img.aspxhome.com/file/2023/4/a313491_0s.jpg)
如何判断苹果手机维修店是否有官方授权?
2023-03-24 10:28:34
![](https://img.aspxhome.com/file/2023/0/a198080_0s.jpg)
icqlite.exe进程的详细介绍 icqlite进程的查询 作用是什么
2023-05-27 16:29:56
Excel中如何插入复选框
2022-05-06 16:47:13
![](https://img.aspxhome.com/file/2023/6/a140776_0s.jpg)
Win10无法设置存储位置提示错误0x80070002如何解决?
2023-03-29 10:28:28
![](https://img.aspxhome.com/file/2023/0/52990_0s.png)
Win11重置系统和重装系统有什么区别?
2022-01-21 02:21:55
![](https://img.aspxhome.com/file/2023/30/a269099_0s.jpg)
excel03自动换行的方法
2022-07-21 16:58:57
wps文档怎么转换为word文档
2022-11-17 13:49:16
![](https://img.aspxhome.com/file/2023/9/a184169_0s.png)
excel隐藏公式的教程
2022-09-20 22:23:52
关于 iOS 13 “重新排列 App”功能的一些小细节
2022-05-29 00:02:37
![](https://img.aspxhome.com/file/2023/5/a197235_0s.jpg)
电脑主板右下角指示灯亮了怎么回事
2023-10-10 05:14:03
![](https://img.aspxhome.com/file/2023/2/a287472_0s.png)
word2007页眉怎么设置不同
2023-08-18 20:56:15
微软:批量许可用户要等到8月1日升级Win10企业版和教育版
2022-12-18 05:20:21
![](https://img.aspxhome.com/file/2023/28/a248795_0s.jpg)
Win11麦克风有回音怎么消除 Win11麦克风回声怎么调
2023-10-19 12:00:11
![](https://img.aspxhome.com/file/2023/27/a235664_0s.jpg)
excel2016表格中怎么制作数据透视表?
2023-08-27 14:17:52
msi微星冲锋坦克 Pro GP76HX笔记本安装win10系统教程
2023-12-06 18:06:35
![](https://img.aspxhome.com/file/2023/30/a266400_0s.png)
Win10 build 14946不兼容较大的游戏作品 堪称游戏玩家噩梦
2022-02-15 06:55:29
win10更新2004蓝屏重启解决方法_win10更新2004蓝屏重启彻底解决方法
2023-02-25 10:10:41
![](https://img.aspxhome.com/file/2023/2/a289482_0s.jpg)