Learn about Windows PowerShell
Summary: Learn how to use -whatif to safely remove a user from Lync Server 2013.
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?
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
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,
Thanks for catching that. It was a typo. It should read "REMOVE" :)