本帖最后由 flashercs 于 2020-6-6 17:58 编辑
回复 13# hentai87
你可以reg load 一次就行 修改完后再unload- reg load HKLM\SOFT "%MT%\Windows\System32\config\software"
- for /f "delims=" %%i in (Remove.txt) do (
- for %%A in ("%MT%\Windows\servicing\Packages\%%i~*.mum") do (
- echo %%~nA
- reg add "HKLM\SOFT\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%~nA" /v Visibility /t REG_DWORD /d 1 /f
- reg delete "HKLM\SOFT\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%~nA\Owners" /f
- %dism% /NoRestart /image:%MT% /Remove-package /Packagename:"%%~nA"
- )
- )
- reg unload HKLM\SOFT
- pause
复制代码
|