Win10系统优化/设置脚本

Win10系统优化/设置脚本

  用了很长时间win10了,用的过程中,发现了一些问题,关于系统基本的优化,和个人的使用习惯设置等等,做成了一个脚本,可以一键设置win10的系统设置,结合DWS对Win10的系统的优化,下面是脚本的内容,把内容复制到txt文档中,改后缀为.bat,右键以管理员方式运行,可以做相应的操作了.测试环境为win10

  Win10去掉桌面箭头


reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "%systemroot%system32imageres.dll,197" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
del "%userprofile%AppDataLocaliconcache.db" /f /q
start explorer
pause


  Win10恢复桌面箭头

reg delete "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
del "%userprofile%AppDataLocaliconcache.db" /f /q
start explorer
pause

  理论上说使用以上脚本是没有问题的,如果因为环境等出现以下问题,则相应的解决方案如下:

  访问主题-桌面图标设置-->提示: 无法访问指定设备,路径或文件.您可能没有合适的权限访问这个项目

  解决:

  win+R 输入control userpasswords2 --> 点击用户属性-->选择组成员-->选择管理员访问权限-->应用-->完成-->重启

                                                                               

原文地址:https://www.cnblogs.com/YangGC/p/9273001.html