Google
Search WWW Search msexchangetips.blogspot.com

Monday, January 19, 2009

Exchange: Find Disabled Accounts with Mailboxes Via PowerShell

Summary: This article will go over how to search for disabled users with mailboxes. This is part 2. In part 1; this was done using ADUC.

Exchange: Find Disabled Accounts with Mailboxes
http://msexchangetips.blogspot.com/2007/06/exchange-find-disabled-accounts-with.html

This part will go over how to use powershell.

1. Download Quest powershell. http://www.quest.com/activeroles-server/arms.aspx

Run the following query. I like to export just the name, description and altrecipient to find out if the mailbox is doing any forwarding as well.

[PS] H:\>get-qaduser -includedproperties altrecipient, homeMDB -disabled | select-object -property "name", "description" , "altrecipient", "homeMDB" > c:\mailboxes.csv

Then sort by HomeMDB



James Chong (MVP)
MCITP | EMA; MCSE | M+, S+,
Security+, Project+, ITIL
msexchangetips.blogspot.com

33 Comments:

Anonymous Anonymous said...

Hi James,

If I were you I would remove the ldap filter for disabled users and use the builtin -disabled parameter (less to type),
you can also remove (objectClass=User) since get-qaduser gets user objects only :)

I would also add -sizeLimit 0 to bypass the 1000 objects limit and pipe the results to export-csv.

2:57 AM  
Blogger jamestechman said...

Even Better! Thanks Shay; you are the powershell master!!

7:07 AM  
Anonymous Alyssa said...

Hi James,

I've got a nagging problem that maybe you can post about.

Scenario: VP has an assistant who is a delegate and has explicit permissions to calendar, etc. Assistant leaves the company and her mailbox is deleted (AD account still exists, no MSX attributes). All explicit permissions and delegate status have been removed from VP's account.

Now, internal users sending meeting requests to the VP get NDR message from the *assistant*: "The e-mail account does not exist at the organization this message was sent to." The request is received by the VP but the NDRs are annoying to the people sending meeting requests to the VP.

I have already used adsiedit to verify no attributes in VP's account are still set for the assistant.

Sorry to leave this as a comment - I couldn't find a better way to post on your blog, and you looked like a good person to ask. :)

Thanks,
Alyssa

1:58 PM  
Anonymous Pat said...

Alyssa,

You've probably already tried this, but we've run into this too and using the outlook.exe /cleanserverrules switch has helped clear this sometimes. When that fails, using the MFCMapi tool to remove the hidden rule from the VP's mailbox will work. Be careful using this tool as it is easy to hose the mailbox when used improperly. Make sure you review the doc before running it against the mailbox.

7:50 AM  
Anonymous Exchange email hosting said...

Pat: I'd be too wary with the MFCMapi tool... do you have any other suggestions?

1:06 AM  
Anonymous Cialis Online said...

I love when I find these blogs that post information regarding technology and all of those aspects of the worldwide information.

9:21 AM  
Anonymous buying zolpidem said...

I can't find part 1 of this articles.

10:06 AM  
Anonymous augmentin vs zithromax said...

That is very good comment you shared.Thank you so much that for you shared those things with us.Im wishing you to carry on with ur achivments.All the best.

9:34 AM  
Anonymous tablet pc android said...

Wow, there is a great deal of useful data above!

1:25 AM  
Blogger xjd7410@gmail.com said...

20151012 junda
Abercrombie & Fitch Factory Outlet
michael kors outlet
coach factory outlet
michael kors outlet
Louis Vuitton Handbags Factory Store
louis vuitton
Cheap Jordans For Sale Wholesale
oakley sunglasses,oakley vault,prescription sunglasses,polarized sunglasses,aviator sunglasses,spy sunglasses,oakleys,oakley canada,cheap oakley sunglasses,oakley frogskins,oakley holbrook,cheap sunglasses,wayfarer sunglasses,oakley standard issue,fake oakleys,oakley glasses,oakley.com,oakley prescription glasses,oakley goggles,sunglasses for men,oakley gascan,oakley store,oakleys sunglasses
uggs australia
ugg boots
cheap ugg boots
michael kors handbag
Coach Factory Outlet Online Sale
Louis Vuitton Outlet USA
Air Jordan 4 Toro Bravo
canada goose outlet
toms outlet
New Louis Vuitton Handbags Outlet
Michael Kors Handbags Outlet Deals
michael kors outlet
Wholesale Authentic Designer Handbags
Ugg Boots,Ugg Boots Outlet,Ugg Outlet,Cheap Uggs,Uggs On Sale,Ugg Boots Clearance,Uggs For Women
cheap jordan shoes
michael kors outlet online
louis vuitton handbags
Coach Factory Outlet Private Sale
true religion jeans
Louis Vuitton Bags On Sale
Jordan 13 Shoes For Sale
Ralph Lauren Outlet Clothing

6:07 AM  
Blogger oakleyses said...

louis vuitton outlet, oakley sunglasses, michael kors handbags, cheap jordans, prada handbags, uggs outlet, michael kors outlet, oakley sunglasses, uggs on sale, ray ban sunglasses, burberry outlet, tiffany jewelry, uggs on sale, kate spade, gucci handbags, ray ban sunglasses, prada outlet, longchamp outlet, louboutin uk, burberry factory outlet, tory burch outlet, nike air max, tiffany jewelry, christian louboutin, louboutin shoes, oakley sunglasses, cheap oakley sunglasses, chanel handbags, michael kors outlet store, louis vuitton outlet, nike outlet, ralph lauren polo, louis vuitton, christian louboutin, michael kors outlet online, longchamp outlet, uggs outlet, michael kors outlet online, nike air max, longchamp bags, replica watches, ralph lauren outlet, oakley sunglasses, ray ban sunglasses, louis vuitton outlet online, nike free, michael kors

6:41 PM  
Blogger John said...

cheap oakleys
hollister co
nike running shoes
longchamp outlet
ray-ban sunglasses
louis vuitton handbags
tory burch outlet
ugg boots
jordans
toms shoes
uggs outlet
uggs on sale
oakley sunglasses
christian louboutin outlet
louis vuitton
jordan shoes
coach outlet
abercrombie and fitch
ugg boots
hollister jeans
cheap uggs for sale
louis vuitton outlet
nike air max
hollister uk
lebron james shoes
ugg slippers
cheap uggs
gucci outlet
nike huarache
uggs on sale
polo ralph lauren outlet
20151203yuanyuan

7:12 PM  
Blogger chenlina said...

instyler curling iron
pandora jewelry
christian louboutin
toms shoes outlet
coach outlet
michael kors outlet online
ralph lauren uk
coach factory outlet
jordan retro
adidas yeezy 350
tiffany outlet
coach factory outlet
michael kors handbags
adidas ultra boost
tory burch outlet
celine outlet
ray ban sunglasses
nike outlet
true religion outlet
coach outlet store online clearances
louis vuitton handbags
christian louboutin shoes
fitflops sale clearance
adidas shoes
christian louboutin shoes
michael kors outlet
michael kors purses
adidas trainers
christian louboutin outlet
jordan shoes
vans shoes
cheap nfl jerseys
ralph lauren
mont blanc
oakley sunglasses
toms shoes
louis vuitton outlet
supra shoes
replica watches
tods outlet
chenlina20160803

5:42 PM  
Blogger Unknown said...

jordan shoes
basketball shoes
fitflops shoes
eagles jerseys
pandora jewelry
chicago bears jerseys
michael kors handbags
bills jerseys
christian louboutin outlet
fitflops

6:08 PM  
Blogger Eng Mohamed Abdelwahab said...

If you want anything just tell me.
شركة تنظيف بجده
شركة تنظيف خزانات بجده
شركة تنظيف بالمدينة المنورة
شركة نقل اثاث بمكة

1:02 AM  
Blogger Unknown said...

التنظيف الدائم والجهد الكبير من شركة سبق كلين فى مجالا الكمرات وغيره فى كافه المجالات الكبيره ذا صله واهميه بالنسبه للعمل المتواصل من خلال المجهودات المبذوله والفعاله
شركة تركيب كاميرات مراقبه بالدمام

4:56 AM  
Blogger buyket said...


ياتي دائما مجال الخدمات في بعض الاحيان في الاولويات التي يحتاجها الفرد فمثلا في مجال التنظيف عندما يحتاج العميل الي تنظيف المنزل يبحث عن شركة تقدم له تلك الخدمه مع توافر شروط الجوده المطلوبه وهذا ما نوفره لعملائنا الكرام وايضا عندما يتعلق الامر بمكافحة الحشرات فنحن نوفر افضل الفنيين واحدث السيارات لعملية مكافحة الحشرات والقضاء عليها بالخرج كما وفرنا قسم خاص بنقل الاثاث بما يساعد عملائنا الكرام علي نقل الاثاث دون عناء
شركات مكافحة حشرات بالرياض
شركات مكافحة الفئران بالرياض
شركات مكافحة الحمام بالرياض
شركات تركيب غرف نوم بالرياض
وتلك بعض خدماتنا التي نوفرها في عدة مدن باسعار لا تقبل التنافس وباحدث المعدات

3:26 PM  
Blogger kimberlyjames said...

Macbook user you kinja.com can have to worry because if snaptube Here is not readily available Snaptube (APK) | Download for PC free Snaptube for Android for Mac so you download apps similar Snaptube as snaptube apk will be readily available Snaptube App for apple iphone till then they can download.

11:26 PM  
Blogger shermanharrison said...

In the long run, for instance, it readymag.com/ would certainly be simple to transform the Here regular mobdro app right into mobdro Install Mobdro Download on PC or Android for Samsung wise TV.In this, the Mobdro application will simply imitate mobdro online Mobdro App TELEVISION, from which we can take pleasure in endless videos.

4:02 AM  
Blogger حاتم النجار said...

مؤسسة نقل عفش بالدمام

7:22 AM  
Blogger Unknown said...

oakley sunglasses wholesale
christian louboutin shoes
oakley sunglasses
cheap oakley sunglasses
ray ban sunglasses outlet
chrome hearts
jordan 4
san diego chargers jerseys
ray ban sunglasses outlet
ray ban sunglasses

11:06 PM  
Blogger anosh said...

تركيب عفش بالرياض
تنظيف مكيفات بالرياض
تركيب غرف نوم بالرياض
تركيب باركية بالرياض
تركيب اثاث ايكيا بالرياض
تركيب ستائر بالرياض
من الطبيعي أننا نتعامل مع الاثاث وكأنة سيبقي بشكل ابدي ، فنقوم بتركيب أثاث غرف النوم بعناية شديدة ، وكذلك اجهزة التكيفات وخزائن المطابخ والغسالات الخاصة بالملابس وغسلات والأطباق، فبخصوص تلك الامرعلى قدر ما يشعرنا القيام بذلك بالاستقرار والراحة ولكن علي النقيض يسبب لنا التفكير في نقله إلى مكان جديد من معاناة وقلق،عندما ننظر الي حجم المجهود والوقت الذي تحتاجه عملية النقل من جهة وحجم المخاطر التي تقع على الأثاث من جهة أخرى، ولكن هذة الطريقة تنطبق على الأساليب المعتادة في نقل الأثاث أوالقيام بعملية نقل الأثاث بمفردك دون الاستعانة بشركة متخصصة في ذلك، ولكن ذلك بإمكانه أن ينتهي تماما عند الاستعانة بشركة متخصصة في نقل الأثاث.
شركة خبراء المملكة ، شركة صاحبة علامات تميز مشهودة في مجال نقل العفش،

7:01 PM  
Anonymous Cara Mengobati Gabagen said...

This article is interesting and useful. Thank you for sharing. And let me share an article about health that God willing will be very useful. Thank you :)

Cara Mengobati Sinusitis
Penyebab Mual dan BAB Berdarah
Cara Mengatasi asam Lambung
Cara Mengobati Usus Buntu
Cara Mengobati Gondok Beracun
Cara Menghilangkan Varises

9:21 PM  
Blogger jjjjjjjjjjjjj said...

adidas tubular x
chrome hearts
cheap nba jerseys
air max 90
stephen curry shoes
nike air force 1 low
goyard outlet
goyard bag sale
hermes belt
yeezy boost 350

10:38 PM  
Blogger sara said...

شركه تنظيف بجده
شركة تنظيف منازل بمكة
شركة تنظيف منازل بالطائف
شركة تنظيف بالدمام

9:35 AM  
Blogger rehabgad1 said...



Good write-up. I definitely love this site. Keep it up
https://prokr122.blogspot.com/
https://rehabgad.hatenablog.com/archive
https://prokr123.cabanova.com/
http://arabic-vb.com/
https://www.prokr.net/ksa/jeddah-water-leaks-detection-isolate-companies/

7:42 AM  
Anonymous admission result said...

examresultub.com is an extensive educational portal. Students, parents,
teachers and educational institute can get Board Exam Result,
Admission, Academic Result, Career, Study Material for Assignments,
Institutes and latest Educations News in Bangladesh.


Exam Result:
BPSC is published the bcs exam result 2021 of preliminary,
written and viva exam on bpsc.gov.bd result website- https://examresulthub.com/

Bangladesh Education Board is published the hsc exam result 2021 online on examresulthub.com.
Download the full marksheet with number from here- https://examresulthub.com/hsc-result/


The Ministry of Education has published hsc admission result 2021 online for admission in higher secondary level in Bangladesh.


Full Resources:
https://examresulthub.com/sitemap/


official website:
examresulthub.com

11:23 AM  
Blogger upodesh said...

Class 6 Science Assignment 4th Week
Class 6 Science Assignment 4th Week
Class Six Science Assignment 4th Week
Class Six Science Assignment 4th Week

11:10 AM  
Blogger exam results said...

20 General, Science and Technology Public University is published the guccho university admission test result 2021 ​on the official website which is- gstadmission.ac.bd

3:00 AM  
Blogger jobnewsbd24.com said...

NID Card Online Copy Download 2021: Those who for NID Card Application but have not received NID Card now. They can visit the Bangladesh Election Commission Office through download National Identity Card (NID) collect template use. Also our website method you know every process. so follow to our website.

5:23 AM  
Blogger All New Result said...

DSHE is published the SSC Assignment Answer 2021 for all subjects in dshe.gov.bd.
recently, They have also published the HSC assignment answer 2021 on the same website. You may find other subjects assignment answer from here:

class 6 assignment answer
class 7 assignment answer
class 8 assignment answer
class 9 assignment answer
SSC Assignment 2021
SSC Assignment 2022
HSC Assignment 2021
HSC Assignment 2022

8:03 AM  
Blogger upodesh said...

SSC Biology 4th Week Assignment Answer
SSC Physics 4th Week Assignment Answer
SSC 2nd Week Physics Assignment Answer

12:14 PM  
Blogger Signature Luxury Transportation Group said...

We appreciate your efforts.

Signature Luxury Transportation Group

Signature Luxury Transportation Group

3:39 AM  

Post a Comment

<< Home

xml:lang="en" lang="en"> MS Exchange Tips: Exchange: Find Disabled Accounts with Mailboxes Via PowerShell