Paul Vaillant

Get-LyncLogins

Get a list of the last X number of logins for a user

Syntax

Get-LyncLogins.ps1 [-UserUri] <String> [-Last <Int32>] [<CommonParameters>]

Parameters

NameDescriptionRequired?Pipeline Input?Default Value
UserUriThe SIP address of the user to return logins fortruefalse
LastNumber of last logins to returnfalsefalse10

Return Values

For each login, there’s a DataRow with the following properties:
RegisterTime, DeRegisterTime, DeRegisterReason, ClientVersion, ResponseCode,
Registrar, Pool, EdgeServer, MacAddress, Manufacturer, HardwareVersion

If the monitoring server is 2013, there’s also an IpAddress property

Notes

Version 1.0.0 (2015-02-22)
Written by Paul Vaillant

Examples

EXAMPLE 1

Get-LyncLogins.ps1 -UserUri john.doe@example.com

Get the last 10 logins for john.doe@example.com