Google
Search WWW Search msexchangetips.blogspot.com

Friday, June 22, 2007

Exchange: Find Disabled Accounts with Mailboxes

Summary: In this example we will use a customer AD query to search for disabled accounts with mailboxes.


Example 1.


In this example we will perform a custome AD search using Active Directory Users and Computers


1. Open Active Directory Users and Computers and click the find icon

2. In the "Find" drop down menu, select custom search and click the advanced tab

3. Paste the following in the white pane:

(&(UserAccountControl:1.2.840.113556.1.4.803:=2)(msExchHomeServerName=*)(objectClass=User))



This will enumerate all disabled accounts with mailboxes. From here you can delete all the mailboxes by selecting the first user and scolling down to the bottom of the list and selecting the last user by shift + left click. Then right click the list, Exchange tasks and delete mailbox.



To perform a search of a single server:


(&(UserAccountControl:1.2.840.113556.1.4.803:=2)(msExchHomeServerName=/O=Domain/OU=MyOU/cn=Configuration
/cn=Servers/cn=Exservername)(objectClass=User))

Click find.


To obtain the full dn of your msExchHomeServerName attribute, you can find this in ADSIEdit.

1. Go to start run, type adsiedit.msc (part of windows server support tools)

2. Expand Domain, this should resemble your OU structure. Locate a user, right click a user cn=my user and select properties.

3. Look for attribute msExchHomeServerName and double click. Copy this string and paste it in the above Ldap query.


Other tricks:


Find disabled accounts with mailboxes that are not hidden in the GAL.


(&(UserAccountControl:1.2.840.113556.1.4.803:=2)(msExchHomeServerName=*)(!msExchHideFromAddressLists=TRUE)(objectClass=User))

To export to txt file using LDIFDE from command prompt:

C:\>ldifde -f c:\exportlist.txt -r "(&(UserAccountControl:1.2.840.113556.1.4.803
:=2)(msExchHomeServerName=*)(!msExchHideFromAddressLists=TRUE)(objectClass=User)
)" -l "dn"


Best practices:


Ensure that you have deleted Mailbox retention configured to ensure that these mailboxes can be recovered in a swift manner. To configure mailbox retention, open Exchange System Manger, locate your mailbox store, properties limits tab.




James Chong (MVP)MCSE M+, S+, MCTS, Security+
msexchangetips.blogspot.com

How useful was this article? Want to see a tip not listed? Please leave a comment.

19 Comments:

Anonymous Anonymous said...

Very Useful

Thanks
Nid

8:45 AM  
Anonymous Anonymous said...

I like Archlord gold very much. Since I entered into this game, I learnt skills to earn Archlord money. Thanks to archlord online Gold let me know a lot of friends. It is my habit to buy Archlord gold, and I get some cheap Archlord gold from my friends and Internet.

I like to play Asda Story, because I like its name, also I like Asda Story gold. My friend told me that she would buy Asda Story money for me, and I was so happy. I do not like to go shopping, because it always spends a lot of money, but I never hesitate to buy Asda Story Gold. You can buy cheap Asda Story gold; it is so easy and convenient.

7:43 PM  
Anonymous Anonymous said...

got some spam in the comments on this post just fyi.

4:02 PM  
Anonymous www.caceres-3d.com said...

It can't truly work, I think this way.

12:35 PM  
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:11 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:40 PM  
Blogger oakleyses said...

converse shoes outlet, salvatore ferragamo, timberland boots, softball bats, herve leger, ray ban, hollister, louboutin, gucci, nike roshe run, iphone cases, beats by dre, mcm handbags, oakley, p90x workout, insanity workout, wedding dresses, abercrombie and fitch, abercrombie, nike air max, mac cosmetics, babyliss pro, valentino shoes, bottega veneta, mont blanc, converse, jimmy choo outlet, hollister clothing, nike air max, north face outlet, new balance shoes, north face outlet, instyler ionic styler, soccer shoes, lululemon outlet, asics running shoes, ghd hair, giuseppe zanotti, soccer jerseys, nfl jerseys, longchamp uk, reebok outlet, nike air huarache, chi flat iron, hermes handbags, vans outlet, polo ralph lauren, celine handbags, nike trainers uk, vans scarpe

6:45 PM  
Blogger oakleyses said...

toms shoes, supra shoes, montre pas cher, ugg uk, juicy couture outlet, moncler, lancel, michael kors outlet online, ugg pas cher, michael kors handbags, barbour, doke & gabbana, michael kors outlet, coach outlet, louis vuitton uk, canada goose jackets, pandora charms, moncler, ugg,ugg australia,ugg italia, links of london uk, moncler jackets, hollister, juicy couture outlet, canada goose outlet, swarovski uk, pandora jewelry, canada goose pas cher, canada goose outlet, marc jacobs, moncler pas cher, thomas sabo uk, swarovski jewelry, karen millen uk, louis vuitton, moncler, moncler uk, sac louis vuitton, canada goose, moncler outlet, louis vuitton, canada goose, wedding dresses uk, ugg,uggs,uggs canada, canada goose uk, sac louis vuitton, moncler, replica watches, barbour jackets uk, bottes ugg pas cher, canada goose jackets

6:48 PM  
Blogger Unknown said...

true religion jeans sale
mlb jerseys
cheap jordan shoes
michael kors uk
michael kors outlet
coach outlet store
louis vuitton outlet store
lacoste pas cher
michael kors handbags wholesale
coach outlet online
michael kors outlet
true religion outlet
cheap ugg boots
michael kors handbags
rolex watches,rolex watches,swiss watches,watches for men,watches for women,omega watches,replica watches,rolex watches for sale,rolex replica,rolex watch,cartier watches,rolex submariner,fake rolex,rolex replica watches,replica rolex
oakley sunglasses
cheap ray ban sunglasses
longchamp handbags outlet
giuseppe zanotti outlet
hermes birkin bag

6:52 PM  
Blogger xumeiqing said...

151202meiqing
michaek kors handbags
nike trainers
chanel bags
north face jackets
pandora jewelry
michael kors outlet clearance
louis vuitton bags
lebron james shoes
ralph lauren outlet
nike huarache
jordan 11
cheap jordans
lebron james shoes 2015
cheap uggs
ugg boots
canada goose
ugg australia
michael kors outlet
ugg slippers
replica watches
uggs for sale
ugg boots for men
toms shoes
coach outlet online
cheap oakley sunglasses
louis vuitton outlet
michael kors outlet online
uggs australia
ugg boots
oakley sunglasses
michael kors outlet
ray ban sunglasses
uggs on sale
canada goose outlet
christian louboutin
uggs outlet
nike air max
coach factory outlet
ed hardy clothing
cheap jordans

5:31 PM  
Blogger Unknown said...

cheap oakley sunglasses
ray ban sale
nike outlet
prada outlet
nike sneakers
swarovski crystal
ralph lauren polo shirts
cheap oakley sunglasses
michael kors usa
wellensteyn coats
true religion jeans
air force one shoes
lululemon outlet
michael kors handbags
ray ban sunglasses
ralph lauren
true religion sale
coach outlet store online,coach outlet store,coach outlet
canada goose outlet
instyler ionic styler,instyler,instyler ionic styler pro
cheap ugg boots
air jordan 11 free shipping
swarovski outlet
hollister pas cher
cleveland cavaliers
CHENG1202

11:58 PM  
Blogger Unknown said...

Michael Kors shoulder-bags
Michael Kors satchels
michael kors
michael kors outlet
2015 michael kors outlet
2015 michael kors outlet
michael kors outlet online sale
michael kors outlet online
michael kors sale
Michael Kors Wallet
michael kors handbags
michael kors purses
michael kors tote
michael kors bags
michael kors uk
macys michael kors
michael kors outlets
michael kors factory
michael kors outlet online store 49.00 outlet
Michael Kors Flagship Store
Michael Kors Drawstring Bags
Michael Kors Bags
Michael Kors Purses
Michael Kors Bracelet

8:47 PM  
Blogger chenlina said...

polo ralph lauren
coach factory outlet
air jordan 13
cheap oakley sunglasses
ray ban sunglasses
gucci outlet
fitflops
true religion shorts
mont blanc pens
cheap oakley sunglasses
polo ralph lauren
timberland outlet
tory burch sale
kobe bryant shoes
polo ralph lauren outlet
louis vuitton outlet
kate spade
christian louboutin outlet
cheap oakley sunglasses
michael kors outlet
timberland outlet
ray ban sunglasses
louis vuitton handbags
true religion jeans
replica watches
designer handbags
toms outlet
true religion
louboutin sale clearance
michael kors handbags
kate spade
abercrombie and fitch
oakley vault
supra sneakers
michael kors outlet
kate spade outlet
louis vuitton handbags
michael kors handbags
polo ralph lauren outlet
michael kors handbags
chenlina20160803

5:44 PM  
Blogger chenlina said...

polo ralph lauren
coach factory outlet
air jordan 13
cheap oakley sunglasses
ray ban sunglasses
gucci outlet
fitflops
true religion shorts
mont blanc pens
cheap oakley sunglasses
polo ralph lauren
timberland outlet
tory burch sale
kobe bryant shoes
polo ralph lauren outlet
louis vuitton outlet
kate spade
christian louboutin outlet
cheap oakley sunglasses
michael kors outlet
timberland outlet
ray ban sunglasses
louis vuitton handbags
true religion jeans
replica watches
designer handbags
toms outlet
true religion
louboutin sale clearance
michael kors handbags
kate spade
abercrombie and fitch
oakley vault
supra sneakers
michael kors outlet
kate spade outlet
louis vuitton handbags
michael kors handbags
polo ralph lauren outlet
michael kors handbags
chenlina20160803

5:45 PM  
Blogger Unknown said...

pandora bracelet
cheap ray ban sunglasses
ecco boots
michael kors outlet
oakley sunglasses outlet
coach outlet store online
pandora bracelet
longchamp outlet
cheap nfl jerseys wholesale
true religion jeans
2017.4.6chenlixiang

11:40 PM  
Blogger Unknown said...

zzzzz2018.7.14
uggs outlet
nike blazer
moncler online
hugo boss sale
moncler online outlet
ugg boots
pandora
true religion jeans
cheap basketball shoes
tods outlet

8:58 PM  
Blogger Unknown said...

www11.20





kate spade outlet
mbt shoes
christian louboutin
coach outlet online
michael kors outlet
true religion jeans outlet
champion sportswear
ralph lauren polo
pandora charms
off white outlet

11:08 PM  
Blogger jjjjjjjjjjjjj said...

fenty puma
kobe 9
michael kors
nike air max 2018
adidas yeezy
pureboost
off white shoes
nike air max
michael kors handbags
nike air max 2019

10:38 PM  
Blogger yanmaneee said...

yeezy
moncler
supreme
vans shoes
jordan retro
nike lebron shoes
curry 5
bape hoodie
jordan shoes
bape clothing

12:43 AM  

Post a Comment

<< Home

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