This is interesting. Could you please elaborate? Like this? List.txt Code: Microsoft-Windows-DirectoryServices-ADAM-Client-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-Client-EmbeddedExp-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-Client-ShellLauncher-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-MultiPoint-Connector-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-IIS-WebServer-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-OneCore-WebService-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-OneCore-WebService-WOW64-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-RAS-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-RasCMAK-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-RasRip-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-Telnet-Client-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-TFTP-Client-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-WinOcr-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Media-Ocr-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Media-Ocr-WOW64-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-LanguageFeatures-OCR-zh-tw-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-NFS-ClientSKU-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-Identity-Foundation-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-DirectPlay-OC-package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-DataCenterBridging-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-SNMP-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Microsoft-Windows-SimpleTCP-Package~31bf3856ad364e35~amd64~~10.0.14279.1000 Remove-Package-Online.cmd Code: @echo off pushd "%~dp0" for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /NoRestart /Online /Remove-package:%SystemRoot%\servicing\Packages\%%i.mum pause Or Code: @echo off pushd "%~dp0" for /f %%i in ('findstr /i . List.txt 2^>nul') do dism /NoRestart /Online /Remove-package /Packagename:%%i pause
I mean like multi thread all at once when removing packages online its make pending.xml file to remove the packages after restart which doing it all at once from one dism process... from image its remove the packages one by one and create new dism process every time and losing time maybe with start /wait or using sleep and run all at once mb it will save more time
Then it suggests Multi-Threads at a time? Unlike DISM, NTLite removes packages BEFORE a restart, I reckon. But it still takes long time...
Multi-Process but its too demanding, i guess its will be ok for ramdisk even with SSD NTLite takes time ?
Yes. I am a legal NTLite user. OK. Ramdisk. I have 24 GB Ram. But how to run in multi-threads? start /wait? I do not think so.
Hey, it is impossible with DISM. Because it would not allow multi-threads. Am I wrong? That way will remove all sub-packages too, no?
Yes that why im asking mb there a way to use dismhost instant of dism cant make external powershell.exe process from powershell_ise
I am running MSMG Toolkit in Primo Ramdisk Server Edition with 18 GB. It is fast... I can realize why MSMG Toolkit takes long time in removing multiple packages. For each package, it 1. mounts registry 2. takes ownership 3. sets values, and removes owners 4. unmounts registry But I dare not feedback to him. I am afraid that it might be offensive. Yeah, Ramdisk is far quicker...
i run powershell_ise as trustedinstaller it reduce the steps mb he doesnt use /ScratchDir:. parameter?
Yes, he does. Code: set DismScratch=%~dp0Temp\DISM set "DismFormat=/English /ScratchDir:%DismScratch% /LogPath:%~dp0Logs\Dism.txt /LogLevel:3 /NoRestart"
this should work Code: $s | foreach { "start dism /ScratchDir:. /image:temp /Remove-Package /PackageName:" + $PSItem | out-file -Append test2.bat } nope not working :\ i guess the error while opening lots of dism at once saying it cant be serviced all at once
lite8, how do you use dismhost? Does it decrypt an ESD? Oh, I will have a go of it. Sorry, I can not understand the usage.