Press Win + R, type regedit, and press Enter to open the Registry Editor.
Go to the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
Right-click on LanmanWorkstation, select New > DWORD (32-bit) Value, and name it:
AllowInsecureGuestAuth
Double-click on AllowInsecureGuestAuth, set the value data to 1, and press Enter.
Find the key AllowSecureGuestAuth and double-click it. Set the value data to 1.
Close the Registry Editor and restart your computer to apply the changes.