# 日常命令记录
#windows 系统修复 | |
DISM.exe /Online /Cleanup-image /Scanhealth | |
DISM.exe /Online /Cleanup-image /Restorehealth | |
sfc /scannow | |
#windows 网络修复 | |
netsh winsock reset | |
#合并 ts 文件 | |
copy /b c:\Users\hito\Downloads\*.ts d:\50.mp4 | |
#windows11 家庭版安装 Hyper-V(以下命令拷贝到 txt 文本后重命名为 bat 文件然后用管理员权限运行) | |
pushd "%~dp0" | |
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >> hyper-v.txt | |
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
del hyper-v.txt | |
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL |