Prevent Skype for Business from reverting to the old Lync interface

Microsoft pushed two updates (KB2889923 and KB2889853) this month to upgrade Lync 2013 client to Skype for Business. Anyhow, if the organization is running Lync Server 2010 or 2013, every time you launch Skype for Business you will see the following message:

You have the newer version of Lync called Skype for Business. However, your admin would like you to use Lync or it’s the only version your server supports. Please restart now to use Lync.

Clicking Restart now button would relaunch Skype for Business in Lync user interface.

You can avoid this by performing the following registry changes: Continue reading

Setting a custom color for IMs on Lync 2013

By default, Microsoft Lync 2013 allows you to select only one of 40 different colors to be used for IM messages. For some of us, it might not be enough. Unfortunately, if you want to use a custom color for your IM chat messages, there is no way to do that. Well, there is no way to do that directly via GUI, but it is actually possible to do by modifying the registry.

Most of Lync 2013 settings are stored under the following key, where {EMAIL} is the account you use for signing into Lync: Continue reading

Customizing Windows PowerShell command prompt

Windows PowerShell is a great tool and, if you are using it frequently, one of the things you might want to do is to customize the default command prompt. This is actually a quite common activity among Linux users; hence, there are many tutorials on doing that as well. In case you want to do this kind of customization to Windows PowerShell, please follow the guidance below.

Changing the prompt

The text displayed as the prompt for each line in the PowerShell is defined with Prompt() function. You are free to override this function (hence, change the command prompt) the same way you can override any other function – by defining the function in the default user profile script. The profile scripts can be defined at one of the following locations: Continue reading

Creating ZIP archive from a Batch script

A challenge

While writing a data collection script, I had a requirement to compress some files into a single archive. At first, it did not sound too challenging (Windows has integrated ZIP supported via Send To Compressed (zipped) folder since Windows XP), but it seems it is not so easy if you throw few extra requirements for this task:

  1. Do not use any 3rd party tools (e.g. command line executable of 7-Zip).
  2. Everything needs to be within a single file (no external VBS or PowerShell scripts).
  3. Folder, which will be compressed, contains few levels of sub-folders.
  4. Directory structure must be preserved during compression.

After reading some Microsoft documentation, many online forums and trying many differing things, I finally came up with the solution. Continue reading

Setting up IPv6 in my home network

TTTAs soon as Microsoft released Windows Server 2012 R2 images on MSDN, I decided it is time for me to upgrade my home environment. I will probably dedicate a separate post on my home infrastructure, while leaving this post for one of the decisions I made for my environment – using IPv6.

Setting static IPv6 addresses

Currently, I have 6 Windows Server machines in my environment, so the first thing I needed to do was setting static IPv6 addresses on them, starting with my domain controller/DNS server.

To make things easier for me, I used this online tool to generate a unique local address range prefix, which I am going to use in my environment. For the sake of example, let’s say the prefix that was generated for me was fdd1:b9ea:da43:964e::/64. Having it, I set IP addresses on my servers as following: Continue reading