One Click Attach SIP-Stack Logs to current IM Session



This is another version of my original “One Click send SIP-Stack logs as an Email to Administrator”, in my first release the program is developed to collect the log files zip them then attach it to an email and send it to the pre-defined Administrator’s or IT-Help desk email, in this article I’m sharing a new version of the that program, this one is even better why? this one will collect the log file, zip it and transfer the file using the built-in “File Transfer” feature of Lync / Skype for Business.

This program was build with the wonderful help of Mr.Christoph Weste, All credit goes to him for taking the time to develop this important part that allow Lync / Skype for Business client to use the Share File feature to send the log file instead of sending it via Email. follow him on Tiwtter @_CWeste


What does it do?

this new version of the program, as I already mentioned will check if the logging is enabled, then collect the sip-stack log files located under a hidden location not easy to find for non-technical users then copy it to a temp folder , zip it and then share it with the Lync / Skype for business contact using the built-in File Share feature of Lync / Skype for business server.


How to Install it?

once downloaded, you will have the following:

  • Install.ps1 : A PowerShell script that will install the Registry key needed for the program to be integrated into the Lync or Skype for Business command menu.
  • SendLyncLogs-v2 folder: the folder that contain the program itself that collect, copy, zip and share the file with the Lync / Skype for Business contact


  • copy the contect of the SendLyncLogs-v2 folder to a shared location on your Network where it can be used by your users, e.g (\\fileserver\sendlynclogs\)
  • using GPO or SCCM whatever you prefer, run the PowerShell script once on your user’s machines, it will add some registry keys that will make the “Share Log files” option available in the command menu of the clients.
  • the PowerShell Script takes 3 parameters
    • -NetworkPath :  must be the path of the program “Case-Sensitive” and you have to the following text after the path %user-id% %contact-id%
    • -ApplicationPath: must be the path of the program (Same as before) but without the extra text in the end.
    • -Client: should be what you are using in the organization only two values are accepted lync  or  Skype


  • once it ran you should see the following Registry keys and values created


How to use it?

using it very simple, a user with a problem and you require the sip-stack of the client itself for your troubleshooting, then they can start a normal IM session with the administrator or the IT-Helpdesk personal, and Share the file with one click


or just on the Lync / Skype for Business contact list, right click the contact and send it


that’s it, simple and easy 🙂 and I hope it will help more administrators.

Download SendLyncLogs-V2

I will be uploading the codes to my GitHub soon and for feedbacks or bug reporting please send them to

Author: Lyncdude

A Senior Service Engineer with more than 9 years of experience in Microsoft Exchange and Microsoft Lync Server / Skype for Business. Egyptian guy lives and works in Frankfurt - Germany. what is written in this blog is my own opinion and thoughts, not my employer and does not reflect their opinion

One thought on “One Click Attach SIP-Stack Logs to current IM Session”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: