locked
Need to disable on prem lync users from a specific pool. RRS feed

  • Question

  • We are moving to Skype online and have moved a certain amount already. In on our on-prem environment, we have 2 different locations and thus 2 separate Registrar pool's. I would like to know what command I can run to disable all users from a certain pool? So for example, if I have 600 users in pool1.domain.com and have another 600 in pool2.domain.com. I want to disable everyone in pool1.domain.com, what can I run to accomplish this? 

    Thanks in advance. 

    Tuesday, May 30, 2017 7:11 PM

All replies

  • Hi LifeisGood,

    Please run the following command to disable all Lync users who are hosting on specific pool:

    Get-CsUser | ?{$_.registrarPool -match “<the FQDN of pool>” -and $_.Enabled -eq $true} | Disable-User


    Best Regards,
    Jim Xu
    TechNet Community Support


    Please remember to mark the replies as answers if they helped.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Proposed as answer by danielategan Thursday, June 1, 2017 10:05 AM
    Wednesday, May 31, 2017 8:18 AM