Export (0) Print
Expand All
Expand Minimize

Get-RemoteAccessConnectionStatisticsSummary

Updated: August 15, 2012

Applies To: Windows Server 2012

Get-RemoteAccessConnectionStatisticsSummary

Displays the summary statistics of real-time, currently active DirectAccess (DA) and VPN connections and the summary statistics of DA and VPN historical connections for a specified time duration.

Syntax

Parameter Set: ActiveStatistics
Get-RemoteAccessConnectionStatisticsSummary [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: AccountingStatistics
Get-RemoteAccessConnectionStatisticsSummary [[-StartDateTime] <DateTime> ] [[-EndDateTime] <DateTime> ] [-AsJob] [-CimSession <CimSession[]> ] [-ComputerName <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]




Detailed Description

The Get-RemoteAccessConnectionStatisticsSummary cmdlet displays the summary statistics of real-time, currently active DirectAccess (DA) and VPN connections and the summary statistics of DA and VPN historical connections for a specified duration time.

The statistics summary for active and historical connections starting or ending on a Remote Access server are stored in the inbox accounting store on that server. This cmdlet retrieves statistics summary for a specific server. This cmdlet is not impacted by multi-site deployment.
-- If neither a start date nor an end date is specified, then the statistics summary of active connections is retrieved.
-- In order to retrieve statistics summary of historical data, a time duration needs to be specified such as a start date, an end date, or both. If only one of them is specified, then the time stamp on the first or last record in the accounting database is used to fill the missing information and create a duration.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use the Receive-Job cmdlet. For more information about Windows PowerShell® background jobs, see about_Jobs.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-CimSession<CimSession[]>

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.


Aliases

Session

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ComputerName<String>

Specifies the IPv4 or IPv6 address, or host name, of the computer on which the remote access server computer specific tasks should be run. When this parameter is specified the statistics summary on that Remote Access server is retrieved.


Aliases

Cn

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-EndDateTime<DateTime>

Specifies the time duration for which the statistics summary of historical connections is to be retrieved and indicates the end date. If a date is not specified, then the time stamp of the last record in the accounting database is used by default.


Aliases

none

Required?

false

Position?

3

Default Value

Date stamp of last record

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-StartDateTime<DateTime>

Specifies the time duration for which the statistics summary of historical connections is to be retrieved and indicates the start date. If a date is not specified, then the time stamp of the first record in the accounting database is used by default.


Aliases

none

Required?

false

Position?

2

Default Value

Date stamp of first record

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-ThrottleLimit<Int32>

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. The throttle limit applies only to the current cmdlet, not to the session or to the computer.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Management.Infrastructure.CimInstance#RemoteAccessConnectionSummary

    The Microsoft.Management.Infrastructure.CimInstance object is a wrapper class that displays Windows Management Instrumentation (WMI) objects. The path after the pound sign (#) provides the namespace and class name for the underlying WMI object.
    The RemoteAccessConnectionSummary object consists of the following properties:
    For active connections:
    -- The total number of connections.
    -- The total number of Direct Access connections.
    -- The total VPN number of connections.
    -- The total number of unique users.
    -- The maximum number of concurrent connections.
    -- The total number of cumulative connections (the total number of connections since the remote access server was started).
    -- The total number of bytes in.
    -- The total number of bytes out.
    -- The total number of bytes in and out.


Examples

EXAMPLE 1

This example gets the summary statistics for real-time, active connections. There are no active users and hence the TotalConnections , TotalDAConnections, TotalVpnConnections and TotalUniqueUsers are 0.


PS C:\> Get- RemoteAccessConnectionStatisticsSummary –ComputerName edge1.corp.contoso.com
TotalConnections           : 0 
TotalDAConnections         : 0 
                       
TotalVpnConnections        : 0 
                       
TotalUniqueUsers           : 0 
                       
MaxConcurrentConnections   : 10 
                       
TotalCumulativeConnections : 703 
                       
TotalBytesIn               : 1167785920 
                       
TotalBytesOut              : 3350338848 
                       
TotalBytesInOut            : 4518124768 

EXAMPLE 2

This example gets the summary statistics for past connections.


 

PS C:\> $startdate = Get-Date –Date "12/25/2011"

 

PS C:\> $enddate = Get-Date –Date "01/10/2012"

 

When the start date or end date are specified, this cmdlet retrieves the counters from accounting store.


PS C:\> Get-RemoteAccessConnectionStatisticsSummary -StartDateTime $startdate -EndDateTime $enddate
TotalSessions         : 2314 
                         
TotalDASessions       : 2314 
                         
TotalVpnSessions      : 0 
                         
MaxConcurrentSessions : 28 
                         
TotalUniqueDAClients  : 27 
                         
AverageSessionsPerDay : 144 
                         
TotalUniqueUsers      : 57 

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft