?
Solved

need query to show what exchange mailboxes were created this year

Posted on 2011-09-15
8
Medium Priority
?
412 Views
Last Modified: 2012-06-22
So we are doing our 2011 MS True up and Exchange 2010 shows that we have 1600 mailboxes.  This is strange to me since last year we had 1050 mailboxes and have not added that many users.  

Can you point me to some sort of query that will show me what mailboxes were created this year?

0
Comment
Question by:stowyo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 9

Expert Comment

by:Benjamin MOREAU
ID: 36545325
Hi !

You have to download & install free QAD Powershell : http://www.quest.com/powershell/activeroles-server.aspx

Then, run on Active Roles powershell : Get-QADComputer | select Name, WhenCreated | Export-Csv EXPORT.CSV

Benjamin.
0
 
LVL 3

Expert Comment

by:dahesi
ID: 36545378
this should work via standard powershell on your dc (non-tested):

$Date = New-Object DateTime(2011,01,01,0,0,0)
Get-ADUser -RecipientTypeDetails User -Filter { whenCreated -gt $date } -Properties whenCreated | Select Name,whenCreated,distinguishedName | FT -Autosize -Wrap
0
 
LVL 9

Accepted Solution

by:
Benjamin MOREAU earned 2000 total points
ID: 36545562
i wrote get-QADCompute but it was get-QADUser :)
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:stowyo
ID: 36545817
These will show when Exchange Mailboxes were created?  Let me run some tests.
0
 
LVL 1

Author Comment

by:stowyo
ID: 36545881
None of the shells.  2008, ActiveRoles or EMS will accept GET-QADUser.  I tried both of your scripts and they will not run..  See this error.


The term 'Get-QADUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
 spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:12
+ Get-QADUser <<<<  | select Name, WhenCreated | Export-Csv EXPORT.CSV
    + CategoryInfo          : ObjectNotFound: (Get-QADUser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
0
 
LVL 9

Expert Comment

by:Benjamin MOREAU
ID: 36547589
Have you install the QAD Powershell ? If No, install it. If Yes, you must run the command line from this powershell (start menu > Quest > Active Roles Powershell) and not from the standard powershell.
0
 
LVL 1

Author Comment

by:stowyo
ID: 36548943
I did run this from ActiveRoles Powershell...  Can you post the script so I can copy/paste it into a PS1 file?
0
 
LVL 2

Expert Comment

by:gravy-x
ID: 36563513
You don't NEED to install QAD. This would work the same using:

get-mailbox | where-object {($_.whencreated -like "*2011*)} | format-list name,whencreated
0

Featured Post

Ransomware Attacks Keeping You Up at Night?

Will your organization be ransomware's next victim?  The good news is that these attacks are predicable and therefore preventable. Learn more about how you can  stop a ransomware attacks before encryption takes place with our Ransomware Prevention Kit!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question