Get-RemoteAccessConnectionStatisticsSummary

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.

Sintaxis

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>]

Descripción detallada

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.

Parámetros

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.

Alias

Cn

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

false

¿Posición?

3

Valor predeterminado

Date stamp of last record

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

false

¿Posición?

2

Valor predeterminado

Date stamp of first record

¿Aceptar canalización?

True (ByValue)

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • None

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • Microsoft.Management.Infrastructure.CimInstance#RemoteAccessConnectionSummary

    El objeto Microsoft.Management.Infrastructure.CimInstance es una clase contenedora que muestra objetos de Instrumental de administración de Windows (WMI). La ruta de acceso después del signo de número (#) proporciona el espacio de nombres y el nombre de clase del objeto WMI subyacente.
    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.

Ejemplos

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

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

Temas relacionados

Get-RemoteAccessConnectionStatistics