-
Notifications
You must be signed in to change notification settings - Fork 6
Description
On Win11 23H3:
The set search value wasn't working for NEW users that login after the script runs, as it was using the default OS search view.
Otherwise, it seemed to set the search for existing users when only adding "SearchboxTaskbarMode" on the user REG loop through.
In: "HKLM:\Default\Software\Microsoft\Windows\CurrentVersion\Search"
"SearchboxTaskbarModeCache", with value "1", seems to need set in addition to "SearchboxTaskbarMode" to work on the default profile for new users that login.
FWIW: If anyone else was interested on the importance of "Handle.Close()" and "[gc]::Collect()":
https://dansonnenburg.wordpress.com/2022/03/22/setting-value-in-the-default-user-registry-hive/
The URL underscored the importance of using "Handle.Close()" and "[gc]::Collect()" to make sure REG changes always write and exit cleanly.
Thanks for the script.
Take care.