Cleaning up mailbox permissions for deleted domain accounts

It’s that time of year again when some housekeeping is required on your mailboxes.  Over the last day I have been working to reduce the amount of legacy accounts that have access to mailboxes, whether it be “Send As” rights or “Full Access”.  Here is a small Powershell script to identify and remove those accounts that still have access but have been deleted from your domain – they still have permissions on mailboxes.  In the example below I have singled out functional mailboxes to run the script on.

What we know before we start is that the old account names now start with “S-1-“, so we add this into the script to identify the correct accounts to remove from mailbox access.

Following on from the above, here is a script to clean up the access to functional mailboxes that have deleted domain accounts with “Full Access” still assigned.


  1. Great items from you, man. I’ve remember your stuff previous to and you are
    simply too fantastic. I really like what you’ve got here, certainly like what you’re saying and
    the way wherein you say it. You’re making it entertaining and you still take care
    of to stay it wise. I cant wait to learn far more from you.

    This is really a tremendous web site.

  2. I’m truly enjoying the design and layout of your blog.
    It’s a very easy on the eyes which makes it much more pleasant
    for me to come here and visit more often. Did you hire out a developer to create your theme?
    Outstanding work!

  3. Do you mind if I quote a few of your posts as long as I provide credit and sources back to your weblog?
    My website is in the exact same area of interest as yours
    and my visitors would certainly benefit from some of the information you present
    here. Please let me know if this ok with you. Regards!

  4. Fine way of explaining, and nice piece of writing to get data concerning my presentation focus,
    which i am going to deliver in academy.

  5. Excellent blog! Do you have any tips for aspiring writers?
    I’m hoping to start my own site soon but I’m a little lost on everything.
    Would you suggest starting with a free platform like WordPress
    or go for a paid option? There are so many choices
    out there that I’m totally confused .. Any ideas? Kudos!

  6. Hello There. I found your blog using msn. This
    is an extremely well written article. I will make sure to bookmark it and come back to read more of your useful info.
    Thanks for the post. I’ll certainly comeback.

  7. I believe this is among the such a lot significant information for me.
    And i’m glad studying your article. However want to statement on few normal things, The website taste is
    perfect, the articles is in point of fact nice : D.
    Good process, cheers

  8. Hello, this weekend is nice designed for me, since this point in time i am reading
    this great informative piece of writing here at my house.

  9. Sweet blog! I found it while browsing on Yahoo News.
    Do you have any tips on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!

  10. Thanks for your personal marvelous posting! I genuinely enjoyed reading it, you can be a great author.I will be sure to
    bookmark your blog and will often come back someday.

    I want to encourage continue your great writing,
    have a nice day!

  11. constantly i used to read smaller articles that as well clear their motive, and that is also happening with this article which I am reading
    at this place.

  12. Hi I am so grateful I found your weblog, I really found you by error, while
    I was researching on AskJeeves for something else, Regardless I am here
    now and would just like to say thanks a lot for a incredible post and a all
    round enjoyable blog (I also love the theme/design), I don’t have time to go
    through it all at the minute but I have bookmarked it and also included your RSS feeds, so when I have time I will be
    back to read a lot more, Please do keep up the fantastic job.

  13. Appreciating the persistence you put into your site and detailed information you
    present. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material.
    Excellent read! I’ve bookmarked your site and I’m including your RSS feeds to my
    Google account.

  14. Hi, i think that i noticed you visited my web site thus i got here
    to go back the choose?.I am attempting to in finding things to improve my web site!I assume
    its adequate to make use of some of your ideas!!

  15. It is truly a nice and helpful piece of info. I’m satisfied that you
    simply shared this helpful information with us.
    Please keep us informed like this. Thank you for sharing.

  16. Hello there, only appeared to be conscious of your blog site by way of Yahoo and google, observed that it’s actually educational. I am going to look for the town. I’ll be relieved if you commence this in future. A lot of people will probably be achieved positive results from a composing.. All the best!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.