Skip to content

Issue with Search settings on Win11 23H2 #2

@blinkblinktwo

Description

@blinkblinktwo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions