Technical Anshu
Tutorials Blog
📁 Registry Fix Honest Guide

AllowInsecureGuestAuth Registry Fix With the Honest Risk Warning

This is the quick fix from the video, graded honestly. It is a real, Microsoft-documented setting - and its name contains the word insecure for a reason. Here is exactly what it changes, when that trade is defensible, and when it is not.

✍️ Technical Anshu🪟 Windows 10 / 11⏱️ 8 minute read
🎥 Watch the video - this exact command applied live in Command Prompt

Let us be straight about this page. The command below works, it is the method the video demonstrates, and it is not a hack - Microsoft documents this setting in its own support pages for exactly the situation where a third-party device cannot do usernames and passwords. It also needs no softening: AllowInsecureGuestAuth tells Windows to trust shares that ask for no login, and that trust is the thing attackers abuse. So here is the whole truth in one place - the command, byte for byte; the equivalent Group Policy and PowerShell routes; the second setting Windows 11 24H2 may demand; the situations where using it is reasonable; the ones where it is not; and how to switch it back off.

What This Setting Actually Switches
ValueAllowInsecureGuestAuth
WhereHKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
0 (Windows default)Guest logons refused - protection on
1 (after the fix)Guest logons allowed - protection off
AffectsThis PC's connections to every share, not just your NAS

One value, machine-wide effect. There is no per-share version of this switch - allowing guest for your NAS allows it for any device your PC ever meets.

1

The Video's Command, Exactly as Shown

  1. Open Command Prompt as administrator - right-click Start, choose Terminal (Admin) or Command Prompt (Admin)
  2. Run this one line, exactly:

reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v AllowInsecureGuestAuth /t REG_DWORD /d 1 /f

  1. It should answer that the operation completed successfully
  2. Restart the PC, or sign out and back in, then open the share - it now enters without a login

Two equivalent documented routes exist. Group Policy (Pro and above): run gpedit.msc, go to Computer Configuration, Administrative Templates, Network, Lanman Workstation, and set Enable insecure guest logons to Enabled. PowerShell (administrator): Set-SmbClientConfiguration -EnableInsecureGuestLogons $true -Force. All three land on the same policy; the registry line is simply the fastest and works on Home edition too.

2

The Second Wall on Windows 11 24H2

If you run the command on Windows 11 24H2 and the share still refuses, you have met the newer change: SMB signing is required by default, and a guest logon cannot sign. Microsoft's own guidance notes that signing and encryption policies must be off for guest logons to work at all. The command that removes the requirement is Set-SmbClientConfiguration -RequireSecuritySignature $false -Force in administrator PowerShell. Understand what stacking the two means: your PC now accepts unsigned, unauthenticated file traffic - both of the protections that stop fake-server and relay attacks, gone together. At that point the honest question stops being which command to run, and becomes why a device in 2026 cannot manage a username and password. A firmware update or a replacement device is usually the better spend.

3

When Using It Is Defensible - and When It Is Not

4

Undo It the Day You No Longer Need It

The fix should be treated as a temporary bridge, and bridges get dismantled. When the NAS is updated or replaced - or once you set up a proper account on the share - restore the protection:

  1. Administrator Command Prompt: reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v AllowInsecureGuestAuth /t REG_DWORD /d 0 /f
  2. If you also relaxed signing, restore it: Set-SmbClientConfiguration -RequireSecuritySignature $true -Force
  3. Restart, then confirm the guest share once again asks for a login - that refusal is the sound of the guard back on duty
  4. Windows even keeps an audit trail while the setting is on: Event Viewer, Applications and Service Logs, Microsoft, Windows, SMBClient, Security records the insecure logons - worth a glance before you switch back
🔴 Never take this command from a random comment or a stranger's script file. Type it yourself, from this page or the video, and read it before pressing Enter. A one-line registry command that weakens security is exactly the shape of thing malware distributors disguise as a fix - the genuine setting is free, documented, and thirty seconds to type by hand.

🎥 See the Complete Fix in the Video

Watch the video to see the command run live; keep this guide open for the risk notes and the undo steps the quick version skips.

▶️ Watch Full Video
❓ Common Questions (FAQ)

Is this a hack or an official setting?

Official. Microsoft publishes a support page on enabling insecure guest logons in SMB2 and SMB3, covering the Group Policy and PowerShell routes, aimed at connecting to third-party devices that only support guest authentication. The registry value is the same policy written directly. Official does not mean harmless - Microsoft's page itself warns it can leave users open to credential theft and relay attacks.

Does it allow guests into my PC, or out of it?

Out of it. This is a client setting: it governs shares your PC connects to. It does not open your own PC's shares to guests. That direction has been blocked in Windows for far longer, and this command does not change it.

I ran it and the share still will not open. What is left?

Work through the order: restart so the policy applies; check whether 24H2's signing requirement is the second wall (this page covers it); clear the cached failed session with net use and Credential Manager; and confirm the device truly is refusing at the login stage rather than showing error 0x80070035, which is a reachability problem this setting cannot cure.

This guide is based on the Technical Anshu shared folder guest access video • Stuck on any step? Ask in the video comments — you will get a reply there 🙏