Good. Wait. You are talking one same thing, or two different things? Giving examples is better for easy understanding.
OK. You are a good teacher now. But I need testings. If not working, you return to bad teacher. OK, test it right away. (If it worked, all scripts need renewal... not an easy job.) Code: [HKEY_LOCAL_MACHINE\1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1] "InstallClient"="DISM Package Manager Provider" "InstallName"="Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1.mum" "InstallLocation"="\\\\?\\d:\\os\\out\\Temp\\amd64fre\\4hbhcfxl.jug\\Client_staged\\" "CurrentState"=dword:00000050 "SelfUpdate"=dword:00000000 "Visibility"=dword:00000002 "InstallTimeHigh"=dword:01d44cc6 "InstallTimeLow"=dword:d5e5bf5d "InstallUser"="S-1-5-21-397955417-626881126-188441444-4882392" Code: C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1 Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.17763.1 Processing 1 of 1 - An error occurred - Windows-Defender-Client-Package Error: 0x80070005 Error: 5 Access is denied. The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log C:\WINDOWS\system32>
Did you test Windows Defender? It definitely failed many times in a row (for me). Code: Microsoft Windows [版本 10.0.19042.867] (c) 2020 Microsoft Corporation。著作權所有,並保留一切權利。 C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1 Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.17763.1 Processing 1 of 1 - Removing package Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1 [==========================100.0%==========================] The operation completed successfully. C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1 Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.17763.1 Processing 1 of 1 - An error occurred - Windows-Defender-Client-Package Error: 0x80070005 Error: 5 Access is denied. The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log C:\WINDOWS\system32> Code: C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Windows-Defender-Client-Package~31bf3856ad364e35~amd64~~10.0.17763.1 Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.17763.1 Processing 1 of 1 - An error occurred - Windows-Defender-Client-Package Error: 0x80070005 Error: 5 Access is denied. The DISM log file can be found at C:\WINDOWS\Logs\DISM\dism.log C:\WINDOWS\system32>dism /english /image:z:\1 /Remove-package /Packagename:Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1 Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.17763.1 Processing 1 of 1 - Removing package Package_for_KB5000859~31bf3856ad364e35~amd64~~17763.1812.1.1 [==========================100.0%==========================] The operation completed successfully. C:\WINDOWS\system32>
Show it again like I showed at #2166: 1. Registry status 2. Remove with Command Prompt (or show the modification to the script if you did. If the script has not been modified for the registry status, it is deleted by the script, not by the CurrentStatus 50.)
Teacher, you have time to look at the Flash update package (KB4580325) and uninstall package (KB4577586). The fundamental difference between KB4580325 and KB4577586 is amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.606_none_09c46c9cc83e6ba3.manifest. This may become an uninstall method for Component (without a separate package).
I don’t know the details, I just observed and found this rule (18362 and later versions, new upgrade strategy)
modified manifest: capture = OK Code: C:\WINDOWS\system32>dir /b D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867 /s D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44 D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44.manifest D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_microsoft-windows-c..equired-deployment0_31bf3856ad364e35_10.0.19041.867_none_57ae35c052515b97.manifest D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\update.cat D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\update.mum D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44\activex.vch D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44\Flash.ocx D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44\FlashUtil_ActiveX.dll D:\PackExtractor\Flash\Microsoft-Windows-Client-Desktop-Required-Package~31bf3856ad364e35~amd64~~10.0.19041.867\amd64_adobe-flash-for-windows_31bf3856ad364e35_10.0.19041.1_none_e190f18a08ed1a44\FlashUtil_ActiveX.exe C:\WINDOWS\system32> install = Not OK remove = Not OK update = Not OK (Official or Customized) https://forums.mydigitallife.net/th...struction-project.80939/page-108#post-1652124
Add this to the script: Code: reg add "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%i" /v CurrentState /t REG_DWORD /d 80 /f >nul 2>nul But this is good for the SSU package only when the image has not been reset base.
FYI only: Code: D:\PackExtractor>for /F %x in ('findstr /i . Remove.txt 2>nul') do if exist z:\1\Windows\servicing\Packages\%x.mum dism /english /image:z:\1 /Remove-package /Packagename:%x D:\PackExtractor>if exist z:\1\Windows\servicing\Packages\Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum dism /english /image:z:\1 /Remove-package /Packagename:Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0 Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.15063.0 Processing 1 of 1 - Removing package Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0 [==========================100.0%==========================] The operation completed successfully. D:\PackExtractor>if exist z:\1\Windows\servicing\Packages\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum dism /english /image:z:\1 /Remove-package /Packagename:Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.15063.0 Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.15063.0 Processing 1 of 1 - Removing package Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.15063.0 [==========================100.0%==========================] The operation completed successfully. D:\PackExtractor>if exist z:\1\Windows\servicing\Packages\Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum dism /english /image:z:\1 /Remove-package /Packagename:Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.15063.0 Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.15063.0 Processing 1 of 1 - Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.15063.0 [==========================100.0%==========================] The operation completed successfully. D:\PackExtractor>if exist z:\1\Windows\servicing\Packages\Microsoft-Windows-ProfessionalEducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum dism /english /image:z:\1 /Remove-package /Packagename:Microsoft-Windows-ProfessionalEducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0 Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.15063.0 Processing 1 of 1 - Removing package Microsoft-Windows-ProfessionalEducationEdition~31bf3856ad364e35~amd64~~10.0.15063.0 [==========================100.0%==========================] The operation completed successfully. D:\PackExtractor>pause Press any key to continue . . .