Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

cmdlet to show which users are in a given DB or SG.

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> Management >> cmdlet to show which users are in a given DB or SG. Page: [1]
Login
Message << Older Topic   Newer Topic >>
Limited time MSExchange.org offer! -- 1.Sep.2008 1:00:00 PM
TechGenix and SolarWinds have partnered to provide free copies of SolarWinds Exchange Monitor to all visitors who join the MSExchange.org Forums. SolarWinds Exchange Monitor is a handy desktop dashboard that continuously monitors Microsoft Exchange to deliver real-time insight into Exchange services, mail queue sizes, and host server health. Learn more about Exchange Monitor and the free offer!
cmdlet to show which users are in a given DB or SG. - 10.Apr.2007 12:08:21 PM   
shawncox

 

Posts: 7
Joined: 10.Apr.2007
Status: offline
I'm looking for a cmdlet that will give me get-mailboxstatistics for specific DB or SG.   Or even just a list of the users in a given DB or SG.  I'm not a powershell guru at all yet.  Right now I'm just uisng get-mailboxstatistics | fl and post processing with perl the output to get what I need.  I know there has to be a way to do this without the post processing.

Thanks much.
--S

Post #: 1
RE: cmdlet to show which users are in a given DB or SG. - 11.Apr.2007 11:27:27 PM   
knsmith

 

Posts: 13
Joined: 14.Sep.2004
From: Colorado
Status: offline
You can find mailbox statistics for a specific database using:

Get-MailboxStatistics -Database:"DatabaseName"

To get mailbox statistics for a storage group you can use:

Get-MailboxDatabase | Where { $_.StorageGroupName -eq "SG1" } | Get-MailboxStatistics

If you just want to find the user mailboxes in a particular datatbase you can use:

Get-Mailbox -Database:"DatabaseName"

(in reply to shawncox)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> Management >> cmdlet to show which users are in a given DB or SG. Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts