Storage group / City
Hello,I would like to add from the below shell command the users' "city". Can you advice me to implemant the "City"? (I use Exhange 2007 - Mailbox / address and Phone / city)get-mailbox -resultsize unlimited | select samaccountname, @{name="Last Name";expression={(get-user $_.samaccountname).lastname}}, @{name="First Name";expression={(get-user $_.samaccountname).firstname}},@{name="Storage Group";expression={$_.database.parent.name}}Thanks all in advance,Graig
May 14th, 2009 1:09pm

get-mailbox -resultsize unlimited | select samaccountname, @{name="Last Name";expression={(get-user $_.samaccountname).lastname}}, @{name="First Name";expression={(get-user $_.samaccountname).firstname}},@{name="Storage Group";expression={$_.database.parent.name}}, @{name="City";expression={(get-user $_.samaccountname).City}}Amit Tank | MVP - Exchange Server | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2009 1:49pm

Awesome!!! that great. Any chance to have that list in one row??Thanks Amit
May 14th, 2009 2:27pm

You are welcome... :) In a raw, with FT pipeline... get-mailbox -resultsize unlimited | FT samaccountname, @{name="Last Name";expression={(get-user $_.samaccountname).lastname}}, @{name="First Name";expression={(get-user $_.samaccountname).firstname}},@{name="Storage Group";expression={$_.database.parent.name}}, @{name="City";expression={(get-user $_.samaccountname).City}} | FTAmit Tank | MVP - Exchange Server | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2009 2:48pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics