Skip to content

Instantly share code, notes, and snippets.

@omergorur
Last active January 23, 2026 15:40
Show Gist options
  • Select an option

  • Save omergorur/369abc366fc7579c566a4a1f2010ec43 to your computer and use it in GitHub Desktop.

Select an option

Save omergorur/369abc366fc7579c566a4a1f2010ec43 to your computer and use it in GitHub Desktop.
Enable Guest Access to Samba Shares on Windows 11 24H2
Set-SmbClientConfiguration -RequireSecuritySignature $false
Set-SmbClientConfiguration -EnableInsecureGuestLogons $true
@omergorur
Copy link
Author

Enable Guest Access to Samba Shares on Windows 11 24H2

Issue:

Starting with Windows 11 24H2, Microsoft has disabled guest access to Samba (SMB) shares by default for security reasons. If you attempt to connect to a guest (passwordless) Samba share, you may receive an error such as:

"You can't access this shared folder because your organization's security policies block unauthenticated guest access."

Solution:

To re-enable guest access to Samba shares, open PowerShell as Administrator and run the following commands:

Set-SmbClientConfiguration -RequireSecuritySignature $false
Set-SmbClientConfiguration -EnableInsecureGuestLogons $true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment