Kaseya Community

Is anyone using the Exchange Mailbox Size script from Kaseya?

  • I had problems with creating and running scripts where you need to execute commandline commands.

    I used the same workaround and Created a bat file.


    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: nvo
  • This runs fine on my System... but has anyone figured out how to get it to NOT report on the SP2 installs since the 16 GB limit is removed?

    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: iasonn
  • vplaza wrote:
    I have the zip file with all the files in it. I can email to you.


    Could I get a copy too?


    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: Stereo
  • Actually, the script is in the Public Scripts that came with Kaseya, it seems.

    I haven't played with this recently, so not sure if this will work for you.


    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: vplaza
  • mailboxsize.zip
    Attached is the script we've worked on here and are using.

    Works great - tells us the GB used


    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: mikeshinn
  • Good afternoon to all!

    I have been trying to get the mailboxsize script to work correctly to no avail. If I copy the VBS script to an Exchange Server and run it, it will work correctly. However, if I log out and run the script via Kaseya, Kaseya will say success. Then when I go to Get File to look at the resulting text file, it has the header and nothing else. I have tried several different approaches to this issue with no results. Has anyone else experienced this problem? If so, have you been able to resolve it? Oh yeah, I have also tried the "bat file" solution proposed below but it did the same thing (header info with no data).


    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: boudj
  • See my post on 4/12 - we had to change the vbs because the provided one did not work properly. Try out my script below - should work fine.

    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: mikeshinn
  • Thanks for the reply. However, I tried your script and got the same exect results.

    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: boudj
  • MailboxsizeCPAU.zip
    Quite an old topic, but I was successful in creating a script that works, I'm using a tool called CPAU.exe that can be found here http://www.joeware.net/freetools/tools/cpau/index.htm. I'm also using managed variables to create flexibility in the scripts when using domains, accounts and passwords.

    [indent]
    Script Name: Exchange Mailbox Size New 2 CPAU
    Script Description: This script checks mail box sizes on exchange 2003 servers. This will help you determine who the largest mailboxes are for cleanup. After script runs it creates a log with the proper information located in the get files area.
    Remember to create 'Managed Variables' for domain, admin and adminpassword.


    IF Test Registry Key
    Parameter 1 : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeSA
    Exists :
    THEN
    Get Variable
    Parameter 1 : 10
    Parameter 2 :
    Parameter 3 : tempdir
    OS Type : 0
    Write File
    Parameter 1 : #tempdir#\ExchangeMailboxSize.vbs
    Parameter 2 : VSASharedFiles\ExchangeMailboxSize.vbs
    OS Type : 0
    Write File
    Parameter 1 : #tempdir#\Exchang-size.bat
    Parameter 2 : VSASharedFiles\Exchang-size.bat
    OS Type : 0
    Write File
    Parameter 1 : #tempdir#\CPAU.exe
    Parameter 2 : VSASharedFiles\CPAU.exe
    OS Type : 0
    Execute Shell Command
    Parameter 1 : #tempdir#\CPAU -u \ -p -ex "#tempdir#\Exchang-size.bat" -lwop
    Parameter 2 : 0
    OS Type : 0
    Pause Script
    Parameter 1 : 30
    OS Type : 0
    Get File
    Parameter 1 : #tempdir#\ExchangeMailboxSize.txt
    Parameter 2 : Exchange\MailboxSize
    Parameter 3 : 0
    OS Type : 0
    Get Variable
    Parameter 1 : 1
    Parameter 2 : #tempdir#\ExchangeMailboxSize.txt
    Parameter 3 : mailboxsize
    OS Type : 0
    Delete File
    Parameter 1 : #tempdir#\ExchangeMailboxSize.txt
    OS Type : 0
    Write Script Log Entry
    Parameter 1 : Exchange mailboxsize checked
    OS Type : 0
    ELSE
    Write Script Log Entry
    Parameter 1 : Not an Exchange Server
    OS Type : 0
    [/indent]





    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: Cas Krist
  • ExMBSize.zip
    ok, i too have a script to get mailbox sizes from exchange. However, it does a cople of things differently.

    1: Creates csv file for easy reading

    2: Email the file as an attachment.

    I am attaching botht the script and VBS file for this to work. You WILL need to edit the vbs file to meet your needs!!!!!

    Many thanks to mikeshinnfor his line on getting the size megs rather than kilobytes Wink




    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: rage
  • I have spent ages trying to get any of these scripts to work...:-?

    I have tried all of the .vbs files manually on multiple server (all work fine)

    I have tried them all from .bat files (all work fine)

    I have tried all the scripts from kaseya and i just get the header information ( i.e. Server Name,Storage Group,User Display Name,Mailbox Size,Total Items,Deleted Items Size)

    I have tried them all as user and system, i have set agent credentials to exchange admin accounts, administrator accounts, kadmin accounts, and system accounts (nada)

    Tried at least 10 different exchange servers in different domains.

    I am assuming you guys are changing the exchange security to allow the agent to run this script at the correct permissions lvl...?

    There has got to be something else???? failing that has anyone ever seen a manual for the scripting function that explains how it all works? the reporting of script failures seems to be just non existent?




    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: primalooze
  • You ever thought of using Powershell? I use it for a number of things. Here is sample output of my script.







    StorageGroupName
    StoreName
    MailboxDisplayName
    Size
    TotalItems

    First Storage Group
    Mailbox Store (MLMS-DC2)
    user 1
    742120
    171922

    First Storage Group
    Mailbox Store (MLMS-DC2)
    user 2
    313108
    15607

    First Storage Group
    Mailbox Store (MLMS-DC2)
    user 3
    258074
    21171

    First Storage Group
    Mailbox Store (MLMS-DC2)
    user 4
    200645
    12424

    First Storage Group
    Mailbox Store (MLMS-DC2)
    user 5
    36338
    6163

    First Storage Group
    Mailbox Store (MLMS-DC2)
    SystemMailbox{81A06AC1-C68E-4B8F-9C64-CDF8D68C22FD}
    361
    401

    First Storage Group
    Mailbox Store (MLMS-DC2)
    Administrator
    20
    7

    First Storage Group
    Mailbox Store (MLMS-DC2)
    testk
    0
    0

    First Storage Group
    Mailbox Store (MLMS-DC2)
    BES Admin
    0
    0

    First Storage Group
    Mailbox Store (MLMS-DC2)
    System Attendant
    0
    0

    First Storage Group
    Mailbox Store (MLMS-DC2)
    SMTP (MLMS-DC2-{81A06AC1-C68E-4B8F-9C64-CDF8D68C22FD})
    0
    0

    First Storage Group
    Mailbox Store (MLMS-DC2)
    Ticket Email
    0
    0



    I also look at the SMTP queue and some other things.

    God Bless,

    Marty


    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: MissingLink
  • Ok, it looks much better in my screen.. But you see the info..

    God Bless,

    Marty


    Legacy Forum Name: Script Requests,
    Legacy Posted By Username: MissingLink