Use this when the Windows SMB client misbehaves.
SMB Client
The SMB client (LanmanWorkstation) connects Windows to file shares. Map drives with net use or New-SmbMapping and inspect connections and dialects with Get-SmbConnection.
1. Get-SmbConnection.
2. Mapped drives: Get-SmbMapping.
3. Client config: Get-SmbClientConfiguration (signing).
4. Events: Microsoft-Windows-SMBClient/Connectivity.
5. Clear cached creds: cmdkey /list.
client resolves name → 445 → auth → share
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Enabling insecure guest logons to reach an old NAS instead of configuring an account on it.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- The SMB client runs as the LanmanWorkstation service.
- Dialect is negotiated with each server.
- Mapped drives are per user session.
Get-SmbShare— shares on the serverGet-SmbSession / Get-SmbOpenFile— sessions and open filesGet-SmbConnection— client connections and dialectGet-SmbServerConfiguration— server settings (signing, encryption, SMB1)Test-NetConnection <server> -Port 445— SMB port reachability
ReferenceWhy it matters1 section · depth on demand
What it is
The SMB client is the Workstation service (LanmanWorkstation). It maps drives, opens UNC paths, caches connections and negotiates signing and encryption with the server. Client-side settings decide whether signing is required and whether insecure guest logons are allowed (blocked by default in current Windows).
ReferenceImportant terms & boundaries2 sections · depth on demand
Settings
Get-SmbClientConfiguration | Select RequireSecuritySignature,EnableInsecureGuestLogons
Get-SmbMapping
New-SmbMapping -LocalPath S: -RemotePath \\fs01\share -Persistent $true
Documented example, not captured output.
In depth
Windows SMB client (LanmanWorkstation) settings and mappings:
Get-SmbClientConfiguration | Select RequireSecuritySignature,EnableInsecureGuestLogons,EnableMultiChannel
New-SmbMapping -LocalPath P: -RemotePath \\fs01\projects -Persistent $true
Get-SmbMapping; Remove-SmbMapping -LocalPath P: -Force
net use * /delete /y
Insecure guest logons (unauthenticated access to NAS shares) are disabled by default on Windows 10/11 Enterprise and Windows 11 24H2 Pro — fix the NAS to require authentication rather than re-enabling guest access.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in SMB → SMB Client. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/file-server/smb-overview · confidence 94%