Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

SMB Server

Direct answer

The SMB server (LanmanServer) shares folders and printers from Windows. Configure dialects, signing and encryption with Set-SmbServerConfiguration and see sessions with Get-SmbSession.

When to use this

Use this when configuring the Windows SMB server.

First 30 seconds

1. Get-Service LanmanServer running.

2. Get-SmbServerConfiguration — SMB1 off, signing/encryption.

3. Firewall: File and Printer Sharing (SMB-In).

4. Sessions: Get-SmbSession.

5. Events: SMBServer/Operational.

Operational verification

LanmanServer → listener 445 → sessions → shares

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services
Scope / prerequisiteUse this when configuring the Windows SMB server.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Common mistakes Narrow the fault
  • Enabling SMB1 server for legacy clients.
Evidence references

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.

observation · 1
Key points
  • The SMB server runs as LanmanServer.
  • Signing and encryption settings are server-wide.
  • Sessions show connected clients.
Key checks
  • Get-SmbShare — shares on the server
  • Get-SmbSession / Get-SmbOpenFile — sessions and open files
  • Get-SmbConnection — client connections and dialect
  • Get-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 server is the Server service (LanmanServer). It publishes shares, authenticates sessions and enforces server-side signing and encryption. Get-SmbSession and Get-SmbOpenFile show who is connected and which files are open — useful before maintenance.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

Windows SMB server (LanmanServer) configuration:

Get-SmbServerConfiguration
Set-SmbServerConfiguration -EncryptData $true -RejectUnencryptedAccess $true -Confirm:$false
Get-SmbSession | ft ClientComputerName,ClientUserName,Dialect,NumOpens,SecondsExists
Get-SmbOpenFile | ? Path -like '*budget*' | Close-SmbOpenFile -Force
Set-SmbServerConfiguration -AuditSmb1Access $true

Audit SMB1 access before removing it (event 3000 in Microsoft-Windows-SMBServer/Audit), and enable SMB signing/encryption according to your security baseline.

Settings

Get-SmbServerConfiguration
Set-SmbServerConfiguration -EncryptData $true -RejectUnencryptedAccess $true
Get-SmbSession

Documented example, not captured output.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

Authoritative/upstream documentation reviewed for bounded claims in SMB → SMB Server. 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%
Confirmation

Confirm action

Continue?