Use this when Windows file sharing fails, is slow or needs securing.
SMB
SMB is the Windows file and printer sharing protocol. SMB 3 adds encryption, signing, multichannel and transparent failover; SMB1 is obsolete and should be disabled.
1. Test-NetConnection <server> -Port 445.
2. Get-SmbConnection — dialect 3.x?
3. Credentials and share/NTFS permissions.
4. SMB1 disabled on both ends.
5. Events: SMBClient/SMBServer logs.
client → TCP 445 → negotiate dialect → authenticate → tree connect → file access
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
New-SmbSharePrimary Commands
Configuration and operational commands for this Topic.
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
- SMB1 still enabled for an old device.
- TCP 445 open to the internet.
Subtopics
Go one level deeper into this subject.
The SMB protocol provides file, printer and named-pipe access over TCP 445.
Subtopic SMB ClientThe SMB client (LanmanWorkstation) connects Windows to file shares.
Subtopic SMB ServerThe SMB server (LanmanServer) shares folders and printers from Windows.
Subtopic SMB SharesSMB shares are folders a Windows machine publishes over SMB, listed with Get-SmbShare or net share.
Subtopic Administrative SharesAdministrative shares like C$, ADMIN$ and IPC$ are hidden shares Windows creates automatically for remote administration.
Subtopic SMB SigningSMB signing adds a cryptographic signature to every SMB message, preventing tampering and relay attacks.
Subtopic SMB EncryptionSMB encryption protects SMB 3 traffic end to end with AES-GCM or AES-CCM, set per share or for the whole server with Set-SmbShare -EncryptData or Set-SmbServerConfiguration.
Subtopic SMB MultichannelSMB Multichannel uses several network connections between client and server at once for more throughput and failover, automatically when both sides have multiple or RSS-capable NICs.
Subtopic UNC PathsUNC paths for SMB follow \\server\share\path, where server is a name or IP address.
Subtopic SMB TroubleshootingTroubleshoot SMB by testing TCP 445 with Test-NetConnection, checking the dialect with Get-SmbConnection, signing and encryption mismatches, SMB1-only devices, credentials, name resolution and the SMBClient event logs.
- SMB1 is obsolete and should be disabled everywhere.
- Connecting by name allows Kerberos; by IP address forces NTLM.
- Signing or encryption mismatches block older NAS and printers.
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
How it works
SMB (Server Message Block) is Windows file and printer sharing over TCP 445. Client and server negotiate the highest common dialect, authenticate (Kerberos in a domain, NTLM otherwise), then the client connects to a share (\\server\share) and opens files. Access is checked against both share permissions and NTFS permissions. SMB 3 adds encryption, multichannel and transparent failover.
ReferenceImportant terms & boundaries1 section · depth on demand
Versions
| Dialect | Introduced | Notes |
|---|---|---|
| SMB 1 | Legacy | Disable (Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol) |
| SMB 2.x | Vista/2008 | |
| SMB 3.0/3.02 | 8/2012 | Encryption, multichannel |
| SMB 3.1.1 | 10/2016 | Pre-auth integrity, AES-GCM |
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. 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%