PowerTip: Remove User from Lync Server 2013 with PowerShell

Summary: Learn how to use -whatif to safely remove a user from Lync Server 2013.

Hey, Scripting Guy! Question I need to remove users from Lync by using PowerShell, but I'm a bit nervous.
          Is there some kind of built-in test mode in Lync?

Hey, Scripting Guy! Answer Use the -whatif parameter when you disable the user to show what will happen
          without actually changing the system, for example:

Disable-CSUser –identity 'Zaphod Beeblebrox' –whatif

Comments (4)

  1. @Desmond

    Thanks for catching that. It was a typo. It should read "REMOVE" 🙂


  2. Desmond Lee says:

    The correct way to disable a Lync-enabled user is:

    Set-CsUser -identity "Desmond Lee" -Enabled $false
    #use $true to re-enable

    Using Disable-CsUser will cause all existing settings to be removed.


    Disable or Re-Enable User Account for Lync Server

    Remove a User Account from Lync Server

    Thanks / rgds,


  3. Vishwa says:

    I need to remove multiple user at one go, let me know how to achieve this,

Skip to main content