Windows Server · Risk: High · Documentation Verified
Last verified: 2026-10-26
Microsoft WindowsSearch reference: Modifies values that control Windows Search. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Set-WindowsSearchSetting. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / WindowsSearch · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-EnableMeteredWebResultsSetting
Indicates whether Windows Search displays web results and suggestions while using metered connections. Specify a value of $True to display web results and suggestions over metered connections or a value of $False to exclude web results and suggestions. Do not specify a value for this parameter if the value of the *EnableWebResultsSetting* parameter is $False.
-EnableWebResultsSetting
Indicates whether Windows Search displays web results and suggestions. Specify a value of $True to display web results and suggestions or a value of $False to exclude web results and suggestions.
-SafeSearchSetting
Specifies a SafeSearch setting for Window Search. The acceptable values for this parameter are: - Off. Windows Search does not remove adult content from the results. - Moderate. Windows Search excludes adult images and videos, but not text, from the results. - Strict. Windows Search excludes adult images, videos, and text from the results.
-SearchExperienceSetting
Specifies a Windows Search experience setting. The acceptable values for this parameter are: - PersonalizedAndLocation. Personalize Windows Search and other Microsoft experiences by using search history, some Microsoft account information, and specific location of the user. - Personalized. Personalize Windows Search and other Microsoft experiences by using search history and some Microsoft account information, but do not use specific location of the user. - NotPersonalized. Do not personalize Windows Search and other Microsoft experiences or use specific location of the user.
Prerequisites
Windows with the WindowsSearch module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.
This command allows Windows Search to use search history, but not the specific location of the user, to personalize results. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.