HD space problems - scanning all mailboxes for large attachments

Hello Exchange experts
I have only 5 GB left on a database that has 150 MailBoxes.Until I connect some external storage to the server, i was wondering if there is some way on the server level to scan all the mailboxes for large attachments and delete them to save some space. I
have exchange. 2010.

First make sure database is consuming the space. This command will show you the database file size and path
Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize,EdbFilePath
Please take an exchange known backup if edb file size is not consuming the database drive space..
http://technet.microsoft.com/en-us/library/dd876854(v=exchg.150).aspx. 
I suggest you create a newdatabase and move all mailboxes to the newly created database.
You could attach a HDD and create a mailbox database in that and move all mailboxes and delete the default database (after check this) and create new one in the
place of default database move back all your mailboxes back from the newly connected HDD to this database. You can use this command to move mailboxes in bulk. Please check
this
Get-Mailbox –Database ‘Mailbox Database 001’ | New-MoveRequest –TargetDatabase ‘Mailbox Database 002’
If you dont have enough space you could try defragmentation. But you make sure you have white space or no
http://blogs.technet.com/b/rmilne/archive/2013/08/20/how-to-check-database-white-space-in-exchange.aspx
Or this script remove all attachement that size >1000 KB
first creat mailbox called it test , send many attachements to this this mailbox , in the code below change the line Get-Mailbox yourUserName to Get-Mailbox test
Import-Module -Name "C:\Program Files\Microsoft\Exchange\Web Services\1.1\Microsoft.Exchange.WebServices.dll"
$credentials = New-Object Microsoft.Exchange.WebServices.Data.WebCredentials(ADMINUSERNAME, PASSWORD)
$service = New-Object Microsoft.Exchange.WebServices.Data.ExchangeService
$service.Credentials = $credentials
$service.Url = "http://localhost/ews/exchange.asmx"
$mailbox = Get-Mailbox yourUserName
$folderFilter = New-Object Microsoft.Exchange.WebServices.Data.SearchFilter
$folderView = New-Object Microsoft.Exchange.WebServices.Data.FolderView(1000)
$folderView.Traversal = [Microsoft.Exchange.WebServices.Data.FolderTraversal]::Deep
$itemFilter = New-Object Microsoft.Exchange.WebServices.Data.SearchFilter+IsEqualTo([Microsoft.Exchange.WebServices.Data.EmailMessageSchema]::HasAttachments, $true)
$itemView = New-Object Microsoft.Exchange.WebServices.Data.ItemView(10000)
write-host $mailbox.displayName
$folderId = New-Object Microsoft.Exchange.WebServices.Data.FolderId([Microsoft.Exchange.WebServices.Data.WellKnownFolderName]::MsgFolderRoot, $mailbox.primarySmtpAddress.ToString())
$folder = [Microsoft.Exchange.WebServices.Data.Folder]::Bind($service, $folderId)
$folders = $service.FindFolders($folderId, $folderFilter, $folderView)
foreach ($subFolder in $folders.Folders)
write-host $subFolder.displayName
$items = $subFolder.FindItems($itemFilter, $itemView)
foreach ($item in $items.Items)
write-host $item.subject
$item.Load()
foreach($attachment in $item.Attachments)
if ($item.size > 1000){
write-host $attachment.Name
$item.Attachments.Remove($attachment)
break
$item.Update([Microsoft.Exchange.WebServices.Data.ConflictResolutionMode]::AutoResolve)
Thanks, MAS
Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

Similar Messages

  • Problems with Reading Word for Mac attachments

    I have just 'switched' my wife from a PC to a Mac Mini. She is using Mail to send out attachments and some of the recipients are unable to read them. They are getting the message "can't start converter mswrd632". Using a similar set up with my Mac Pro I am not getting the same issues!
    Googling the message I understand that this relates to a Microsoft security upgrade MS09-73 but I am not able to understand why her machine has the problem and not mine!! Both appear to be sending .doc suffixed attachments.
    As the Mac champion in the household this is now 'my fault' and any guidance would be welcomed.

    Are you sure that your wife is actually sending out Word documents? The error is due to a document having a ".doc" suffix but is really a text file.

  • I cannot get my thunderbird box to work since upgrade. addons not working for larger files

    When I try to use box for larger attachments ,it is not working and just keeps trying to load . I have checked my box account and spoken to there tech and he said it is not on their end ?

    I don't have any direct experience with D-Link equipment, but I may be able to provide some general advice. See if you can use a Web browser to connect to the D-Link's configuration screen. This probably involves visiting a URL such as http://www.192.168.0.1 . If you haven't changed the sign-on parameters, a quick Google search should find them for you.
    Once there, note as many configuration details as you can find. You'll need those to configure your Time Capsule.
    Use the AirPort Utility to configure the Time Capsule.
    One last thing: It's quite possible that the Verizon network will have locked onto the "MAC" address of your D-Link router. Something needs to be done to reset this. If there's a separate box at your house that came with the FIOS equipment that's "upstream" from the D-Link router, I'd cycle power on it to see if that does the job. Otherwise you'll probably need to call Verizon to ask them to reset things once your Time Capsule is installed in place of the D-Link router.

  • Hi all! What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    Buying more hard drive space is a very valid option, here.  Editing takes up lots of room, you should never discount the idea of adding more when you need it.
    Another possibility is exporting to MXF OP1a using the AVC-I codec.  It's not lossless, but it is Master quality.  Plus the file size is a LOT smaller, so it may suit your needs.

  • SQL Developer paste problem for large text in Linux

    Hello,
    I have a problem. I cannot paste large text (> 5000 lines) into the editor of a clob column. Pasting in general works. I mean I can paste the whole content e.g. to gedit or I can paste partially the text into the sql developer editor but not as a whole.
    Colleagues on a Mac can paste the text into the editor. So it should not be about DB settings.
    Can anyone tell me which setting I have to change? 
    SPECS:
    Ubuntu 13.10
    java version "1.7.0_25"
    OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4ubuntu3)
    OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
    Info
    Oracle SQL Developer 3.2.20.09
    Version 3.2.20.09
    Build MAIN-09.87
    Copyright © 2005, 2012 Oracle. All Rights Reserved. Alle Rechte vorbehalten.
    IDE Version: 11.1.1.4.37.59.48
    Product ID: oracle.sqldeveloper
    Product Version: 11.2.0.09.87
    Version
    Komponente    Version
    ==========    =======
    Java(TM)-Plattform    1.7.0_25
    Oracle-IDE    3.2.20.09.87
    Versionierungsunterstützung    3.2.20.09.87

    I've the same problem and posted it under: 'SQL Dev 2.1 RC1 - "scan defines" doesn't work in opened *.sql files '
    I seems, that it doesn't work now, though it worked in SQLDEV 1.5.5
    @Chris

  • Having problem with iPad sync getting pop up message as below. The iPad cannot be synced because there is not enough space to hold all of the items in the iTues library (additional 10.03 GB required).  There is enogh space be it in PC or on iPad.

    Having problem with i Pad sync getting pop up message as below. The i Pad cannot be synced because there is not enough space to hold all of the items in the iTunes library (additional 10.03 GB required).  There is enough space be it in PC or on i Pad. Why and What can be done to resolve, please advice appreciate. Thanks

    It generally means - just using random numbers for examples - the iTunes on your computer holds 45 gig of content, you have a 16 gig iPad which has 13 gig of free space and the content just won't fit.
    Easy solutions. go into iTunes and 'manually manage' your content. I believe this is in the main summary tab for your device (connect your device, click on the icon in iTunes to access controls for your iPad
    You may also need to choose to manually control content in both the music and movie tabs.
    Apple - Support - Manuals
    the manual will have more specific info for syncing and controlling content

  • Sync Problem: Freeing MacBook HD space will clear all Sync to iPod

    Hi all,
    i 'm filling my ipod video with podcast videos music etc...
    i use the sync option to do it in a simple and fast way.
    the problem is that i dont want to have space occupied on my MacBook
    after. I want to leave everything on my iPod and free my computer space.
    I cannot do that as i'm in sync, and if I do that it will clear all my files on the ipod.
    Is there a solution for that? or shall I have to clear iPod, unchecke the sync option and do everything manually?
    it's a crazy wrong thing of itunes software.... isn't it?
    thank you in advance
    regards
    tom

    You need to set your iPod to manage the iPod content manually.
    You cannot have it set to manual and then expect the Podcasts to auto sync. Neither can you delete stuff from your Mac and auto sync the iPod. Everything on the iPod would be deleted.
    However, storing content on your iPod and nowhere else is an extremely risky option because when (and not if) there comes a time to restore your iPod, which is a very common fix for iPod problems, then all the Podcasts etc would be erased. If you no longer have them in iTunes (or any other back up), then they would be lost.

  • TS3694 Why can't I update my iPhone 4 to iOS 5.1? Every time I try it gets all the way done downloading it; however when it's processing the file the page tells me "There is a problem downloading the software for the iPhone. Network connection timed out.

    Why can't I update my iPhone 4 to iOS 5.1? Every time I try it gets all the way done downloading it; however when it's processing the file the page tells me "There is a problem downloading the software for the iPhone. Network connection timed out. Make sure your network settings are correct and your network connection is active. or try again later." and next to the file it has err = -3259. I have tried this 17 times and it won't work. My iTunes is completely up to date. I have made sure that my connection is fine and I have tried turning my firewall off with no avail. This has happened to me before but usually the update will go through after 2-3 tries, never to this extent. I don't know what to do. Help!

    Error -3259 is a network timeout error, usually. This article might help:
    http://support.apple.com/kb/TS2799

  • TS1702 i've an iphone 3.1.3. sometimes, i have problems opening all the apps i downloaded in the past 4 months. other apps would open but the recent ones will begin to boot and then close itself. once, it persisted for over a week. pls help as am frustrat

    i've an iphone 3.1.3. sometimes, i have problems opening all the apps i downloaded in the past 4 months. other apps would open but the recent ones will begin to boot and then close itself. once, it persisted for over a week. it staarted again this evening, pls help as am frustrated. NB- i checked for apps update but all my apps are up-to-date. CT

    Try the usual steps: restart, reset, restore.
    http://support.apple.com/kb/HT1430
    http://support.apple.com/kb/HT1414
    If restoring using a backup doesn't help, try restoring the iPhone to factory settings and try for a while with just the Apple-included apps, to make sure it's not an issue with a third-party app. If it still has problems, it may have a hardware problem and will need to be sent to Apple.
    Regards.

  • How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share form

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

  • I like and use Top Sites but it has become unsuable with this constant blacking out and reloading the thumbnails.  My MBP has not seen a problem at all.   I have been searching every other day for over a month trying to find a fix in Windows Safari with n

    I like and use Top Sites but it has become unsuable with this constant blacking out and reloading the thumbnails.  My MBP has not seen a problem at all.
    I have been searching every other day for over a month trying to find a fix in Windows Safari with no joy.  I want to resolve, not switch browsers. Please offer up a solution that only refreshes the Top Site thumbnails once a day or as some controlable interval.  Started about two versions ago, now on ver 5.1.5. Windows 7 64bit.
    Safari 5.1.5 for Win64 bit, Windows 7!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    I think I solved the wifi connection problem, just by switching off completely the router! sounds trivial, but in this case it worked!!!
    the funny behaviour of the trackpad/cursor still persists. any suggestion???
    thanks again

  • HT1296 Have a problem with syncing. I get this message: The ipod Bill's Ipod" cannot be synced because there is not enough space to hold all of the items in the iTunes library (additional 2.4GB required) I don't understand as I have much more space than 2

    I recently ran into a problem with syncing my ipod touch to itunes on my Windows 7 pc. It had previously been synced to my older laptop
    and I wanted to change to my newer Windows 7 laptop's itunes library that I had already been syncing with.
    Anyway, I started seeing this message that prevents my from syncing:
    The iPod "Bill's iPod" cannot be synced because there is not enough free space to hold all of the items in the iTunes library
    (additional 2.48 GB required)  
    Not sure if it is talking about my iPod free space or my PC itunes library free space. Either way I have 11.0 GB free space available
    on my iPod and 412 GB free space available on my Windows 7 PC.
    How do I handle this problem?   Please help!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Thanks

    It is saying that the iPod does not have enough free storage to sync all the items yu have selected to sync to the iPod. You need 2.48 GB more free on the iPod. You need either to select less to sync or delete some content form the iPod.

  • My ipod cannot be synced because there is not enough free space to hold all the items in the itunes library(additional 2.35GB required) but it shows 5.85GB free space,  there was no problem until i got a new laptop.

    "The ipod **** cannot be synced becaue there is not enough free space to hold all the items in the itunes library (additional 2.35 GB required)"  but it shows 5.89 GB free. I recently bought a new laptop, and gave away my old one after deleting everything off it, including itunes, the problem started then,

    Hi Terri 4514,
    If you are having a "free space" alert when you try to sync, you may find the following article helpful:
    iOS: "Not enough free space" alert when trying to sync
    http://support.apple.com/kb/ts1503
    Regards,
    - Brenden

  • My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?

  • 4S ios updated to 7 is giving me problems for using wifi Thus it is difficult for me to use internet. The wifi comes on for a while and goes off in a few minutes The phone is unable to scan networks available for use

    4S ios updated to 7 is giving me problems for using wifi Thus it is difficult for me to use internet. The wifi comes ON for a while and goes off in a few minutes The phone is unable to scan networks available for use
    Am having ipad2, ipad mini and iphone 4 with family of two persons. One hp laptop and a DELL professional computer also in operation
    Myself an engineer for projects
    Looks the company apple cannot grow if they do not support solving the problems of their existing customers
    Ashok Dhingra
    India

    You are not addressing Apple here. If you have a problem, describe it and someone might be able to help. Just to be sure, the wi-fi on the phone will go off after the phone goes into sleep mode unless it is actively being used. This is a battery saving measure. If you are actively using the internet, and the phone is still awake, then the wi-fi should remain connected.
    What troubleshooting steps have you tried.

Maybe you are looking for

  • World of Warcraft on a 800mhz emac running - read -

    Hi All I decided to put this on as i had searched around to see if this was possible but hadn't,t found really any answers. So hear it is. I installed WOW on my just purchased 800mhz emac 40gb H/Drive,CD ROM. 1GB RAM. Having only a cd rom i had to lo

  • Need help on optimization of query

    Basically I had some query which should have been optimized. I did some optimization, but I guess it could be optimized more. Please help DATA_ PK - ID FK - ID (HIER ID) VAL nullable ATTR1 not null ATTR2 not null HIER PK -ID L1 - not null L2 - not nu

  • Have new itunes 6.0.5 but empty will ipod erase?

    the itunes 6.0.5 is empty and if i plug in my ipod will it erase my ipod? xp   Windows XP   xp   Windows XP  

  • Extra padding in applications table

    I am using an applicationsTable in my jsff page and as per the requirement, have to set the property primaryToolbarRendered="false". <af:panelHeader text="#{CmlRunControlGenBundle['OLabel.ConfigureProcesses']}" id="sdh1" partialTriggers="AT1:_ATp:ATt

  • ICWC Tables

    Hi all, I want Table names for below mentioned profiles in ICWC Identify account,account overview,interaction history,ineraction record,email,inbox Regards, V.Sekhar