header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

[August 25th, 2008] Check the home page regarding PowerShell related news from a brand new sponsor: Idera

Display all data for a particular user
Last Post 21 Aug 2008 02:32 PM by superdave67. 4 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
superdave67User is Offline
New Member
New Member
Posts:5

--
14 Aug 2008 04:39 PM  

I really only need to display the Company and Department associated with each user to verify they are correct, instead of going through each users Properties in the Exchange 2007 Console.  I figured I could write a simple powershell command to do this:

get-mailbox -identity "superdave67" | format-table alias, company, department

or better yet:

get-mailbox "superdave67" | format-table all

Granted, these are not a valid commands (well, the first one is), but I simply need something to retrieve the data. We've recently migrated hundreds of users from Notes, and many users have moved departments and such, and would like a simple output to identify the department.  I figured I'd ask the more broad question of displaying ALL the data associated with a particular user in case I need to look at other information on a global scale.

 

Thanks all,
Dave

bsonposhUser is Offline
Basic Member
Basic Member
Posts:388

--
14 Aug 2008 04:47 PM  
Perhaps this

Get-Mailbox "testusr1" | get-user | select name,Company,department

I dont believe Get-Mailbox has those properties
superdave67User is Offline
New Member
New Member
Posts:5

--
14 Aug 2008 04:52 PM  

Perfect!  Now... how about displaying all data associated with the user?  Such as:

Get-Mailbox | Get-User | Select All

type thingy.  Just so I can look through the Properties and be able to identify the relevant item within the PowerShell world... so to speak.

Thanks again,
Dave

bsonposhUser is Offline
Basic Member
Basic Member
Posts:388

--
14 Aug 2008 10:16 PM  
Get-Mailbox | Get-User | fl *
superdave67User is Offline
New Member
New Member
Posts:5

--
21 Aug 2008 02:32 PM  
Cool. That's about does it!

Thanks,
Dave
You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • ShellTools, LLC • Microsoft Windows Server 2008 footer
footer