#杂七杂八常识 win+R”打开运行窗口,在窗口中输入cmd.exe /c “echo off | clip” 清空剪贴板 ``` shell cmd.exe /c “echo off | clip” ``` ![[Pasted image 20250219153213.png]] 或者,可以提前新建好一个.bat脚本,重启一下剪切板,相关服务即可 ``` shell @echo off :: Auto request admin privileges >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" if '%errorlevel%' NEQ '0' ( echo Requesting administrator privileges... powershell Start-Process -FilePath "%0" -Verb RunAs exit /b ) echo Fixing clipboard issues... echo ---------------------------- :: 1. Stop related services net stop cbdhsvc_XXXXX /y >nul 2>&1 :: Stop clipboard history service net stop ClipSVC /y >nul 2>&1 :: Windows 10/11 clipboard service sc config ClipSVC start= auto >nul :: Ensure service auto-start :: 2. Terminate related processes taskkill /f /im dwm.exe >nul 2>&1 :: Desktop Window Manager taskkill /f /im ctfmon.exe >nul 2>&1:: Text Input Service taskkill /f /im rdpclip.exe >nul 2>&1:: RDP Clipboard Process :: 3. Restart core services echo Restarting clipboard service... net start ClipSVC >nul timeout /t 2 /nobreak >nul :: 4. Restart File Explorer taskkill /f /im explorer.exe >nul 2>&1 start explorer.exe echo Operation completed. Please test clipboard functionality. pause ``` 排查到,是因为这个软件导致的,系统剪切板不可用 ![[Pasted image 20250221151300.png]]