Windows/SMB
< Windows
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