Windows/SMB

From Omnia
Revision as of 23:54, 27 February 2026 by Kenneth (talk | contribs) (Created page with "== Get Windows Connections == === net use === Show connections: net use Example: <pre> C:\> net use New connections will be remembered. Status Local Remote Network ------------------------------------------------------------------------------- OK W: \\ci-store.example.com\ci Microsoft Windows Network </pre> === Get-SmbConnection === Show which user connected: Get-SmbConnection Example: <pre> PS C:\> Get-SmbConnection...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Get Windows Connections

net use

Show connections:

net use

Example:

C:\> net use
New connections will be remembered.

Status       Local     Remote                    Network

-------------------------------------------------------------------------------
OK           W:        \\ci-store.example.com\ci Microsoft Windows Network

Get-SmbConnection

Show which user connected:

Get-SmbConnection

Example:

PS C:\> Get-SmbConnection

ServerName                       ShareName UserName   Credential                       Dialect NumOpens
----------                       --------- --------   ----------                       ------- --------
ci-store.example.com             ci        AD\12345   CI-STORE\user                    3.1.1   1