Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

IT Support Playbooks / IT Support Guides

Identify the account used for a Windows file share

A user can be signed into Windows with one identity while an SMB connection uses another. Inspect the established share session before changing server permissions.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Everyday IT support · Windows PowerShell examples unless specified

Try the diagnostic command

Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.

Get-SmbConnection | Select-Object ServerName, ShareName, UserName, Dialect

How to read the result

The result reports established SMB client connections and the identity associated with them. No result can mean there is no visible active SMB connection in that context.

What to do next

Compare the server, share and account with the access request. Test the exact UNC path and involve the share owner when the intended account lacks the required authorization.

Before you make a change

Do not grant broad access to compensate for a wrong session identity. Disconnecting SMB sessions can interrupt open documents and should be coordinated with the user.

Source & further reading

Microsoft Learn — get-smbconnection

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to results