question

Lancelotpl-3096 avatar image
0 Votes"
Lancelotpl-3096 asked SunnyQi-MSFT commented

[Windows Server 2019] Failing to connect to a shared folder

Hello,

I am trying to connect to a shared folder thorugh the "Map new network drive" option. Although checking the "Connect using different credentials" and typing correct credentials this pops up:

79744-capture.png

If I try to add it through "Add a network location", this issue pops up:

79762-capture1.png

Although I am not logging as a guest, I decided to allow guest loggins following this link: https://social.technet.microsoft.com/Forums/ie/en-US/e63f1d76-3913-4b33-85b5-e04581d59f8b/windows-server-2019-smb-share?forum=winserverfiles

After modifying the registry and the group policy, there were no more error messages in the SMPClient and SMBServer events, nonetheless the same issue persisted.

What shall i do?
This is the server version:
79792-capture2.png



After turning on password sharing, this is the SMB server Security Event popping up, although providing correct credentials, as I am able to connect through FTP.

User Name:
Session ID: 0x7C00E8000B81
Status: A user has requested a type of logon (e.g., interactive or network) that has not been granted. An administrator has control over who may logon interactively and through the network. (0xC000015B)
SPN: session setup failed before the SPN could be queried
SPN Validation Policy: SPN optional / no validation

Guidance:

You should expect this error when attempting to connect to shares using incorrect credentials.

This error does not always indicate a problem with authorization, but mainly authentication. It is more common with non-Windows clients.

This error can occur when using incorrect usernames and passwords with NTLM, mismatched LmCompatibility settings between client and server, an incorrect service principal name, duplicate Kerberos service principal names, incorrect Kerberos ticket-granting service tickets, or Guest accounts without Guest access enabled

windows-server-2019
capture.png (9.0 KiB)
capture1.png (11.6 KiB)
capture.png (5.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SunnyQi-MSFT avatar image
0 Votes"
SunnyQi-MSFT answered SunnyQi-MSFT commented

Hi,

Thanks for posting in Q&A platform.

Please confirm if the value of AllowsecureGuestAuth which is under the following registry key was set to 1 :

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters

If the issue still existed, please try to turn on "Password protected sharing" in server 2019 network sharing center to see if the issue can be resolved.

80039-image-1.jpg

Best Regards,
Sunny


If the Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image-1.jpg (79.6 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your answers. The registry is correct, turning on password protected sharing unfortunately does not work.

What other ways are there to debug this issue?

0 Votes 0 ·

Hi,

Thanks for your feedback. Kindly check if Fix2 in the following article can help you:

https://www.kapilarya.com/fix-you-cant-access-this-shared-folder-because-your-organizations-security-policies-block-unauthenticated-guest-access
Please Note: Since the websites are not hosted by Microsoft, the links may change without notice. Microsoft does not guarantee the accuracy of this information.

Best Regards,
Sunny

0 Votes 0 ·

Thank you, that solved it!

0 Votes 0 ·
Show more comments