Archive

Archive for the ‘Lync Server/Skype for Business Server’ Category

[Redirect] Automated Prerequisite Installation via PowerShell for Lync Server 2010 on Windows Server 2008 R2

April 27th, 2011 No comments

Update: A newer version of this script has been released, and is available at Set-Lync2010Features.ps1 v5.0 – automated prereq PowerShell script for Lync Server 2010 released

If you’ve followed this blog for a while, you may remember one of the more popular posts, Automated prerequisite installation via PowerShell for Exchange Server 2010 on Windows Server 2008 R2. In that script, I used some simple techniques to help take some of the boring tasks out of installing Exchange 2010 servers. It was updated several times, and a new update is coming soon.

Well, Lync Server MVP Stale Hansen took that script and adapted it to installing the prerequisites for Lync Server 2010 and posted the results online. He did some neat things like installing the Best Practice Analyzer and the Resource Kit.

I got tasked with Lync responsibilities on my current project, so I took a closer look at the Stale’s version of the script, and decided to add some more code. Here are some of the changes:

  1. The script now prompts you about installing the telnet client. The telnet client isn’t REQUIRED, but is often recommended. Since my current project is in a high security environment, installing anything that isn’t absolutely required is generally frowned upon. So I made it optional.
  2. I added the option to disable IPv6. Lync Server 2010 doesn’t make use of IPv6 at all, so this option might prove handy.
  3. I added the option to install the Lync Server 2010 Stress and Performance Tool, the Visual C++ 2008 Redistributable that the Lync installer complains about, and options to install the recently released IM and Expert feature as well as starting Windows Update. Note that the IM an Expert piece is still early in testing. Note also that the Visual C++ install should be done after rebooting the server, otherwise it throws errors.
  4. Behind the scenes, I cleaned up a LOT of code – something I’ve been meaning to do to the Exchange prereq script as well. The script now looks to see if something is installed before trying to install it. The Resource Kit and BPA both have documentation that is MS Word based, so the script will ask you if you want to automatically install the free MS Word viewer and related filters.
  5. The OS detection method was cleaned up, and now supports any version of 2008 R2, including RTM and various service packs.

I’ve built 6 production servers and haven’t noticed any issues yet. But, as always, use at your own risk.

The code can be downloaded at Set-Lync2010Windows2008R2Features.zip. Rights required are local server admin. Also, set your execution policy to unrestricted in order to be able to run this unsigned script.

I welcome any comments, suggestions, concerns.

Changelog: Set-Lync2010Features.ps1

November 27th, 2009 No comments

This is the changelog page for Set-Lync2010Features.ps1. You will find a complete list of released versions, their dates, and the features and issues addressed in each. Please refer to the script’s main page for more information including download links, installation details, and more.

v5.3 – 12-23-2011

  1. Added requirements for Front End and Director servers to support Mobility. This includes the Dynamic Compression Windows 2008 feature.

v5.2 – 08-17-2011

  1. Added option (& related Get-Webpage function) to download trial version of Lync (just opens a browser to the site)
  2. Added option to restrict feature availability to Standard CAL

v5.1 – 07-26-2011

  1. Detect if Lync is installed before installing some utilities and tools
  2. DSR loopback adapter option added
  3. Lync Server Updates option was updated to represent the 07-25-2011 release per KB 2493736
  4. Menu was split into pre/post install tasks, with post install tasks only visible if Lync Server is detected on the box

v5.0 – 07-25-2011

  1. added “Find Lync Versions” and related .Net 4 installer
  2. added functions for creating shortcuts and unzipping files
  3. added function for “Windows Media Format Runtime” (per http://support.microsoft.com/kb/2522454)
  4. some variable cleanup
  5. some error checking
  6. added function to run installation routines. This makes it easier to do consistent screen output (menu)
  7. cleaned up variable removal when exiting
  8. Installation of Silverlight
  9. Updated installation of Visual C++ Redistributable to latest version (per MS11-025)
  10. added option to enable federation with Office365

v4.2 – 05-26-2011

  1. updated function to allow downloading files to different folders and different names
  2. added OWA / Lync integration feature

v4.1 – 05-01-2011

  1. added group membership check (checks for local admin, CSAdmin* and RTCUniv* only)
  2. added 04-20-2011 “Lync Server update download”
  3. added chm file download and install & shortcut
  4. added standalone AV server prereq option
  5. added PowerShell transcript
  6. added backup current config

v4.0 – 04-06-2011

  1. added Visual C++ option
  2. added Stress and Performance Tool
  3. added Disable IPv6
  4. added “IM an Expert”
  5. added Windows Update
  6. lots of code cleanup

v3.0 – 02-2011 by StÃ¥le Hansen (http://msunified.net)

v1.0 – 11/27/2009

  1. initial version