Skip to content

Commit ef65626

Browse files
authored
Update Get-SmbSession.md
update example description and SMB instance
1 parent 708d7f0 commit ef65626

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

docset/winserver2012r2-ps/smbshare/Get-SmbSession.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ The **Get-SmbSession** cmdlet retrieves basic information about the Server Messa
3535

3636
## EXAMPLES
3737

38-
### EXAMPLE 1
38+
### Example 1: Get session information
3939
```
4040
PS C:\>Get-SmbSession
4141
SessionId ClientComputerName ClientUserName NumOpens
@@ -60,21 +60,21 @@ SessionId ClientComputerName ClientUserName
6060
8813272891621 192.168.101.13 Contoso\Administrator 0
6161
```
6262

63-
This example retrieves information about the SMB sessions that are currently established between the SMB server and the associated clients.
63+
This command retrieves information about the SMB sessions that are currently established between the SMB server and the associated clients.
6464

65-
### EXAMPLE 2
65+
### Example 2: Get information for a specific session
6666
```
6767
PS C:\>Get-SmbSession -SessionId 8813272891621
6868
SessionId ClientComputerName ClientUserName NumOpens
6969
--------- ------------------ -------------- --------
7070
8813272891621 192.168.101.13 Contoso\Administrator 0
7171
```
7272

73-
This example retrieves information about the SMB session identified as 8813272891621 that is currently established between the SMB server and the associated clients.
73+
This command retrieves information about the SMB session identified as 8813272891621 that is currently established between the SMB server and the associated clients.
7474

75-
### EXAMPLE 3
75+
### Example 3: Get session information for a specific client
7676
```
77-
PS C:\>Get-SmbSession -ClientComputerName 192.168.102.14
77+
PS C:\>Get-SmbSession -ClientComputerName "192.168.102.14"
7878
SessionId ClientComputerName ClientUserName NumOpens
7979
--------- ------------------ -------------- --------
8080
4415226380377 192.168.102.14 Contoso\Contoso-HV2$ 1
@@ -85,11 +85,11 @@ SessionId ClientComputerName ClientUserName
8585
8813272891517 192.168.102.14 Contoso\Contoso-HV2$ 5
8686
```
8787

88-
This example retrieves information about the SMB sessions that are currently established between the SMB server and the SMB client at the IP address 192.168.102.14.
88+
This command retrieves information about the SMB sessions that are currently established between the SMB server and the SMB client at the IP address 192.168.102.14.
8989

90-
### EXAMPLE 4
90+
### Example 4: Get session information for a client
9191
```
92-
PS C:\>Get-SmbSession -ClientUserName Contoso\Contoso-HV1$
92+
PS C:\>Get-SmbSession -ClientUserName "Contoso\Contoso-HV1$"
9393
SessionId ClientComputerName ClientUserName NumOpens
9494
--------- ------------------ -------------- --------
9595
8813272891441 192.168.101.13 Contoso\Contoso-HV1$ 1
@@ -103,9 +103,9 @@ SessionId ClientComputerName ClientUserName
103103
8813272891613 192.168.101.13 Contoso\Contoso-HV1$ 2
104104
```
105105

106-
This example retrieves information about the SMB sessions that are currently established between the SMB server and the SMB client with the user name Contoso\Contoso-HV1$.
106+
This command retrieves information about the SMB sessions that are currently established between the SMB server and the SMB client that has the user name Contoso\Contoso-HV1$.
107107

108-
### EXAMPLE 5
108+
### Example 5: Get all information for a session
109109
```
110110
PS C:\>Get-SmbSession -SessionId 8813272891441 | Select-Object -Property *
111111
ClientComputerName : 192.168.101.13
@@ -124,7 +124,7 @@ CimInstanceProperties : {ClientComputerName, ClientUserName, ClusterNodeName, Di
124124
CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties
125125
```
126126

127-
This example retrieves all of the information about the SMB session identified as 8813272891441 that are currently established between the SMB server and the SMB client.
127+
This command retrieves all of the information about the SMB session identified as 8813272891441 that are currently established between the SMB server and the SMB client.
128128

129129
## PARAMETERS
130130

@@ -251,13 +251,14 @@ Accept wildcard characters: False
251251
```
252252
253253
### -SmbInstance
254-
{{Fill SmbInstance Description}}
254+
Specifies the input to this cmdlet.
255+
You can use this parameter, or you can pipe the input to this cmdlet.
255256
256257
```yaml
257258
Type: SmbInstance
258259
Parameter Sets: (All)
259260
Aliases:
260-
Accepted values: Default, CSV
261+
Accepted values: Default, CSV, SBL, SR
261262

262263
Required: False
263264
Position: Named

0 commit comments

Comments
 (0)