100 likes | 354 Views
Lync Server 2010 and PowerShell. Thomas Kisner Unified Communications Architect, BNSF Railway. Warning!. The next slide will either delight you, or scare you to death.
E N D
Lync Server 2010 and PowerShell Thomas Kisner Unified Communications Architect, BNSF Railway
Warning! The next slide will either delight you, or scare you to death. While I hope for the former initial reaction, if you are afraid I will attempt to turn your fear to delight by the end of the presentation If I fail, remember the pizza was free
All of the power of .NET Access the .NET framework and classes variables, functions, branching (if-then-else), loops (while, do, for, and foreach), and structured error/exception handling All Cmdlet output are .NET objects, those objects can be pipelined as input for other another Cmdlet *EVERYTHING* that can be done in the GUI can be done (and scripted) in PowerShell
Alright, I’m delighted. What the heck does what you said mean? • Task that seemed impossible (or improbable) to perform before become easy. • PowerShell has saved my bacon, and that of my team, many times over – • Change everyone’s PIN for Exchange UM and send them an e-mail, but only if they had never logged into UM • Make UM Distro lists into a 1 step process • Delegate Authority to Admin tasks before RBAC
Alright, what does this have to do with Lync? Unlike OCS, Lync has it’s own module of nearly 550 cmdlets to manage your deployment Lync Server Control Panel uses PowerShell Import-Module Lync
User Cmdlets Get-CsUser Get-CsAdUser Get-CsAdUser | Select-Object DisplayName, SipAddress, Enabled Set-CsUser
Ready made scripts The Lync PowerShell site contains many useful, ready made scripts: http://blogs.technet.com/b/csps/p/scripts.aspx If your trying to do it, chances are someone else has done it, wrote a script for it and posted it on the web Cheat Sheet download: http://www.powergui.org/servlet/KbServlet/download/3091-102-5259/LyncServer2010PowerShell.pdf