## 新安装系统后的必要完优化 1. 关闭系统保留空间 ```cmd DISM.exe /Online /Set-ReservedStorageState /State:Disabled ``` 2. 开启快速启动,并调整休眠文件大小 ```cmd POWERCFG -H -SIZE 40 ``` 3. 调整RE环境 ```CMD reagentc /info ``` 4. 设置wd保护历史保留 ```powershell Set-MpPreference -ScanPurgeItemsAfterDelay 1 ``` 5. 清理winsxs ``` Dism.exe /Online /Cleanup-Image /StartComponentCleanup ``` 执行以上命令即可进行安全的清理。清理完成可以再次执行 ``` Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore ``` ``` HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-User Device Registration/Admin enable=0 ``` 1. 清理日志 ```powershell Get-EventLog -LogName * | where {$_.Entries.Count -gt 0} | foreach {Clear-EventLog $_.Log} ``` 2.lsa ``` 计算机\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-System\{199fe037-2b82-40a9-82ac-e1d46c792b99} ``` 50565209 ```html
学的不仅是技术,更是梦想!!!