Open the Local Group Policy Editor. You can press Win+R, type gpedit.msc, and hit the Enter button. Alternatively, you can search for the same in the Taskbar search box.
After opening the Local Group Policy Editor, navigate to this path-
Computer configuration > Administrative Templates > Network > Lanman Workstation
On your right side, you should see a setting called Enable insecure guest logons. Double-click on it, and change the setting to Not Configured to Enabled and save your change.