Disable-LyncUser cmdlet turns off Lync feature for Active Directory user.

This cmdlet supports risk-mitigation parameters.

Input parameters

#
Parameter
Type

Mandatory (R/O)

Description
Restrictions/Valid Values
1 Authentication Information (all parameters)  
2

Identity

(aliases: GUID, DistinguishedName)

string R A property, that is used for managing the user

Value of one of these parameters  can be used as Identity:

#ParameterDescription
1 GUID Globally Unique Identifier (ObjectGuid)
2 DistinguishedName Unique name of the object in Active Directory
3

LyncLicense

LyncLicense O Type of the license
  • Standard. This is a default value if the license is not specified.
  • Enterprise
  • EnterprisePlus
4 OriginatingServer string O

Address of the server (domain name), where  the  object  physically  exists.

Note: It is recommended to use this parameter as input to guarantee execution of operation with actual data. To get this parameter use Get-LyncUser cmdlet.

Max length is 255 symbols

Output parameters

No parameters

Examples of using Enable-LyncUser cmdlet

Disabling Lync service for user by GUID:

Disable-LyncUser -Identity "28597B23-D5D7-4841-AC14-E86E7E33CCFA"

Disabling Lync service for all account's users:

Get-LyncUser | Disable-LyncUser -Force -Confirm:$false