Share via


GetByUserName method of the PS_RemoteAccessUserActivity class

This cmdlet displays the following1. Resources accessed over the active DA and VPN connections2. Resources accessed over historical DA and VPN connections

Syntax

uint32 GetByUserName(
  [in]  string                   UserName,
  [in]  string                   ComputerName,
  [in]  datetime                 EndDateTime,
  [in]  datetime                 StartDateTime,
  [out] RemoteAccessUserActivity cmdletOutput[]
);

Parameters

UserName [in]

Specifies the user whose activity needs to be retrieved. The name is provided in DOMAIN\USERNAME format

ComputerName [in]

IPv4/IPv6 address or hostname of the machine on which the remote access server machine specific tasks should be executed

EndDateTime [in]

This parameter is used to specify the time duration for which the user activity needs to be retrieved and indicates the end date. It is specified in the format MM/DD/YYYY Hour:Min:Sec [AM/PM].

StartDateTime [in]

This parameter is used to specify the time duration for which the user activity needs to be retrieved and indicates the start date. It is specified in the format MM/DD/YYYY Hour:Min:Sec [AM/PM].

cmdletOutput [out]

On return, contains a RemoteAccessUserActivity object.

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