The behavior is consistent with tightened SMB and authentication policies introduced by recent Windows updates. Anonymous/guest access to shares is being blocked, so clients are forced to authenticate.
To restore seamless access in a small, non-domain lab where security policy allows it, configure the teacher PC and (if needed) student PCs as follows.
- Allow guest/unauthenticated access to SMB shares
On each Windows 11 PC that must access the share without credentials:
Method 1: Registry (if Local Group Policy Editor is not available)
- Open Registry Editor on the student PC.
- Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LanmanWorkstation- If LanmanWorkstation does not exist, create it under Windows.
- In LanmanWorkstation, create a new DWORD (32-bit) Value named:
AllowInsecureGuestAuth - Set Value data to
1. - Close Registry Editor and restart the PC.
This explicitly enables insecure guest logons for SMB from that client.
Method 2: Local Group Policy (if available on the client)
- Run
gpedit.msc. - Go to: Computer Configuration → Administrative Templates → Network → Lanman Workstation.
- Open Enable insecure guest logons.
- Set it to Enabled and apply.
- Restart the PC.
This has the same effect as the registry setting above and allows connecting to guest/anonymous shares without credentials.
- Ensure NetBIOS/SMB name resolution works (if using computer name)
If access by IP works but by computer name does not, enable NetBIOS over TCP/IP on the student PCs:
- Open Network and Sharing Center → Change adapter settings.
- Right-click the active adapter → Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) → Properties.
- Select Advanced → WINS tab.
- Select Enable NetBIOS over TCP/IP → OK → OK.
This helps clients locate the teacher PC by name when browsing to \\TeacherPCName\Share.
- Prefer SMB2/SMB3 and NTLMv2 (if NAS or older SMB is involved)
If any device in the path still uses SMBv1 or older authentication, configure it (where possible) to use SMB2 or SMB3 and NTLMv2 only. This aligns with current Windows security expectations and avoids SMBv1-related connectivity issues mentioned in recent updates.
- If using a passworded account instead of guest
If guest access is not acceptable and a dedicated account on the teacher PC should be used:
- Confirm that the account is enabled, has a non-expired password, and is granted both Share and NTFS (Security tab) permissions to the shared folder.
- From a student PC, when prompted for credentials, enter:
- Username:
TEACHERPCNAME\AccountName - Password: the password set on the teacher PC.
- Username:
If the account is disabled or the password expired, Windows will repeatedly prompt or deny access, similar to the behavior described in the Visual Studio remote connection article.
- Security note
Enabling insecure guest logons and anonymous access reduces security and should only be used on an isolated, trusted LAN such as a classroom lab. For higher security, prefer named accounts with passwords and restrict share permissions appropriately.
References: