点击进入全屏排查屏幕亮点/坏点,按 ESC 退出。
用于 IT 远程部署软件、系统更新或大文件传输时,防止电脑自动休眠锁屏。
💡 浏览器受沙盒安全限制无法直接读取系统底层的硬件 SN。请点击上方按钮复制命令,按 Win + R 输入 cmd 粘贴回车,将查到的 SN 码填入下方:
读取中...
读取中...
读取中...
读取中...
读取中...
读取中...
🧹 系统垃圾与深度缓存清理 (Disk & Cache Cleanup)
del /f /s /q %systemroot%\temp\*.* & del /f /s /q %temp%\*.*
net stop wuauserv & net stop bits & rmdir /s /q C:\Windows\SoftwareDistribution & net start wuauserv & net start bits
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Clear-RecycleBin -Force -ErrorAction SilentlyContinue
del /f /s /q C:\Windows\Prefetch\*.*
ipconfig /flushdns & nbtstat -R & nbtstat -RR
del /f /q C:\Windows\Logs\CBS\*.log & del /f /q C:\Windows\Logs\DISM\*.log
📡 网络基础 & 连通性排查
ipconfig /release & ipconfig /renew
ping.exe -t 8.8.8.8 | Foreach {"{0} - {1}" -f (Get-Date),$_}
nslookup -type=mx domain.com 114.114.114.114
⚡ 进阶网络、端口与防火墙
netstat -ano | findstr :8080
Test-NetConnection -ComputerName outlook.office365.com -Port 443
netsh winsock reset & netsh int ip reset
netsh advfirewall set allprofiles state off
☁️ M365 / Exchange / Graph 运维
Connect-ExchangeOnline -UserPrincipalName admin@domain.com
Get-MailboxStatistics -Identity user@domain.com | Select DisplayName, TotalItemSize, ItemCount
Get-Mailbox -ResultSize Unlimited | Where-Object {$_.ForwardingSmtpAddress -ne $null} | Select UserPrincipalName, ForwardingSmtpAddress
Get-MessageTrace -SenderAddress user@domain.com -StartDate (Get-Date).AddDays(-1) -EndDate (Get-Date)
Enable-Mailbox -Identity user@domain.com -Archive
Connect-MgGraph -Scopes "User.Read.All","Directory.Read.All" ; Get-MgSubscribedSku | Select SkuPartNumber, ConsumedUnits, ActiveUnits
🖥️ Windows 系统管理 & 组策略
gpresult /h C:\gpreport.html
sfc /scannow & DISM /Online /Cleanup-Image /RestoreHealth
🛡️ Active Directory 域账号与安全 (ADUC)
Unlock-ADAccount -Identity "username"
Set-ADAccountPassword -Identity "username" -NewPassword (ConvertTo-SecureString "P@ssw0rd123" -AsPlainText -Force) -Reset ; Set-ADUser -Identity "username" -ChangePasswordAtLogon $true
Get-ADUser -Identity "username" -Properties LockedOut, AccountLockoutTime, badPwdCount | Select Name, LockedOut, AccountLockoutTime, badPwdCount
Test-ComputerSecureChannel -Verbose
setspn -Q HTTP/webserver.domain.com
💻 SCCM / MECM 客户端排查
Invoke-WMIMethod -Namespace root\ccm -Class SMS_CLIENT -Name TriggerSchedule "{00000000-0000-0000-0000-000000000021}"
Invoke-WMIMethod -Namespace root\ccm -Class SMS_CLIENT -Name TriggerSchedule "{00000000-0000-0000-0000-000000000108}"
net stop ccmexec & net start ccmexec
(New-Object -ComObject UIResource.UIResourceMgr).GetCacheInfo().GetCacheElements() | ForEach-Object { (New-Object -ComObject UIResource.UIResourceMgr).GetCacheInfo().DeleteCacheElement($_.CacheElementID) }