Skip to content

Windows基础配置

激活

#powershell执行
irm https://get.activated.win | iex

下载windows/office

https://massgrave.dev/genuine-installation-media

优化

#powershell执行
irm "https://christitus.com/win" | iex
#上面命令还能制作精简版windows11系统

批量导出IIS域名

%windir%\system32\inetsrv\appcmd list site /config /xml > c:\sites.xml

Windows优化

清理系统垃圾

# 以管理员身份运行Windows PowerShell
Cleanmgr /sageset:65535
Cleanmgr /sagerun:65535

禁用流氓启动项

Get-CimInstance -ClassName Win32_StartupCommand | Select-Object Name, Command, Location | Format-Table -AutoSize

修复系统镜像

DISM /Online /Cleanup-Image /RestoreHealth

禁用诊断追踪

Get-Service DiagTrack | Stop-Service -PassThru | Set-Service -StartupType Disabled

TOP