In today’s collaborative work environment, file sharing over a network should be easy and secure. Users should be able to share folders with one another without worrying about unauthorized access.
This led Microsoft to introduce password-protected sharing in Windows, an advanced security feature that lets you control who can and can’t access your computer’s shared resources. It ensures that only those with the right credentials for your computer can use its shared files and folders.
This guide will discuss enabling and disabling password-protected sharing in Windows for precise file sharing.
How to enable or disable password-protected sharing in Windows
There are different ways to enable or disable the password-protected sharing function in Windows 10/11.
📌 Prerequisites:
- Operating System: All the methods we will discuss below work on all editions of Windows 10/11.
- Administrator Privileges: You will need administrator privileges to change system-level sharing settings.
📌 Recommended deployment strategies:
Click to Choose a Method | 💻 Best for Individual Users | 💻💻💻 Best for Enterprises |
| Method 1: Via Control Panel | ✓ | |
| Method 2: Via Registry Editor | ✓ | |
| Method 3: Using a PowerShell script | ✓ | |
| Method 4: Using a .reg file | ✓ |
💡 Note: All of the following methods work on both Windows 10 and Windows 11. The steps, settings, and registry paths are the same across both operating systems.
Method 1: Enable or disable via Control Panel (GUI)
📌 Use Case: This method is recommended for individual users or a small office setup with a few computers involved.
- Open Control Panel > Network and Sharing Center
- In the left pane, click Change advanced sharing settings, a new window will open. Expand All Networks.
- Scroll down to Password protected sharing and select one of the following:
- Turn on password-protected sharing = Only users with credentials can access shared resources.
- Turn off password-protected sharing = Anyone can access shared resources without credentials.
Method 2: Configuring via Registry Editor
📌 Use Case: This method is suitable for advanced users and IT administrators managing a small fleet of Windows devices manually.
- Press Win + R, type regedit, and click Enter.
- Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
- Create or modify a DWORD (32-bit) value:
- Name: LimitBlankPasswordUse
- Value:
- 1 = Require a password for remote access
- 0 = Allow network access without a password
- Restart your computer to apply the changes.
Method 3: PowerShell script for automation
📌 Use Case: This method is ideal for scalable configuration using scripts or device management tools.
Enable password-protected sharing:
Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Control\Lsa” `
-Name “LimitBlankPasswordUse” -Value 1
Disable password-protected sharing:
Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Control\Lsa” `
-Name “LimitBlankPasswordUse” -Value 0
Method 4: Running a .reg File
📌 Use Case: This method is effective in scenarios where IT administrators need to offer remote support to end users.
To enable password-protected sharing:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
“LimitBlankPasswordUse”=dword:00000001
To disable password-protected document sharing:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
“LimitBlankPasswordUse”=dword:00000000
Save the text as a .reg file and run it with admin rights to apply the changes.
⚠️ Things to look out for
Consider these risks before you enable or disable your system’s password-protected sharing.
| Risks | Potential consequences | Reversal |
| Security implications | Turning off password-protected document sharing will increase your risk of unauthorized access and data breaches. | Only turn off the feature on isolated, trusted networks. |
| Conflict on SMB file and printer sharing | Turning on the password-protected sharing function in your Windows 11 system can affect the flow of SMB file and printer sharing within your network. | Reverse the changes using your desired method. |
| Incorrect registry path or name | A typo in the registry path or DWORD name can cause system instability. | Back up the registry before making any changes. |
There are also additional limitations you must consider when following this guide.
- Implementing changes in workgroup environments. Changing protected sharing in workgroup environments requires manual account and password management on each machine.
- Configuring domain settings. Password-protected sharing in a domain environment is typically enforced by domain policies, meaning you need proper administrative rights to change them.
Why manage the password-protected sharing feature in Windows?
Learning how to manage the password-protected sharing feature in Windows 11 is important because:
- It enforces strict user authentication protocols for file and printer sharing.
- It allows anonymous guest access in private or isolated networks.
- It supports network sharing for public folders and media streaming.
- It ensures compliance with modern cybersecurity strategies in organizational environments.
Strengthen your security posture with Windows password-protected sharing
Managing the password-protected sharing function in Windows is relatively easy. Whether you want to enhance user experience by allowing guest access or enforce new authentication protocols, there are built-in tools you can use to configure its settings to your needs and goals. The key here is to give the right level of access to the right people.
Related topics:
