søndag 13. oktober 2013

Lync Command

If you’ve not been disabling users in Lync while disabling them in AD, here’s a one liner to find those users:
Get-CsAdUser | ?{$_.UserAccountControl -match "AccountDisabled" -and $_.Enabled -eq $true} | ft Name,Enabled,SipAddress -auto

Ingen kommentarer: