https://www.ntlite.com/community/index.php?forums/automated-application-deployment.7/page-4 is a good starting placeHow can I make some programs install as soon as I install Windows 10?
To configure the search icon to only display as an icon in Windows 10 using NTLite, you can follow these steps:
This will configure the search feature to only display as an icon in the taskbar in Windows 10.
- Open NTLite and load your Windows 10 installation image.
- Go to the "Components" page and scroll down to "Windows Components."
- Find "Search" and expand it.
- Uncheck the box next to "Search Box in the taskbar."
- Save your changes and build the installation image.
Huh, why is that? I assume the user profile needs to be provisioned first? Did 23H2 change something related to the searchbox?Reg key needs to be applied in Post-Setup (User):
Code:[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Search] "SearchboxTaskbarMode"=dword:00000001
That makes sense, still a bit of a bummer. Is there any way to automate adding the setting for each new user?No, because HKCU is a per-user setting (ie. Current User). It doesn't apply to other users who wasn't the first logon user.
Yes, it's obnoxious because Default User inheritance is broken for the most part. I'd imagine there's a reason why, but it's never been explain by MS, nor what's the intended workaround if you're not part of an Active Domain.
An ingenious solution! I had a feeling RunOnce would do the trick, but had no idea how to write it. Thank you.OK. I figured out a workaround that works for all new users.
Default User isn't blocked from passing through registry RunOnce commands, which are inherited by all new user profiles. So we can schedule a "reg import" command, right after you're logged on. A short script will apply our RunOnce command to Default User's NTUSER.DAT.
Now the trick is you have to be patient. RunOnce doesn't trigger exactly when your desktop appears, and you can count up to 14 Mississippi's until something changes. But wait for it.... your taskbar is magically updated!
To update your image:
1. Add the file Apply_RunOnce.bat to Post-Setup (Machine)
2. Create a new folder inside the ISO directory: \sources\$OEM$\$1\Users\Default
3. Copy a new file, named HKCU.reg, to this folder. This reg file contains all the HKCU updates you want applied to every new user account.
The delay before anything happens is annoying, but that's my best answer for now.
With Administrator, you can see a flicker where Taskbar's trying to refresh and gives up. Yes you do have to logout to see the change.Upon logon to the admin profile, none of the settings seemed to take until I signed out. Or perhaps I didn't wait long enough, but the other users' profiles all took the settings after I waited long enough. So this works plenty well enough for me. Am I supposed to put anything in the parameters box after adding the .bat file?
HKLM should take effect (in theory) if HKCU doesn't exist. But from the MS docs and online, no one appears to mention the HKLM version. Which is strange since most desktop settings of this type have HKLM/HKCU pairings.And out of curiosity, if I were to accidentally drop an HKLM key in there, am I correct to assume Windows would simply skip it? Actually, I may have just answered my own question. I had copied over a HKLM key earlier and noticed that it actually took effect after waiting long enough.