• Home
  • About us
  • Contact
  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Welcome to www.DoitFixit.com

www.doitfixit.com

  • Microsoft
  • Fortinet
  • Symantec
  • Office 365
  • Azure
  • Others
  • Show Search
Hide Search

Microsoft Lync Server Management Shell Useful Commands

January 2, 2012 By Damitha Anuradha Leave a Comment

Microsoft Lync Server 2010 introduces a large set of new and improved features compared to what was available in Microsoft Office Communications Server 2007 R2. One improvement is the way in which you manage your implementation. For example, there’s a new user interface, called the Lync Server Control Panel, which represents a big shift from what most people are used to with the Microsoft Management Console. The other major improvement to manageability is the inclusion of Windows PowerShell. (Description paste from here)

Get help for any cmdlet:
Get-Help -Full

Enable User for Lync

Enable-CsUser -Identity “NameOfTheUser” -RegistrarPool “LyncRegistrarPool” -SipAddressType SamAccountName -SipDomain DomainName -EnterpriseVoiceEnabled $False

Example:
Enable-CsUser -Identity “Damitha Anuradha” -RegistrarPool “sip.doitfixit.com” -SipAddressType SamAccountName -SipDomain doitfixit.com -EnterpriseVoiceEnabled $False

Enable Enterprise Voice for Lync user

Set-CsUser -Identity “NameOfTheUser” -EnterpriseVoiceEnabled $True -LineUri “LineUri“

Example:
Set-CsUser -Identity “Damitha Anuradha” -EnterpriseVoiceEnabled $True -LineUri “tel:+502”

Change sip address of a Lync user

Set-CsUser -Identity “Name OfTheUser” -SipAddress “NewSipAddress“

Example:
Set-CsUser -Identity “Damitha Anuradha” -SipAddress “sip:damitha@doitfixit.lk”

Get all AD Users which not enabled for Lync

Get-CsAdUser -Filter {Enabled -eq $null} | Format-Table -wrap -Property DisplayName > Location

Example:
Get-CsAdUser -Filter {Enabled -eq $null} | Format-Table -wrap -Property DisplayName > C:\ADUsers.txt

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • privacy
  • Veeam Backup – Failed to prepare guests for volume snapshot
  • How to Configure/Integrate FortiClient EMS with FortiAnalyzer
  • Backup Hyper-V Virtual Machines with Pass-Through Disks
  • Slow Network Speed with Hyper-V Virtual Machines on Windows Server Server 2019
  • Block MS Exchange Server OWA access from Internet
  • Error 1168 – The specified product key could not be validated.
  • Unable to Enable Desktop Icons after Joining to the Domain
  • Veritas BackupExec – A backup set was created which contains no data 0xe00084b7
  • Download Offline Address Book – Unexpected Error has occurred

Deprecated: genesis_footer_creds_text is deprecated since version 3.1.0! Use genesis_pre_get_option_footer_text instead. This filter is no longer supported. You can now modify your footer text using the Theme Settings. in /home/wwwdoitf/public_html/wp-includes/functions.php on line 5238