win10´ò²»¿ª×é²ßÂÔ½â¾ö·½·¨£º
1¡¢Ê×Ïȸ´ÖÆÏÂÃæµÄ´úÂëµ½Îı¾ÎĵµÖУ»
@echo off
pushd "%~dp0"
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientExtensions-Package~3*.mum >List.txt
dir /b C:\Windows\servicing\Packages\Microsoft-Windows-GroupPolicy-ClientTools-Package~3*.mum >>List.txt
for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /online /norestart /add-package:"C:\Windows\servicing\Packages\%%i"
pause
2¡¢È»ºó½«Æä±£´æΪ.cmd»ò.batµÄÎļþ£¬È»ºóÔÙÓÒ¼üÒÔ¹ÜÀíÔ±Éí·ÝÔËÐоͿÉÒÔÀ²¡£
ÐèҪעÒâµÄÊÇ£¬ÔÚÄãн¨¼Çʱ¾µÄʱºò£¬¿´¿´ÓÐûÓкó׺ÏÔʾ³öÀ´£¬±ÈÈç123.txt£¬Èç¹û²»ÏÔʾºó׺£¬ÇëÏÈÔÚϵͳÖÐÉèÖÃÏÔʾºó׺£¬È»ºóÔÙ±£´æÐÞ¸ÄÎļþºó׺Ãû¡£
ÐÞ¸´Íê³Éºó¾Í¿ÉÒÔ½â¾öÎÊÌ⣬³É¹¦µÄÔÚwin10ϵͳÖдò¿ªgpedit.msc£¡
·ÖÏíµ½£º