I really think you should put removing search capability from "all" and put it somewhere else (in to customize?). I accidentally removed everything without paying much attention, didn't expect your tool to complete break searching functionality from start menu.
That's why the Cortana and other important components are placed under Advanced Components and not in System Apps menu, so that people can manually choose what they want. There's already one under Customize section which disables the Cortana but not the Search.
Easiest fix: pay attention next time. I'm kidding, lol. It has happened to me as well. Now I always keep the track of steps I've taken in notepad to avoid such circumstance.
If you use something as simple as open shell the search function comes back. So the search function is really still there.
@MSMG, as I mentioned in one of my previous posts, I've read that in 1903 release search function will be separated and independent from Cortana. Can you confirm or deny?
If that list is out-of-date, would you be able to supply me one that's current for either v1809 or v1903?
I didn't get any of these errors while opening/using the gpedit.msc, better use the latest version or wait for newer version.
That's what the MS has stated but need to see whether they have separated them just visually or under the hood too completely.
I meant a lot of users are looking for an easy way to make a bare bones Windows 10 but presumably most would like to keep the searching ability (in start menu and in settings) All those Advanced Components are all right to remove but I really think you should exclude search from all, could you? I know that it's possible to do it one by one, but that's not the point of a great tool, which yours is
It's not that easy, the Windows Search function and Cortana are a single program/service/whatever in the Windows 10 operating system, meaning that you can't remove one without removing the other.
Have you tried just switching over to a start menu replacement? The search function magically reappears and works like it never left.
Do what I do to create homebrew ISOs, mod the script at remove all function easily by deleting the lines of components you want to keep. Keep in mind that there are two references, one for single index and one for multiple indexes. Search for "if "%Component%" equ "WindowsApps", lines 18594 and 18786. Then use the remove all function as usual. If you don't want to remove lines, use the REM in front of the line you don't want to be executed.
Many asked for Package List support for ToolKitHelper.exe, I'm trying out the possibilities to use the Package List for both DISM and ToolKitHelper.exe and hope to implement it in future versions of Toolkit. If you just want to remove the components, you can also directly use the ToolKitHelper.exe in a batch file with components of your choice and run it using NSudo. ToolKitHelper.exe <Image-Mount-Path> <Component-Name>