Short answer: Windows now refuses to open shared folders that let anyone in as an anonymous “guest”, which is how many NAS boxes and older file shares are set up. The safe fix is to give the share proper user accounts (or move the data to a server or SharePoint) and connect with a user name and password. Turning guest access back on in Windows works, but Microsoft recommends against it.
A migration agency asked us to look at why a staff member could see the folders on the office NAS from the Remote Desktop server but could not open most of them. Every folder she tried came back with “You can’t access this shared folder because your organization’s security policies block unauthenticated guest access”. Some colleagues already reached the same files through a mapped drive. Windows was doing exactly what it is designed to do, and the fix was to give her access through an authenticated share instead of guest access. Here is what we found and how to fix it.
Fixed by Brendan Ramstadius, Senior Technician at GCIT. Written up by Elliot Munro, CISO.
Symptoms
When you open a shared folder on a NAS, router USB share or older file server from File Explorer, Windows shows an Open Folder error:
\\[server]\[share] is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions.
You can’t access this shared folder because your organization’s security policies block unauthenticated guest access. These policies help protect your PC from unsafe or malicious devices on the network.

You may also see “Windows cannot access \\[server]” with error 0x80070035 or 0x80004005, mapped drives that stop reconnecting after a Windows 11 upgrade, or a share that works on one PC and not another. People search for this as “organization’s security policies block unauthenticated guest access”, “Windows 11 24H2 can’t access NAS” or “SMB guest access blocked”.
On the PC, Event Viewer > Applications and Services Logs > Microsoft > Windows > SMBClient > Security records event 31017, “Rejected an insecure guest logon”.
Affected Software
- Platform: Windows 11 (Pro and above, all builds from 24H2), Windows 10 Enterprise and Education, Windows Server 2019 and later, including Remote Desktop session hosts
- Related devices: NAS appliances (QNAP, Synology and others), routers with USB storage, older Linux Samba shares, copiers that store scans on a share
Cause
A guest logon lets a computer open a share without proving who it is. Because nobody signs in, the connection cannot use SMB signing or encryption, so an attacker on the network can pretend to be the share or tamper with files in transit.
Microsoft has been closing this off for years. Windows 10 Enterprise and Education (from version 1709) and Windows Server 2019 block guest access by default. Windows 11 Pro now does too, and Windows 11 24H2 and Windows Server 2025 also require SMB signing by default, which guest connections cannot do. A NAS share that was set up years ago with guest or “everyone” access therefore stops working when PCs or servers are upgraded.
In our case the NAS offered guest access for some folders and a named staff account for others, so the same user could see the folder list but was refused inside most folders.
Resolution
Step 1: Confirm it is guest access
- Open Event Viewer on the affected PC or server and check SMBClient > Security for event 31017 at the time of the error.
- Check the share settings on the NAS or file server. Look for guest access, anonymous access or an “everyone” permission with no password.
Step 2: Give the share proper accounts (recommended)
- On the NAS, turn off guest access for the share. Create named user accounts or, if your NAS supports it, join it to your Active Directory domain so staff use their normal sign-in.
- Give each group the permissions it needs (read only or read and write) on each shared folder.
- Turn on SMB signing on the NAS if it offers the setting, and use SMB version 2 or 3 only.
Step 3: Connect with credentials
- For one PC, map the drive with a user name and password: in File Explorer select This PC > Map network drive, enter the path, tick Connect using different credentials and enter the NAS account. From a command prompt:
net use Z: \\[server]\[share] /user:[server]\[username] /persistent:yes - For a whole office, map drives with Group Policy (User Configuration > Preferences > Windows Settings > Drive Maps) or Intune, so they reconnect for every user. We used an existing drive-mapping Group Policy with item-level targeting to give the affected user an O: drive pointed at an authenticated server share holding the folders she needed.
- Test that the user can open, edit and save files in each folder.
Tell the user where the new drive is and how to open it, and have them test it themselves. In our case the new drive worked when our technician tested it, but the staff member still reported the problem as unresolved, most likely because she was still going to the folder the old way. A short phone call showing her the correct way to reach the folder on the new drive in her Remote Desktop session closed it out. The authenticated share was the fix, not re-enabling guest access.
Step 4: Consider moving the data
If the NAS cannot support named accounts or signing, it is time to move those files to a Windows file server, SharePoint or another platform that does. Old NAS boxes that only support guest access are usually also out of security updates.
Important Notes
- Re-enabling guest logons is a last resort. Microsoft documents the Group Policy Computer Configuration > Administrative Templates > Network > Lanman Workstation > Enable insecure guest logons, but recommends that you do not use it. On Windows 11 24H2 you would also have to turn off SMB signing requirements, which weakens every file share connection on that PC, not just the NAS.
- Do not make the change on a Remote Desktop server. A session host is shared by many users, so weakening its file sharing security affects all of them.
- Check scanners and copiers. Scan-to-folder often relies on a guest share. When you add accounts to the share, update the copier’s address book with the new credentials.
- Upgrades trigger it. If a share “suddenly” stopped working, check whether the PC was just upgraded to Windows 11 24H2 or later.
Related Resources
- Microsoft Learn: Insecure guest logons in SMB2 and SMB3
- Microsoft Learn: Control SMB signing behaviour
- Fix: “Windows cannot access the specified device, path, or file” When Clicking Links in New Outlook
- Fix: Trust Relationship Failed Errors at Windows Sign-in
- Fix: Printer Errors After Upgrading to Windows 11
- GCIT managed IT services
- Fix: “The Local Device Name Is Already in Use” Mapped Drive Error
If an upgrade has locked your team out of a NAS or shared drive, or you want old file shares moved somewhere safer, get in touch with our team.