Partager via


GetBySessionId method of the PS_RemoteAccessUserActivity class

This cmdlet displays the following

  1. Resources accessed over the active DA and VPN connections

  2. Resources accessed over historical DA and VPN connections

Syntax

uint32 GetBySessionId(
  [in]  string                   ComputerName,
  [in]  uint64                   SessionId,
  [out] RemoteAccessUserActivity cmdletOutput[]
);

Parameters

ComputerName [in]

IPv4/IPv6 address or hostname of the computer on which the Remote Access server computer specific tasks should be executed

SessionId [in]

An identifier for the Session, for which the User Activity data is to be retrieved.

cmdletOutput [out]

In both real-time and accounting cases the object consists of the following properties. A separate instance of the object is outputted for every corporate network resource that is accessed over the connection

  1. IP address of the server in corporate network

  2. Identity of the protocol using which the server is being accessed

  3. Port no. using which the server is being accessed

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess
MOF
RAMgmtPSProvider.mof
DLL
RAMgmtPSProvider.dll

See also

PS_RemoteAccessUserActivity