⑴echo off
⑵pushd “%~dp”
⑶dir /b C:WindowsservicingPackagesMicrosoft-Windows-GroupPolicy-ClientExtensions-Package~*.mum >List.txt
⑷dir /b C:WindowsservicingPackagesMicrosoft-Windows-GroupPolicy-ClientTools-Package~*.mum >>List.txt
⑸for /f %%i in (‘findstr /i 。 List.txt ^>nul’) do dism /online /norestart /add-package:“C:WindowsservicingPackages%%i”