How to get Lync clients current signed in users availability and personalnote using PowerShell

Hi. I am totally new to the Lync 2013 SDK.

I am unable to understand how I can get the current availability and personal note from the user currently logged in on a local Lync client. I have managed to publish presenence and personal note using PowerShell examples below.

http://msdn.microsoft.com/en-us/library/hh243705(v=office.14).aspx#AdditionalRes
http://blog.powershell.no/2013/08/08/automating-microsoft-lync-using-windows-powershell/

Could anyone point me in the right direction as to how I can get the current users presence data using PowerShell?

Stle Hansen
Lync MVP, MCT, V-TSP
Blog: http://msunified.net
PodCast: http://TheUCArchitects.com

  • Moved by Kai Strandskov [Msft] Friday, November 22, 2013 10:51 PM question about powershell with Lync Server
November 13th, 2013 5:46am

I don't have an answer, but I want to suggest some other places to look. First, my buddy Kurt wrote a couple of articles which might help:

PowerShell Scripting Lync 2010 SDK Using Lync Extensibility API

PowerShell Scripting Lync 2010 SDK Using Lync Model API

Next, try the Lync Server/Management forum over on TechNet:

Lync Server Management Forum

If none of those help, let me know and I'll see what else I can find.

Free Windows Admin Tool Kit Click here and download it now
November 14th, 2013 5:47pm

Hi John.

I have seen these articles, and none of them talk about how to get the current status or the current personal note? I am starting to wonder if that is at all possible using the Lync SDK classes. I see nowhere where that is possible, what do you think? Thanks :)

Stle Hansen
Lync MVP, MCT, V-TSP
Blog: http://msunified.net
PodCast: http://TheUCArchitects.com

November 27th, 2013 2:51am

From GetContactInformation you can get the Personal Note and Current Availability of the Logged in User

The below code snipet is from Lync 2010.

label1.Text=_LyncClient.Self.Contact.GetContactInformation(ContactInformationType.LocationName).ToString();
label2.Text=_LyncClient.Self.Contact.GetContactInformation(ContactInformationType.DefaultNote).ToString();
label3.Text=_LyncClient.Self.Contact.GetContactInformation(ContactInformationType.Title).ToString();

Free Windows Admin Tool Kit Click here and download it now
January 16th, 2014 7:06am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics