Need Mailbox Sizes and Target addresses from 2003 mailboxes

I'm am about to decom our old 2003 exchange server, but I need to gather some information prior to decom. I need to get the mailbox sizes of all users and the "TargetAddress" for each user (Blank or populated)
I have a script to gather all of the mailbox sizes, but am trying to incorporate the target address as a column into the results.
On Error Resume Next
Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20
CONST FileName ="D:\scripts\Exch2003Stats.csv"
arrComputers = Array("Server1","Server2")
q = """"
Set objFSO = CREATEOBJECT("Scripting.FileSystemObject")
Set objCSV = objFSO.createtextfile(FileName)
objcsv.writeline ("DisplayName,LegacyDN,Server,Database,TotalItems,Size(MB)")
For Each strComputer In arrComputers
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\MicrosoftExchangeV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Exchange_Mailbox", "WQL", wbemFlagReturnImmediately + wbemFlagForwardOnly)
For Each objItem In colItems
SizeinMB = Round(objItem.Size / 1024, 2)
objcsv.writeline (q & objItem.MailboxDisplayName & q & "," & q & objItem.LegacyDN & q & "," & q & objItem.ServerName & q & "," & q & objItem.StoreName & q & "," & q & objItem.TotalItems & q & "," & q & SizeinMB & q)
Next
Next
objCSV.Close
Set objFSO = nothing
Set objWMIService = nothing
Set colItems = nothing
'Create link to CDOmail
Set objMsg = CreateObject("CDO.Message")
'Enter subject of message in quotes
objMsg.Subject = "Automated Message: Exchange 2003 Data Report for " & Date()
'Enter email address of sender within quotes ie
objMsg.From = "[email protected]"
'Enter destination email address in quotes.
objMsg.To = "[email protected]"
'Set the message body
objMsg.TextBody = "Automated query executed from the 'Exch2003Stats_RunThis' scheduled task on zexowat02.zachry.com."
'Add the attachment
objMsg.AddAttachment "D:\scripts\Exch2003Stats.csv"
'Setup the server to send the email through
objMsg.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objMsg.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "Servername.domain.com"
objMsg.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objMsg.Configuration.Fields.Update
'Send the message
'objMsg.Send
WScript.Quit
Bobby Pendino

Hi Bobby,
Sorry for my lack knowledge about script and code. According to your description, I understand that you are using a script to get all mailboxes size and target address information from Exchange 2003. For more professional suggestions, I recommend you can
also ask a question in Script Center for more help:
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.
Sorry for any inconvenience and thanks for your understanding.
Regards,
Winnie Liang
TechNet Community Support

Similar Messages

  • Credentials needed to raise domain and forest level from 2003 to 2012 R2.

    I migrated our environment from a single DC server 2003 to a single DC server 2012 R2.  I followed the migration process that is documented by Microsoft and others.
    However, I forgot to assign my account Enterprise Admin and Schema Admin before raising the domain and forest levels from 2003 to 2012 R2.  My account did have domain admin.  The GUI interface did not complain when I raised the level of the domain
    and then the forest.
    So I am thinking everything is OK.
    My question is am I going to have problems down the road with the AD environment?
    Thanks for any help or opinions.

    Using snapshot for a domain controller is not recommended, as usn rollback can occur. Allthough in server 2012 using snapshot for dc's has been improved and made 'safer', but I wouldnt use it as a backup solution.
    But back to your problem, Beaulieu, is it a single domain/single forest design? And the issue is that you have no membership in schema- and enterprise admins, but you do have an domain admin?
    Best Regards,
    Jesper Vindum, Denmark
    Systems Administrator
    Help the forum: Monitor(alert) your threads and vote helpful replies or mark them as answer, if it helps solving your problem.

  • I can't move my contacts ( phone numbers and email addresses) from outlook express to my 8900 phone

    i can't move my contacts ( phone numbers and email addresses) from outlook express to my 8900 new phone through the usb cable.
    i have the same contacts in both outlook and outlook express, can this help.
    can anybody help

    highland_ddmac wrote:
    I have the 8900 and when I try and synch I get the error "unable to read application data". Very, very annoying.
    Wondering why I switched from Nokia!
    Can anyone help please??
    Hi and Welcome to the Forums!
    A lot more detail is needed to understand your issue...for instance:
    Your specific BB Model
    Your specific BB OS (all 4 octets)
    Your DTM version (again, 4 octets)
    Your PC PIM version
    Your PC OS version
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Why can't I select and drag addresses from contacts to mail

    Why can't I select and drag addresses from contacts to mail

    Re: can't drag email addresses from contact list

  • HT2486 HOw do I transfer contact numbers and email address from my Mac to my new iphone?

    How do I transfer contact numbers and email address from my Mac to my new iphone?

    Connect your iPhone 4S to your Mac using the iPhone’s USB cable, and then use iTunes to transfer your contacts from to the iPhone. (An alternate way is to use iCloud.)
    I’m not sure what you mean by “transferring email address” from the Mac to the iPhone. But if you mean you want to access your email from the Mac and the iPhone, the best way is to configure your email account over IMAP in Mail on both devices.

  • Get Machine Name and IP Address from Air Flex App

    New to Air..... Is there a way to get the name of the machine
    and the ip address for the client running the Air application? Not
    that this matters, but the applcation would be a Flex 3 application
    built specifically to be deployed to the Air runtime. I need to be
    able to have the Air/Flex application know what the client's
    machine name and ip address is. Can this be done?
    Thanks

    Hi Frank,
    Well I am using Developer Suite 10g Release (10.1.2.0.2) ..I've gone thru the link what you have sent me and noticed that whatever updations of conf file or classpath its already there so i guess needn't to modify cause I think my release 10.1.2.0.2 has did already as webutils been bundled with it.
    Well What i did is to double click on ATTACH LIBRARY and browse the location to find webutil.pll and finally attached it...even though its showing me all the procedures like clientinfo and others...
    on my block's canvas I've put a button and used this trigger to get client info function like this.
    when-button-pressed trigger of INFOBUTTON
    DECLARE
    o_clientinfo varchar2(50) := Webutil_clientinfo.GET_HOST_NAME ;
    begin
    message(o_clientinfo);
    end;
    but when I am trying to open this form its simply not showing up..strange thing is that there is no error as well...so plz kindly guide me how to get clientinfo hostname or ipaddress using that library function.
    thanks

  • Importing a group of names and email addresses from EXCEL to address book

    I want to create a new group in my address book, so I can send one email to multiple addresses. I have an EXCEL document that contains the names and email addresses. Is there an easy way to import them into my address book from EXCEL?
    Thanks, Teri

    Hi,
    I'm having the same problem. I'm trying to import 300 addresses from an Excel file into Address Book. The Excel file has been converted to tab-delimited (txt). I've gone through and deleted any extra line breaks within fields, commas, etc in the addresses.
    When I go to Address Book and ask it to import the Text file, I get the dialog window showing me the fields it will import, but when I click on "OK", the program just freezes. Also, it tells me in the dialog window that it won't import specific fields like Street 2, City, State or Zip and there is information in all of those fields for every record to import.
    I've been working on this for three weeks now and am at my wits end. I have never had a database program be so difficult to work with.
    Any ideas?

  • How to find out the user name and email address from SAP user id?

    Hi experts,
    In sto3n I find out the the user id with most navigations. I like to know his name or email address to contact him. Which table stores the user details? how to do it?
    Thanks in advance.
    Sharat.

    hi,
    The below tables will give only the name .
    USER_ADDRS
    USER_ADDR
    USER_ADDRP
    USR02
    i think you need email address .
    you can use this Tcode : su01d
    and give the user name and excute it
    i hope it will help you.
    Ram
    Edited by: Ram velanati on Jun 30, 2008 6:57 PM

  • Need po box and street address both in address

    Hi,
    i need to print oth PO BOX and Street name & number in sapscript.
    using Address & End Address.
    this is printing either one of those....
    is there any possibility to show both?
    Giri

    Hi Brad,
    I tried to concatenate the street and PO BOX in street field and its working fine... but the problem is client wants in different line... not in same line...
    is there any commands avaialble for 2 street names?
    You don't need to use LOCATION as the other poster suggested.  Like I mentioned before, you can use one of the other NAME fields or one of the other STREET fields to store the PO Box value (or just hold the value at runtime if you're not using an address number for the command).  You would use the NAME or STREET line in the ADDRESS command as usual.  The ADDRESS_INTO_PRINTFORM function takes care of moving it to a separate line when there are enough lines available.  Note that if you intend to use an addiional field for permanent storage of the value, you may need to configure your master data object to make the field visible.
    Personally, I might opt for the user exit approach.

  • Is there a moderator here??? I need to get my old addresses from old versio

    I have the database in my user library from addressbook verions 1.
    I want my new TIGER addressbook to access it.
    How do I do it?
    Tony

    Tony,
    Moderators do not usually answer such posts as this, but other users do -- that is the strength of the Discussions.
    Make sure Address Book is not running
    Replace the AddressBook.data file found in your current Home/Library/Application Support/AddressBook folder with that from your copy of the previous AddressBook folder, and then relaunch the Address Book application.
    I think you can also replace the entire AddressBook folder, but I know the version difference does not come into play with the file I first pointed you to.
    Ernie

  • How can I retrieve the col data size and Null information from table using labview connectivity toolset

    Hi, there,
    I am wondering how to get the table information by labview database
    connectivity toolset. The table list vi comes with the toolset can get
    only col name, data type and data size. And I found the the data size
    always gives back -1, even though it is a string type. Do somebody has
    some idea about it?
    Thanks.
    JJ

    JJ,
    Go into the diagrams of the DBTools List Columns and DBTools Get Properties respectively. When you inspect this diagram, you will see the raw ActiveX properties and methods called to get the size information. The value of -1 means the requested recordset is already closed. This is the sort of thing that is controled by the driver (ODBC, OLE DB, Jet, etc) you are using. Notice that you can right click on the property and invoke nodes and get more information about these specific items directly from the ADO online help.
    Crystal

  • How do I hide my email and ip address from a website?

    I am on a simple free fan oriented college sports team opt in website, and I keep getting booted because I posted a picture in the comments section - totally PG. The moderator is being a punk and keeps booting me after two days no matter what different or new email I register with. I am 100% minding my own business and not being disruptive and simply reading about this particular college team I follow and all the commentary other similar fans post. I did not use any foul language or post any inappropriate messages. The moderator still keeps removing me after two or three days no matter what I do or do not do. He is just simply being difficult. I tried emailing and communicating with him and he says he does not have time for me and deletes my registered user name and blocks my access. What can I do to make myself look like a new registrant and just read the free articles like any other user without incurring the ire of this whiny little webmaster?
    Message was edited by: Bergs85

    You don't have to shut down the computer to switch accounts. All you do is click the Apple symbol in the upper left and choose Log Out and that's it. You can also set up Faster User Switching by:
    1. Open System Preferences - Accounts
    2. Click Login Options
    3. Check the box called "Show fast user switching menu as" then choose from either icon, short name or name.
    Then when someone wants to switch users they can. The advantage of this method is if you are have a document open and don't want to close it the document will remain open. If the other user attempts to shut down the computer they can't until you have logged out thereby saving all your data.
    A very simple and elegant solution.

  • I have a current 2TB Time Capsule. I would like to add more ethernet ports for needed expansion. Will an Airport Extreme conflict with the Time Capsule for needed ethernet ports and will wireless from both units conflict?

    I own a current 2TB Time Capsule and I need to expand my network system to include more ethernet (wired) ports. I am considering an Airport Extreme that would give me enough wired ports. Will the wireless capabilities of both units conflict with each other? I only need one wireless network. Thank you for any help.

    While you could certainly add an AirPort Extreme to provide additional Ethernet ports, you could also save about $150 by purchasing an inexpensive switch, such as one of these:
    http://www.amazon.com/D-Link-DGS-1005G-5-Port-Gigabit-Desktop/dp/B003X7TRWE/
    http://www.amazon.com/TRENDnet-Unmanaged-GREENnet-Auto-Negotiation-Auto-MDIX/dp/ B001QUA6R0/
    Consumer grade Ethernet switches typically come in five and eight port configurations. Just be aware that a five port switch only conveys the ability to add three additional devices. An eight port switch conveys the ability to add six additional devices.
    An 8 port switch provides twice the capacity of a 5 port switch for considerably less than twice the cost. The price difference between the two is often only $10 or so.
    I just checked, the 8 port version of the Trendnet switch above costs exactly $4 more.
    An AirPort Extreme is a very flexible full featured wireless router, and would provide three additional LAN ports for wired devices. If all you need is a few more ports though, it's overkill.

  • ALE and Deliver Addresses from the MEAN transcation

    I am trying to send delivery addresses through ALE, and I cannot find a message class for this.  Does someone know a way to send these through ALE?
    Thanks!
    Holly Childs

    When you mentioned, "Addresses in purchasing", this is what I did.
    Transaction : <b>WE30</b>
    Searched for message types which had description purchas. I found some message types which were related to creating Purchase Order.
    PORDCR01, PORDCR03, PORDCR04
    I was not able to find any transactions like BD10, as you have mentioned.
    A small program can be written, using FM <b>MASTER_IDOC_DISTRIBUTE</b> to distribute the required address.  Control details(EDIDC) and data(EDID4) along with message type information should be filled. You can use the same ADR2MAS01 & 02, ADR3MAS01 message types.
    If you found any other way out, do share it with us.
    Regards,
    Subramanian V.

  • Detecting email and web address from textarea

    I want that if the user is putting email or web address in the text area that should be held and not be shown.
    any clue please
    thanks

    regex?
    A quick and crude attempt (completely untested):
    // email
    "\\s*[^@]+@[^\\s]+"
    // web
    "\\s*https?://[\\s]+"
    thanks for your reply and if i wanna add (dot, com, at) then?
    thanks again

Maybe you are looking for