Removing "Not Deleted" Mailboxes from a Database

Before I go anywhere, let me explain what I mean by "Not Deleted" mailboxes - We will be deleting and recreating a pair of databases this weekend. A s part of this process, we move all mailboxes from these databases to the other 22 mailbox databases
in the corporation, leaving our databases empty.  We then run a command to find the soft-deleted and disconnected mailboxes and handle them (remove the former and reconnect the latter so we can move them to another database).  When I ran this script
on one of the two databases, I found that the database had two supposedly live mailboxes on it.
So I ran Get-MailboxStatistics -Database and got info about these two mailboxes.  Neither shows as being SoftDeleted or Disconnected, and neither has a DisconnectDate.  So they should be live mailboxes, with an AD account.  So I checked them
and found one had an account - but was on another database on a totally different server (in fact, in the other DAG).  And the other belonged to an account that was deleted last November.
So, these two mailboxes appear to be zombies, with no life and no soul, but doomed to foil my plans to delete the database gracefully - they are all that stands between me and the success of my mission.  Now, I know I can take the database offline,
delete the database files, and bring them back online and that will kill these zombie mailboxes, but I was hoping someone had a way I can delete them gracefully so I don't feel like I've just used a sledgehammer on my servers.  I tried Remove-StoreMailbox,
but it requires that the mailbox have a status of either SoftDeleted or Disconnected - and from what I've read online, those are the only two accepted options.
So I come to you for possible guidance - keep in mind that these are totally unnecessary mailboxes and I have no qualms about deleting the database if that what it comes down to.  Anyone have any other suggestions?  Thanks ...
Will

There were two active mailboxes showing from the "Get-MailboxStatistics -Database <database name>" command, even though the database showed no active mailboxes when running "Get-Mailbox -Database <database name>" command.  Neither of these
had a disconnected date, and neither showed a value in the Reason field.  Now for your answers:
1.  One of these mailboxes showed as being on another database, same GUID, etc, and was able to be accessed on that other database.  However, Get-MailboxStatistics - Database <database name> showed that it also existed on this database. 
We couldn't connect an account to this mailbox, nor could we delete it - the command (below) said the mailbox was on another database (which it was).
Connect-Mailbox -Identity <mbx GUID> -Database <name of the database we wished to delete> -User <account SAM account name> -Alias <account SAM account name> -Shared -DomainController <domain controller>
2.  The command was what I show above.
Post Mortem:  Since we had to delete the database, and since neither of them were needed, we just went forward with our work.  I was hoping we'd be able to remove these mailboxes gracefully, but none of the tools we had available worked for the
job.

Similar Messages

  • HT2500 How do I remove the deleted mailbox from the sidebar on Mail?

    How do I remove the deleted mailbox from the sidebar on Mail?  Anyone knows how? Hit delete and dragging to the Trash but none seems to work.

    Hi, try highlighting it the Right click or Control+click & see if Delete Mailbox is an option.

  • HT1277 how can i remove the email add from a deleted mailbox from the prompts of the 'from' field?

    how can i remove the email add from a deleted mailbox from the prompts of the 'from' field?

    Thanks a lot, roam! That worked

  • Not deleting images from Sony DSC-W120

    iPhoto imports pictures from the camera just fine, but does not delete them from the memory stick, even when told to delete originals?
    Ideas? Camera side perhaps?
    It works fine with an older Sony Cybershot dsc-s600.

    Keith is absolutely right. There have been too many reports of incomplete uploads and complete deletions. It's not the camera but the situation, low battery, connection or power interruption, etc. that might trigger such a disaster. IMO it's just not worth the risk.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Can not delete files from Adobe reader

    can not delete files from adobe reader.

    Can you let us know a little more about what you are trying to do? Adobe Reader opens pdf files but does not store them so, there's nothing to delete.

  • I have seven(7) podcasts on my iPhone 4 that iTunes will not delete. iTunes copies them from the phone to the library and will not  delete them from the phone when deleted from the library.

    I have seven(7) podcasts on my iPhone 4 that iTunes will not delete. iTunes copies them from the phone to the library and will not delete them from the phone when deleted from the library. I have replayed the podcasts over and over and they still won't delete. Podcasts are WSJ Tech briefings.

    This happens to several of my podcasts whenever an updated iOS comes out. You can delete the episode directly from the phone by swiping it from left to right. That seems to fix the issue (they drop off the phone and dont reappear on iTunes). It's as if iTunes stops tracking the play count for some shows.
    Hope this helps!

  • HT201302 i can not delete photos from photo library from my iPhone 4

    i can not delete photos from photo library and onother folder contain same photo in the photo library from my iPhone 4
    thnx

    Delete them the same way you put them there.  The sync process.  Deselectg the album in itunes and sync.
    Photo Album contains ALL synced photos and you can also view those exact same photos, not duplicates, from the albums.

  • I inadvertently removed the junk mailbox from Mail.app in SL, how can I recreate / restore it ?

    Hi,
    Well, the title says it all : I inadvertently removed the junk mailbox from Mail.app in SL,
    it still is spresent in my ~/library/mail folder, how can I recreate / restore it in mail.app ?
    Since I have a fair number of email accounts, intelligent mailboxes, rules and archive folder, I really don't want to rebuild everything. And, no, I can't use time machine to restore it.
    All help will be greatly appreciated.

    Hi AdamKB, sorry for late follow-up.
    What I lost is the "container" that groups all junk mailboxes in one place in Mail, like is done for all the inboxes.
    The problem is that I lost visibility on all junk mailboxes. It is only a visibility problem because the junk mailboxes are still present locally for my POP accounts and remotely for may IMAP accounts, I justdon't see them anymore in Mail's interface.

  • Error: Could not read Metadata from Portal Database !

    Hi All!
    My problem is when i am trying to open the portal page (Oracle 10G)
    http://domain/portal/page?_pageid=6,1,6_13&_dad=portal&_schema=PORTAL
    then i have an Error: Could not read Metadata from Portal Database.
    And i do not know why because everything is up and running. I can connect and browse my database schema with portal user. I can connect to pls/orasso and where ever i want.
    [07/Feb/2006:00:57:23 +0100] "GET /pls/portal/htp.p?cbuf=Test HTTP/1.1" 200 5
    plz help i am trying to fix this in the last 2 weeks :)
    thx kEndE

    Hi Andreas,
    I've changed the permissions to 775 and changed the ownership of /sapcd (volume name) to orasid:dba (including all files within the staging area /sapcd/ora-patch).
    So the permissions and ownership seems to be fine.
    I've also ran your suggested commands but the issue still exists.
    I'm now liasing with our UNIX guy to check if there is any underlying permission issues on the volume (sapcd) that may be causing this problem.
    In the mean time, let me know if you have any further thoughts.
    Thanks,
    Chris

  • HT1277 How do I make Mail remove junk/deleted messages from the server? The only option tht works for me now is the "Remove from server" button at Account Info Messages on server.

    How do I make Mail remove junk/deleted messages from the server? The only option tht works for me now is the "Remove from server" button at Account Info > Messages on server. What am I doing wrong?

    Mail > Preferences… > Accounts > Advanced > Remove copy from server after retrieving a message

  • SQL Server 2005 Database Mail - Mail configuration information could not be read from the database.

    I'm trying to setup Database Mail and send a test message, but it's not working.
    I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none helped. I think it used to work before (2 months ago) but we had to turn it off.
    I've enabled it in Surface Configuration, have tried recreating all profiles, restarted SQL Agent, checked version mismatch...
    I check the Database Mail and I get the following message:
    Log Database Mail (Database Mail Log)
    Log ID 152
    Process ID 7684
    Last Modified 3/14/2013 6:49:58 PM
    Last Modified By SPEEDLING\sqlservice
    Message
    1) Exception Information
    ===================
    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
    Message: Mail configuration information could not be read from the database.
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
    HelpLink: NULL
    Source: DatabaseMailEngine
    StackTrace Information
    ===================
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession dbSession)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
       at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)
    2) Exception Information
    ===================
    Exception Type: System.IndexOutOfRangeException
    Message: timeout
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Int32 GetOrdinal(System.String)
    HelpLink: NULL
    Source: System.Data
    StackTrace Information
    ===================
       at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
       at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
       at System.Data.SqlClient.SqlDataReader.get_Item(String name)
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)

    I'm trying to setup Database Mail and send a test message, but it's not working.
    I've done several step-by-steps and all and I can't get it to work. Also checked several posts in this forum but none helped. I think it used to work before (2 months ago) but we had to turn it off.
    I've enabled it in Surface Configuration, have tried recreating all profiles, restarted SQL Agent, checked version mismatch...
    I check the Database Mail and I get the following message:
    Log
    Database Mail (Database Mail Log)
    Log ID
    152
    Process ID
    7684
    Last Modified
    3/14/2013 6:49:58 PM
    Last Modified By
    SPEEDLING\sqlservice
    Message
    1) Exception Information
    ===================
    Exception Type: Microsoft.SqlServer.Management.SqlIMail.Server.Common.BaseException
    Message: Mail configuration information could not be read from the database.
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Microsoft.SqlServer.Management.SqlIMail.Server.Objects.Account GetAccount(Int32)
    HelpLink: NULL
    Source: DatabaseMailEngine
    StackTrace Information
    ===================
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandFactory.CreateSendMailCommand(DBSession
    dbSession)
       at Microsoft.SqlServer.Management.SqlIMail.Server.Controller.CommandRunner.Run(DBSession db)
       at Microsoft.SqlServer.Management.SqlIMail.IMailProcess.ThreadCallBack.MailOperation(Object o)
    2) Exception Information
    ===================
    Exception Type: System.IndexOutOfRangeException
    Message: timeout
    Data: System.Collections.ListDictionaryInternal
    TargetSite: Int32 GetOrdinal(System.String)
    HelpLink: NULL
    Source: System.Data
    StackTrace Information
    ===================
       at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)
       at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)
       at System.Data.SqlClient.SqlDataReader.get_Item(String name)
       at Microsoft.SqlServer.Management.SqlIMail.Server.DataAccess.DataAccessAdapter.GetAccount(Int32 accountID)

  • I want to delete photos on my ipad but not delete them from my main computer?

    After deleting my photos from my iPad to make room for more, does this automatically delete them from my main computer or is there a mechanism to prevent them from being deleted from the main computer?

    If you are referring to photo stream, then if you set your computer up correctly to have photo stream photos automatically imported into iPhoto events, then deleting the photos from your photo stream album, on another device, will not delete them from the computer.

  • I have a dell computer with windows xp. i can not download itunes it is looking for itunes.msi and because it can not find it, i can not download itunes 10, and i can not delete itunes from my computer. HELP!!!!!!

    i have a dell computer with windows xp. i can not download itunes it is looking for itunes.msi and because it can not find it, i can not download itunes 10, and i can not delete itunes from my computer. HELP!!!!!!
    What else can I do ?

    Snow Leopard = OS X 10.6.x
    It is Not available as a download... It is a Paid Upgrade.
    Do this first...
    Check that your Mac meets the System Requirements for Snow Leopard...
    Snow Leopard Tech Specs
    http://support.apple.com/kb/SP575
    If so... Purchase a Snow Leopard Install Disc...
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    Other countries...
    http://support.apple.com/kb/HE57
    After the Successful Install, run Software Update to get the latest updates for Snow Leopard.
    Be sure to make a Backup of your Current System Before Upgrading...

  • Can you delete a text messages from your mac Book OSX 10.9.2 and not delete them from your iphone 5 running version 7.0.4

    c
    an you delete a text messages from your mac Book OSX 10.9.2 and not delete them from your iphone 5 running version 7.0.4

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    Also consider deleting and reinstalling the Mail Account in question.

  • Phone not deleting messages from the server

    Please help! My Blackberry Curve 9360 is not deleting messages from the server meaning that, after returning home from a week working away, i've still got a few hundred messages to wade through on my PC.
    I receive e-mails on the PC via Outlook Express. I've clicked on 'tools', 'accounts' then 'advanced' to ensure that the box for 'leave a copy of the message on the server' is unchecked i.e. messages sould be being deleted from the server when prompted to by the phone but this is not happening. Not sure what else to try or perhaps there was something i did / didn't do during the set-up of the phone.
    Any guidance would be much appreciated.
    Thanks in advance,
    Barry.

    Hello,
    Please check this KB:
    KB05133 Email reconciliation features for the BlackBerry Internet Service
    All reconciliation capabilities between your BB and your email SERVER are governed by that KB. So, even if you set the other settings (e.g., "Delete On") correctly, they will be irrelevant if your email service does not support it (as per that KB).
    Further still, reconciliation between your email SERVER and your PC CLIENT software are something completely separate. Only in a very few circumstances (e.g., IMAP) does (for instance) Outlook reconcile items deleted at the Server down to the PC Client.
    Good luck!
    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

Maybe you are looking for

  • Installing Designer 6i on Oracle 9i in W2K

    I am trying to install Designer 6i into 9i Database. I received an error when RAU procced to CKGLBWRK.SQL. The error message is the following: ORA-04068: existing state of packages has been discarded ORA-04063: package body "REPO_OWNER.JR_ACC_RIGHTS"

  • Can't sync cause of unknown error 13019

    I just updated my i-pod touch with 3.1.3 and now when I try and sync it won't finish and all it says is unknown error 13019. I have restarted my computer and changed USB cables. Everything is updated, I don't know what to do.

  • Text doesn't show when I embed

    Hi, thanks for taking the time to look at my problem. I have Flash CS3, and I just downloaded the Pirulen font. I played my movie and it works. When I tried to embed the font, the text doesn't show up at all. Also, I have a tint on my text on a keyfr

  • How to save as in pages

    I have used Word for ever and love being able to "save as" so that I can use a document and edit for new document. But there is no such command in Pages and its a nuisance, there must be an easy way, please?

  • ADF and Web Services

    Am using JDev11.1.1.x How do I create a Web Service using an ADF app. Have looked online and cannot seem to find a reference to this topic newer than about 2008. Thanks - Casey