This repository has been archived on 2022-01-12. You can view files and clone it, but cannot push or open issues or pull requests.
Windows/containers.bat

7 lines
318 B
Batchfile

pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt
for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del containers.txt
Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL
pause