TechOnTip Weblog

Run book for Technocrats

PowerShell – Expand Multivalued Attributes

Posted by Brajesh Panda on April 25, 2014

Use –expandproperty for multi value attributes. Here I am expanding proxy addresses of a user.

Get-Recipient brajesh.panda@techontip.com | select name -Expandproperty emailaddresses | where {$_.smtpaddress} | ft name, smtpaddress

Name SmtpAddress

—-

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: