Count user accounts in storage group

This is a discussion on Count user accounts in storage group within the Microsoft Exchange forums in Microsoft Tools category; Hi Is it possible and how to view how many users are created into first,second,third, etc.. storage group on Exchange 2007. I have 4 storage groups, each has about 100 users, but some of them have been deleted. Now I want to know, how many and which users are into store1,store2,store3,store4. How can this be done? Regards,Miha...

Go Back   Application Development Forum > Microsoft Tools > Microsoft Exchange

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 02:53 AM
Miha
Guest
 
Default Count user accounts in storage group

Hi

Is it possible and how to view how many users are created into
first,second,third, etc.. storage group on Exchange 2007.
I have 4 storage groups, each has about 100 users, but some of them have
been deleted. Now I want to know, how many and which users are into
store1,store2,store3,store4. How can this be done?
Regards,Miha


Reply With Quote
  #2  
Old 08-27-2008, 10:13 AM
Andy David {MVP}
Guest
 
Default Re: Count user accounts in storage group

On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
wrote:

>Hi
>
>Is it possible and how to view how many users are created into
>first,second,third, etc.. storage group on Exchange 2007.
>I have 4 storage groups, each has about 100 users, but some of them have
>been deleted. Now I want to know, how many and which users are into
>store1,store2,store3,store4. How can this be done?
>Regards,Miha
>



EMC filtering on datgabase or powershell.
Something like:


Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox



Reply With Quote
  #3  
Old 08-27-2008, 10:13 AM
Andy David {MVP}
Guest
 
Default Re: Count user accounts in storage group

On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
wrote:

>Hi
>
>Is it possible and how to view how many users are created into
>first,second,third, etc.. storage group on Exchange 2007.
>I have 4 storage groups, each has about 100 users, but some of them have
>been deleted. Now I want to know, how many and which users are into
>store1,store2,store3,store4. How can this be done?
>Regards,Miha
>



EMC filtering on datgabase or powershell.
Something like:


Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox



Reply With Quote
  #4  
Old 08-28-2008, 01:54 AM
Miha
Guest
 
Default Re: Count user accounts in storage group

Hi Andy,

thanks for a tip, but when I run "Get-MailboxDatabase -Identity
"YourDatabaseIdentity" | Get-Mailbox" I get report like

Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
Administrator Administrator frodo unlimited

but I want to know how many accounts are created in store1-store5? Any other
tricks? What did you mean with EMC filtering on database?
Regards,Miha

"Andy David {MVP}" <adavid@pleasekeepinngcheesebucket.com> wrote in message
news:c3oab4hl6ca5a5ea5mc7url2obn6fplbcv@4ax.com...
> On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
> wrote:
>
>>Hi
>>
>>Is it possible and how to view how many users are created into
>>first,second,third, etc.. storage group on Exchange 2007.
>>I have 4 storage groups, each has about 100 users, but some of them have
>>been deleted. Now I want to know, how many and which users are into
>>store1,store2,store3,store4. How can this be done?
>>Regards,Miha
>>

>
>
> EMC filtering on datgabase or powershell.
> Something like:
>
>
> Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox
>
>
>



Reply With Quote
  #5  
Old 08-28-2008, 01:54 AM
Miha
Guest
 
Default Re: Count user accounts in storage group

Hi Andy,

thanks for a tip, but when I run "Get-MailboxDatabase -Identity
"YourDatabaseIdentity" | Get-Mailbox" I get report like

Name Alias ServerName ProhibitSendQuota
---- ----- ---------- -----------------
Administrator Administrator frodo unlimited

but I want to know how many accounts are created in store1-store5? Any other
tricks? What did you mean with EMC filtering on database?
Regards,Miha

"Andy David {MVP}" <adavid@pleasekeepinngcheesebucket.com> wrote in message
news:c3oab4hl6ca5a5ea5mc7url2obn6fplbcv@4ax.com...
> On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
> wrote:
>
>>Hi
>>
>>Is it possible and how to view how many users are created into
>>first,second,third, etc.. storage group on Exchange 2007.
>>I have 4 storage groups, each has about 100 users, but some of them have
>>been deleted. Now I want to know, how many and which users are into
>>store1,store2,store3,store4. How can this be done?
>>Regards,Miha
>>

>
>
> EMC filtering on datgabase or powershell.
> Something like:
>
>
> Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox
>
>
>



Reply With Quote
  #6  
Old 08-28-2008, 08:29 AM
Elan Shudnow
Guest
 
Default Re: Count user accounts in storage group

Maybe try something like:

$userCount = 0
$userDatabase = Get-MailboxDatabase -Identity "Mailbox Database" |
Get-Mailbox
Foreach ($user in $userDatabase) {
$userCount++
}
Write-Host There are $userCount users

I can write something for you later on today if you want it to
automatically go through each mailbox database and gather counts on all
users on each database if you really want.

--
Elan Shudnow
http://www.shudnow.net



"Miha" <miha.bernik@email.si> wrote in message
news:#FwvDKNCJHA.3396@TK2MSFTNGP03.phx.gbl:

> Hi Andy,
>
> thanks for a tip, but when I run "Get-MailboxDatabase -Identity
> "YourDatabaseIdentity" | Get-Mailbox" I get report like
>
> Name Alias ServerName ProhibitSendQuota
> ---- ----- ---------- -----------------
> Administrator Administrator frodo unlimited
>
> but I want to know how many accounts are created in store1-store5? Any other
> tricks? What did you mean with EMC filtering on database?
> Regards,Miha
>
> "Andy David {MVP}" <adavid@pleasekeepinngcheesebucket.com> wrote in message
> news:c3oab4hl6ca5a5ea5mc7url2obn6fplbcv@4ax.com...
>
> > On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
> > wrote:
> >

>
> >>Hi
> >>
> >>Is it possible and how to view how many users are created into
> >>first,second,third, etc.. storage group on Exchange 2007.
> >>I have 4 storage groups, each has about 100 users, but some of them have
> >>been deleted. Now I want to know, how many and which users are into
> >>store1,store2,store3,store4. How can this be done?
> >>Regards,Miha
> >>

> >
> >

>
> > EMC filtering on datgabase or powershell.
> > Something like:
> >
> >
> > Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox
> >
> >
> >


Reply With Quote
  #7  
Old 08-28-2008, 08:29 AM
Elan Shudnow
Guest
 
Default Re: Count user accounts in storage group

Maybe try something like:

$userCount = 0
$userDatabase = Get-MailboxDatabase -Identity "Mailbox Database" |
Get-Mailbox
Foreach ($user in $userDatabase) {
$userCount++
}
Write-Host There are $userCount users

I can write something for you later on today if you want it to
automatically go through each mailbox database and gather counts on all
users on each database if you really want.

--
Elan Shudnow
http://www.shudnow.net



"Miha" <miha.bernik@email.si> wrote in message
news:#FwvDKNCJHA.3396@TK2MSFTNGP03.phx.gbl:

> Hi Andy,
>
> thanks for a tip, but when I run "Get-MailboxDatabase -Identity
> "YourDatabaseIdentity" | Get-Mailbox" I get report like
>
> Name Alias ServerName ProhibitSendQuota
> ---- ----- ---------- -----------------
> Administrator Administrator frodo unlimited
>
> but I want to know how many accounts are created in store1-store5? Any other
> tricks? What did you mean with EMC filtering on database?
> Regards,Miha
>
> "Andy David {MVP}" <adavid@pleasekeepinngcheesebucket.com> wrote in message
> news:c3oab4hl6ca5a5ea5mc7url2obn6fplbcv@4ax.com...
>
> > On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
> > wrote:
> >

>
> >>Hi
> >>
> >>Is it possible and how to view how many users are created into
> >>first,second,third, etc.. storage group on Exchange 2007.
> >>I have 4 storage groups, each has about 100 users, but some of them have
> >>been deleted. Now I want to know, how many and which users are into
> >>store1,store2,store3,store4. How can this be done?
> >>Regards,Miha
> >>

> >
> >

>
> > EMC filtering on datgabase or powershell.
> > Something like:
> >
> >
> > Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox
> >
> >
> >


Reply With Quote
  #8  
Old 08-28-2008, 09:11 AM
Miha
Guest
 
Default Re: Count user accounts in storage group

Thank you very much for your help. I have modified your script, so now it
counts how many users are in each storage group like

$userCount = 0
$userDatabase = Get-MailboxDatabase -StorageGroup "First storage group" |
Get-Mailbox
Foreach ($user in $userDatabase) {
$userCount++
}
Write-Host There are $userCount users in First storage group

I want that it will also display which users are in that store, but can't
figure it out how to?
Regards,Miha

"Elan Shudnow" <SubstituteThisWithMyFirstName@shudnow.net> wrote in message
news:OSP83mQCJHA.4884@TK2MSFTNGP02.phx.gbl...
> Maybe try something like:
>
> $userCount = 0
> $userDatabase = Get-MailboxDatabase -Identity "Mailbox Database" |
> Get-Mailbox
> Foreach ($user in $userDatabase) {
> $userCount++
> }
> Write-Host There are $userCount users
>
> I can write something for you later on today if you want it to
> automatically go through each mailbox database and gather counts on all
> users on each database if you really want.
>
> --
> Elan Shudnow
> http://www.shudnow.net
>
>
>
> "Miha" <miha.bernik@email.si> wrote in message
> news:#FwvDKNCJHA.3396@TK2MSFTNGP03.phx.gbl:
>
>> Hi Andy,
>>
>> thanks for a tip, but when I run "Get-MailboxDatabase -Identity
>> "YourDatabaseIdentity" | Get-Mailbox" I get report like
>>
>> Name Alias ServerName ProhibitSendQuota
>> ---- ----- ---------- -----------------
>> Administrator Administrator frodo unlimited
>>
>> but I want to know how many accounts are created in store1-store5? Any
>> other
>> tricks? What did you mean with EMC filtering on database?
>> Regards,Miha
>>
>> "Andy David {MVP}" <adavid@pleasekeepinngcheesebucket.com> wrote in
>> message
>> news:c3oab4hl6ca5a5ea5mc7url2obn6fplbcv@4ax.com...
>>
>> > On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
>> > wrote:
>> >

>>
>> >>Hi
>> >>
>> >>Is it possible and how to view how many users are created into
>> >>first,second,third, etc.. storage group on Exchange 2007.
>> >>I have 4 storage groups, each has about 100 users, but some of them
>> >>have
>> >>been deleted. Now I want to know, how many and which users are into
>> >>store1,store2,store3,store4. How can this be done?
>> >>Regards,Miha
>> >>
>> >
>> >

>>
>> > EMC filtering on datgabase or powershell.
>> > Something like:
>> >
>> >
>> > Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox
>> >
>> >
>> >

>



Reply With Quote
  #9  
Old 08-28-2008, 09:11 AM
Miha
Guest
 
Default Re: Count user accounts in storage group

Thank you very much for your help. I have modified your script, so now it
counts how many users are in each storage group like

$userCount = 0
$userDatabase = Get-MailboxDatabase -StorageGroup "First storage group" |
Get-Mailbox
Foreach ($user in $userDatabase) {
$userCount++
}
Write-Host There are $userCount users in First storage group

I want that it will also display which users are in that store, but can't
figure it out how to?
Regards,Miha

"Elan Shudnow" <SubstituteThisWithMyFirstName@shudnow.net> wrote in message
news:OSP83mQCJHA.4884@TK2MSFTNGP02.phx.gbl...
> Maybe try something like:
>
> $userCount = 0
> $userDatabase = Get-MailboxDatabase -Identity "Mailbox Database" |
> Get-Mailbox
> Foreach ($user in $userDatabase) {
> $userCount++
> }
> Write-Host There are $userCount users
>
> I can write something for you later on today if you want it to
> automatically go through each mailbox database and gather counts on all
> users on each database if you really want.
>
> --
> Elan Shudnow
> http://www.shudnow.net
>
>
>
> "Miha" <miha.bernik@email.si> wrote in message
> news:#FwvDKNCJHA.3396@TK2MSFTNGP03.phx.gbl:
>
>> Hi Andy,
>>
>> thanks for a tip, but when I run "Get-MailboxDatabase -Identity
>> "YourDatabaseIdentity" | Get-Mailbox" I get report like
>>
>> Name Alias ServerName ProhibitSendQuota
>> ---- ----- ---------- -----------------
>> Administrator Administrator frodo unlimited
>>
>> but I want to know how many accounts are created in store1-store5? Any
>> other
>> tricks? What did you mean with EMC filtering on database?
>> Regards,Miha
>>
>> "Andy David {MVP}" <adavid@pleasekeepinngcheesebucket.com> wrote in
>> message
>> news:c3oab4hl6ca5a5ea5mc7url2obn6fplbcv@4ax.com...
>>
>> > On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
>> > wrote:
>> >

>>
>> >>Hi
>> >>
>> >>Is it possible and how to view how many users are created into
>> >>first,second,third, etc.. storage group on Exchange 2007.
>> >>I have 4 storage groups, each has about 100 users, but some of them
>> >>have
>> >>been deleted. Now I want to know, how many and which users are into
>> >>store1,store2,store3,store4. How can this be done?
>> >>Regards,Miha
>> >>
>> >
>> >

>>
>> > EMC filtering on datgabase or powershell.
>> > Something like:
>> >
>> >
>> > Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox
>> >
>> >
>> >

>



Reply With Quote
  #10  
Old 08-28-2008, 09:13 AM
Miha
Guest
 
Default Re: Count user accounts in storage group

Sorry, no need for that, have figured it out.
Thank you for you help and kindness.
Regards,Miha

"Miha" <miha.bernik@email.si> wrote in message
news:Olz8C%23QCJHA.1628@TK2MSFTNGP02.phx.gbl...
> Thank you very much for your help. I have modified your script, so now it
> counts how many users are in each storage group like
>
> $userCount = 0
> $userDatabase = Get-MailboxDatabase -StorageGroup "First storage group" |
> Get-Mailbox
> Foreach ($user in $userDatabase) {
> $userCount++
> }
> Write-Host There are $userCount users in First storage group
>
> I want that it will also display which users are in that store, but can't
> figure it out how to?
> Regards,Miha
>
> "Elan Shudnow" <SubstituteThisWithMyFirstName@shudnow.net> wrote in
> message news:OSP83mQCJHA.4884@TK2MSFTNGP02.phx.gbl...
>> Maybe try something like:
>>
>> $userCount = 0
>> $userDatabase = Get-MailboxDatabase -Identity "Mailbox Database" |
>> Get-Mailbox
>> Foreach ($user in $userDatabase) {
>> $userCount++
>> }
>> Write-Host There are $userCount users
>>
>> I can write something for you later on today if you want it to
>> automatically go through each mailbox database and gather counts on all
>> users on each database if you really want.
>>
>> --
>> Elan Shudnow
>> http://www.shudnow.net
>>
>>
>>
>> "Miha" <miha.bernik@email.si> wrote in message
>> news:#FwvDKNCJHA.3396@TK2MSFTNGP03.phx.gbl:
>>
>>> Hi Andy,
>>>
>>> thanks for a tip, but when I run "Get-MailboxDatabase -Identity
>>> "YourDatabaseIdentity" | Get-Mailbox" I get report like
>>>
>>> Name Alias ServerName
>>> ProhibitSendQuota
>>> ---- ----- ---------- -----------------
>>> Administrator Administrator frodo unlimited
>>>
>>> but I want to know how many accounts are created in store1-store5? Any
>>> other
>>> tricks? What did you mean with EMC filtering on database?
>>> Regards,Miha
>>>
>>> "Andy David {MVP}" <adavid@pleasekeepinngcheesebucket.com> wrote in
>>> message
>>> news:c3oab4hl6ca5a5ea5mc7url2obn6fplbcv@4ax.com...
>>>
>>> > On Wed, 27 Aug 2008 08:53:08 +0200, "Miha" <miha.bernik@email.si>
>>> > wrote:
>>> >
>>>
>>> >>Hi
>>> >>
>>> >>Is it possible and how to view how many users are created into
>>> >>first,second,third, etc.. storage group on Exchange 2007.
>>> >>I have 4 storage groups, each has about 100 users, but some of them
>>> >>have
>>> >>been deleted. Now I want to know, how many and which users are into
>>> >>store1,store2,store3,store4. How can this be done?
>>> >>Regards,Miha
>>> >>
>>> >
>>> >
>>>
>>> > EMC filtering on datgabase or powershell.
>>> > Something like:
>>> >
>>> >
>>> > Get-MailboxDatabase -Identity "YourDatabaseIdentity" | Get-Mailbox
>>> >
>>> >
>>> >

>>

>
>



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:10 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.