Windows 11 Case Sensitive Search: How to Enable It
In this article
Yes, you can enable case-sensitive search in Windows 11 File Explorer, though it's not enabled by default. This allows you to find files based on capitalization, distinguishing between "Document.txt" and "document.txt". The built-in Windows search engine is generally case-insensitive, meaning it treats uppercase and lowercase letters the same. To enable case sensitivity, you'll need to use the command prompt to modify a registry setting. Proceed with caution, as incorrect registry edits can cause system instability. Back up your registry before making any changes.
What You'll Need
- A Windows 11 computer
- Administrator privileges
- A text editor (like Notepad)
Step-by-Step
- Open the Command Prompt as Administrator: Click the Start button, type "cmd", right-click on "Command Prompt" in the search results, and select "Run as administrator". A User Account Control (UAC) prompt may appear; click "Yes" to proceed.
- Navigate to the Search Template Folder: In the Command Prompt window, type the following command and press Enter:
cd HKLM\Software\Microsoft\Windows\CurrentVersion\SearchThis command changes the current directory to the registry key that controls search behavior. - Create the RfssEnabled Key (if it doesn't exist): Type the following command and press Enter:
reg add RfssEnabled /v Enabled /t REG_DWORD /d 0 /fThis command checks if the `RfssEnabled` key exists. If it doesn't, it creates it. The `/v Enabled` specifies the value name as 'Enabled', `/t REG_DWORD` sets the data type to a DWORD (32-bit integer), `/d 0` sets the initial value to 0, and `/f` forces the creation without prompting for confirmation. - Modify the RfssEnabled Value: Type the following command and press Enter:
reg edit -s RfssEnabledThis command opens the Registry Editor with the RfssEnabled key selected. - Change the "Enabled" Value to 1: In the Registry Editor window, double-click on the "Enabled" value in the right pane. A dialog box will appear. Change the "Value data" field from "0" to "1". Click "OK". This setting now enables case-sensitive search.
- Close the Registry Editor and Command Prompt: Close both the Registry Editor and the Command Prompt windows.
- Restart File Explorer (Important): The changes won't take effect until you restart File Explorer. The easiest way to do this is to restart your computer. Alternatively, you can restart File Explorer through Task Manager:
- Press Ctrl + Shift + Esc to open Task Manager.
- Click on "More details" if you see the simplified view.
- Under the "Processes" tab, find "Windows Explorer".
- Right-click on "Windows Explorer" and select "Restart".
Common Mistakes
- Not Running Command Prompt as Administrator: The commands require administrator privileges to modify the registry. If you don't run Command Prompt as administrator, the commands will fail silently.
- Incorrect Registry Path: Ensure you navigate to the correct registry key (`HKLM\Software\Microsoft\Windows\CurrentVersion\Search`). A typo in the path will prevent the command from working.
- Incorrect Value Data: The "Enabled" value must be set to "1" to enable case-sensitive search. Setting it to any other value (including 0) will disable it.
- Forgetting to Restart File Explorer: The changes to the registry do not automatically apply. Restarting File Explorer (or your computer) is essential for the new setting to take effect.
- Editing the Wrong Registry Key: There are many registry keys related to search. Make sure you are editing the `RfssEnabled` key specifically.
Tips
- Back Up Your Registry: Before making any changes to the registry, it's highly recommended to create a backup. This allows you to restore the registry to its previous state if something goes wrong. In Registry Editor, go to File > Export, choose a location and name for the backup file, and save it.
- Test Your Search: After restarting File Explorer, test your search by looking for files with different capitalization. For example, search for "MyDocument.txt" and then "mydocument.txt" to confirm that the search is case-sensitive.
- Revert to Case-Insensitive Search: To revert to the default case-insensitive search, change the "Enabled" value back to "0" in the Registry Editor and restart File Explorer.
- Combine with Wildcards: Use wildcards like * and ? in your search queries to further refine your results. For instance, searching for "MyDoc?*.txt" will find files like "MyDoc1.txt" or "MyDocA.txt".
Troubleshooting
- Command Prompt Errors: If you encounter errors in the Command Prompt, double-check that you have typed the commands correctly and that you are running Command Prompt as administrator.
- Search Still Case-Insensitive: If the search remains case-insensitive after making the changes, ensure you restarted File Explorer (or your computer) correctly. Also, verify that the "Enabled" value is set to "1" in the registry.
- System Instability: If you experience system instability after modifying the registry, restore the registry from the backup you created earlier.
- Permissions Issues: In rare cases, you might encounter permission issues when modifying the registry. Ensure that your user account has the necessary permissions to access and modify the registry keys.
- Check for Conflicting Software: Some third-party search utilities might override the Windows search settings. Temporarily disable any such utilities to see if they are interfering with the case-sensitive search.