Some of us were surprised by the Lync 2013/Skype for Business Client update, since this security update also included the Skype4B User Interface. Lync/Skype4B administrators could still use the recently added EnableSkypeUI setting to the Client Policy in order to manage which UI they want the user to see.
In our Lync Lab, we have it configured to False and the user is able to see the Lync 2013 UI. The icon, however, is still Skype for Business:
As this can cause confusion in some users, the purpose of this article is to show a workaround to this. Keep in mind that future client updates will change the icon again.
In the Start Menu, we had this:
The folder location is “%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office 2013”.
Note: In our lab, the folder is C:\Windows\Installer\{90150000-0011-0000-0000-0000000FF1CE}, and we can check were the file is with this:
Get-ChildItem -Path C:\Windows\Installer -Filter lyncicon.exe -Recurse
We need to get the icon before the update and copy it with the name lyncoldicon.exe to the same folder. Although we can copy it to another folder, it’s preferable to keep all icons in the same location:
It’s a good practice to keep both icons because we may want to change back to Skype for Business icon.
In a PowerShell window with elevated permissions, we run the following cmdlets:
[code language=”powershell”]
$shortcutLocation = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office 2013\"
$newShortcut = "Lync 2013.lnk"
$oldShortcut = "Skype for Business 2015.lnk"
$iconLocation = "C:\Windows\Installer\{90150000-0011-0000-0000-0000000FF1CE}\"
$iconComment = "Connect with people everywhere through voice and video calls, Lync Meetings, and IM."
#Change the icon:
Rename-Item $iconLocation"lyncicon.exe" $iconLocation"skypeicon.exe"
Rename-Item $iconLocation"lyncoldicon.exe" $iconLocation"lyncicon.exe" -force
# Create a copy of the Shortcut:
Rename-Item $shortcutLocation$oldShortcut $newShortcut
# Change the new shortcut settings
$shell = New-Object -COM WScript.Shell
$shortcut = $shell.CreateShortcut($shortcutLocation+$newShortcut)
$shortcut.Description = $iconcomment
$shortcut.Save()
[/code]
Note: All scripts should be extensively tested before being applied in a production environment.
After running the cmdlets, the Start Menu should change to this:
And after a reboot the icon will also change in the TaskBar:
To rollback the changes:
[code language=”powershell”]
$shortcutLocation = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office 2013\"
$oldShortcut = "Lync 2013.lnk"
$newShortcut = "Skype for Business 2015.lnk"
$iconLocation = "C:\Windows\Installer\{90150000-0011-0000-0000-0000000FF1CE}\"
$iconComment = "Connect with people everywhere through voice and video calls, Skype Meetings, and IM."
#Change the icon:
Rename-Item $iconLocation"lyncicon.exe" $iconLocation"lyncoldicon.exe"
Rename-Item $iconLocation"skypeicon.exe" $iconLocation"lyncicon.exe" -force
# Create a copy of the Shortcut:
Rename-Item $shortcutLocation$oldShortcut $newShortcut
# Change the new shortcut settings
$shell = New-Object -COM WScript.Shell
$shortcut = $shell.CreateShortcut($shortcutLocation+$newShortcut)
$shortcut.Description = $iconcomment
$shortcut.Save()
[/code]