Besides Get-CsUser and Get-CsAduser (both part of the Lync PowerShell Management Module), you may need to run Get-ADUser to work with various AD attributes that define how a Lync-enabled user account behaves (Get-ADUser comes from the PowerShell Module for ActiveDirectory*).
Simply executing Get-ADuser $userID returns a pre-defined set of attributes of the user object. Tagging -properties * to the statement gives us a set of available properties that contain some types of values. What this means is that if you are looking for a specific property without any value assigned, say msExchPoliciesExcluded, Get-ADuser $userID -properties * will retrieve nothing back. In comparison, ADSIEdit.msc permits you to view the complete set of properties associated with the object, with the option to filter out those with or without values.
Now what does this Exchange-like property msExchPoliciesExcluded do and its role in Lync? Stay tuned for more.
* Windows Server 2008 R2 and higher
1 Comment »
One Response to “TIP #1305: Lync PowerShell - Working with AD/Exchange Attributes (Part 1A)”
Leave a Reply
You must be logged in to post a comment.