From 708d7f0dcdff7c7c492e93402e4364f3807a3b88 Mon Sep 17 00:00:00 2001 From: Sriraman M S <45987684+msbemba@users.noreply.github.com> Date: Wed, 25 Sep 2019 18:39:45 -0400 Subject: [PATCH 1/2] Update Get-SmbSession.md added Description for examples and added description for SMB instance --- .../smbshare/Get-SmbSession.md | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/docset/winserver2012-ps/smbshare/Get-SmbSession.md b/docset/winserver2012-ps/smbshare/Get-SmbSession.md index b661b352e8..ddf0a984ca 100644 --- a/docset/winserver2012-ps/smbshare/Get-SmbSession.md +++ b/docset/winserver2012-ps/smbshare/Get-SmbSession.md @@ -27,7 +27,7 @@ The **Get-SmbSession** cmdlet retrieves basic information about the Server Messa ## EXAMPLES -### EXAMPLE 1 +### Example 1: Get session information ``` PS C:\>Get-SmbSession SessionId ClientComputerName ClientUserName NumOpens @@ -52,9 +52,9 @@ SessionId ClientComputerName ClientUserName 8813272891621 192.168.101.13 Contoso\Administrator 0 ``` -This example retrieves information about the SMB sessions that are currently established between the SMB server and the associated clients. +This command retrieves information about the SMB sessions that are currently established between the SMB server and the associated clients. -### EXAMPLE 2 +### Example 2: Get information for a specific session ``` PS C:\>Get-SmbSession -SessionId 8813272891621 SessionId ClientComputerName ClientUserName NumOpens @@ -62,11 +62,11 @@ SessionId ClientComputerName ClientUserName 8813272891621 192.168.101.13 Contoso\Administrator 0 ``` -This example retrieves information about the SMB session identified as 8813272891621 that is currently established between the SMB server and the associated clients. +This command retrieves information about the SMB session identified as 8813272891621 that is currently established between the SMB server and the associated clients. -### EXAMPLE 3 +### Example 3: Get session information for a specific client ``` -PS C:\>Get-SmbSession -ClientComputerName 192.168.102.14 +PS C:\>Get-SmbSession -ClientComputerName "192.168.102.14" SessionId ClientComputerName ClientUserName NumOpens --------- ------------------ -------------- -------- 4415226380377 192.168.102.14 Contoso\Contoso-HV2$ 1 @@ -77,11 +77,11 @@ SessionId ClientComputerName ClientUserName 8813272891517 192.168.102.14 Contoso\Contoso-HV2$ 5 ``` -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. +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. -### EXAMPLE 4 +### Example 4: Get session information for a client ``` -PS C:\>Get-SmbSession -ClientUserName Contoso\Contoso-HV1$ +PS C:\>Get-SmbSession -ClientUserName "Contoso\Contoso-HV1$" SessionId ClientComputerName ClientUserName NumOpens --------- ------------------ -------------- -------- 8813272891441 192.168.101.13 Contoso\Contoso-HV1$ 1 @@ -95,9 +95,9 @@ SessionId ClientComputerName ClientUserName 8813272891613 192.168.101.13 Contoso\Contoso-HV1$ 2 ``` -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$. +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$. -### EXAMPLE 5 +### Example 5: Get all information for a session ``` PS C:\>Get-SmbSession -SessionId 8813272891441 | Select-Object -Property * ClientComputerName : 192.168.101.13 @@ -116,7 +116,8 @@ CimInstanceProperties : {ClientComputerName, ClientUserName, ClusterNodeName, Di CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties ``` -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. +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. + ## PARAMETERS @@ -242,6 +243,23 @@ Accept pipeline input: True (ByPropertyName) Accept wildcard characters: False ``` +### -SmbInstance +Specifies the input to this cmdlet. +You can use this parameter, or you can pipe the input to this cmdlet. + +```yaml +Type: SmbInstance +Parameter Sets: (All) +Aliases: +Accepted values: Default, CSV, SBL, SR + +Required: False +Position: Named +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ### -ThrottleLimit Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of `0` is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. From ef65626d99de851e623e519355cb541074fe93d3 Mon Sep 17 00:00:00 2001 From: Sriraman M S <45987684+msbemba@users.noreply.github.com> Date: Thu, 26 Sep 2019 17:32:50 -0400 Subject: [PATCH 2/2] Update Get-SmbSession.md update example description and SMB instance --- .../smbshare/Get-SmbSession.md | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/docset/winserver2012r2-ps/smbshare/Get-SmbSession.md b/docset/winserver2012r2-ps/smbshare/Get-SmbSession.md index 639c8a5e88..550b929cf3 100644 --- a/docset/winserver2012r2-ps/smbshare/Get-SmbSession.md +++ b/docset/winserver2012r2-ps/smbshare/Get-SmbSession.md @@ -35,7 +35,7 @@ The **Get-SmbSession** cmdlet retrieves basic information about the Server Messa ## EXAMPLES -### EXAMPLE 1 +### Example 1: Get session information ``` PS C:\>Get-SmbSession SessionId ClientComputerName ClientUserName NumOpens @@ -60,9 +60,9 @@ SessionId ClientComputerName ClientUserName 8813272891621 192.168.101.13 Contoso\Administrator 0 ``` -This example retrieves information about the SMB sessions that are currently established between the SMB server and the associated clients. +This command retrieves information about the SMB sessions that are currently established between the SMB server and the associated clients. -### EXAMPLE 2 +### Example 2: Get information for a specific session ``` PS C:\>Get-SmbSession -SessionId 8813272891621 SessionId ClientComputerName ClientUserName NumOpens @@ -70,11 +70,11 @@ SessionId ClientComputerName ClientUserName 8813272891621 192.168.101.13 Contoso\Administrator 0 ``` -This example retrieves information about the SMB session identified as 8813272891621 that is currently established between the SMB server and the associated clients. +This command retrieves information about the SMB session identified as 8813272891621 that is currently established between the SMB server and the associated clients. -### EXAMPLE 3 +### Example 3: Get session information for a specific client ``` -PS C:\>Get-SmbSession -ClientComputerName 192.168.102.14 +PS C:\>Get-SmbSession -ClientComputerName "192.168.102.14" SessionId ClientComputerName ClientUserName NumOpens --------- ------------------ -------------- -------- 4415226380377 192.168.102.14 Contoso\Contoso-HV2$ 1 @@ -85,11 +85,11 @@ SessionId ClientComputerName ClientUserName 8813272891517 192.168.102.14 Contoso\Contoso-HV2$ 5 ``` -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. +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. -### EXAMPLE 4 +### Example 4: Get session information for a client ``` -PS C:\>Get-SmbSession -ClientUserName Contoso\Contoso-HV1$ +PS C:\>Get-SmbSession -ClientUserName "Contoso\Contoso-HV1$" SessionId ClientComputerName ClientUserName NumOpens --------- ------------------ -------------- -------- 8813272891441 192.168.101.13 Contoso\Contoso-HV1$ 1 @@ -103,9 +103,9 @@ SessionId ClientComputerName ClientUserName 8813272891613 192.168.101.13 Contoso\Contoso-HV1$ 2 ``` -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$. +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$. -### EXAMPLE 5 +### Example 5: Get all information for a session ``` PS C:\>Get-SmbSession -SessionId 8813272891441 | Select-Object -Property * ClientComputerName : 192.168.101.13 @@ -124,7 +124,7 @@ CimInstanceProperties : {ClientComputerName, ClientUserName, ClusterNodeName, Di CimSystemProperties : Microsoft.Management.Infrastructure.CimSystemProperties ``` -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. +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. ## PARAMETERS @@ -251,13 +251,14 @@ Accept wildcard characters: False ``` ### -SmbInstance -{{Fill SmbInstance Description}} +Specifies the input to this cmdlet. +You can use this parameter, or you can pipe the input to this cmdlet. ```yaml Type: SmbInstance Parameter Sets: (All) Aliases: -Accepted values: Default, CSV +Accepted values: Default, CSV, SBL, SR Required: False Position: Named