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.

28 Comments:

Blogger Support said...

Hi there,

Nice stuff you got, very interesting to read.
Well, I do have also in my sleeves, if you have time don't forget to visit

bookoftips.blogspot.com

Many thanks

1:09 AM  
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 cheap Perfect World Gold said...

I like play online game, I also Buy metin2 gold and Metin2 gold, the Metin2 yang is very cheap, and use the Cheap metin2 yang can buy many things, I like Cheap metin2 gold, thanks, it is very good.

I like play online game, I also Buy Perfect World Gold and Perfect World Gold, the Perfect World Silver is very cheap, and use the Perfect World money can buy many things, I like cheap Perfect World Gold, thanks, it is very good.

6:03 PM  
Anonymous Anonymous said...

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

4:02 PM  
Anonymous Anonymous said...

The Hogan scarpe
reminds to the spring’s pure coolers. Have a look at our fashion store online where you can find the Hogan scarpe donna
. The modern atmosphere of the hogan donna
campaign is not only in the items used. Among the many interesting points he made was that Hogan scarpe uomo
swing was very difficult to copy.

5:15 PM  
Anonymous www.caceres-3d.com said...

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

12:35 PM  
Blogger chenyingying9539 9539 said...

2015-6-30chenyingying9539
nike air max
jrodan retro
burberry outlet
chanel bags
true religion jeans
jordan 8s
oakley vault
dior handbags
gucci outlet
michael kors outlet
polo ralph lauren
toms outlet
louis vuitton outlet
cheap jordans
oakley sunglasses
hermes birkin bag
sac longchamp pas cher
michael kors outlet
mulberry handbags
chanel bags
louis vuitton outlet
coach outlet
coach factorty outlet
ray ban uk
hollister clothing store
hollister clothing store
louis vuitton handbags
fendi
ralph lauren outlet
michael kors

7:32 PM  
Blogger 风骚达哥 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...

burberry pas cher, lunette oakley pas cher, coach outlet, kate spade outlet, true religion jeans, converse, coach outlet, longchamp soldes, north face uk, michael kors, louboutin pas cher, new balance, lululemon outlet, coach purses, nike air max, hermes pas cher, nike tn pas cher, vans pas cher, coach outlet store online, mulberry uk, lunette ray ban pas cher, nike air max uk, sac guess pas cher, nike air force, nike roshe run pas cher, longchamp pas cher, north face pas cher, nike air max pas cher, ray ban uk, true religion outlet, abercrombie and fitch, polo lacoste pas cher, true religion outlet, michael kors, jordan pas cher, nike free, polo ralph lauren uk, vanessa bruno pas cher, true religion outlet, hogan sito ufficiale, ralph lauren pas cher, michael kors outlet online, nike free pas cher, nike roshe uk, abercrombie and fitch UK, nike blazer pas cher, hollister uk

6:42 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 Junda Xu said...

20151026 junda
michael kors outlet
louis vuitton outlet
nfl jerseys
cheap ugg boots
Coach Factory Outlet Online Sale
air max 95,nike golf,nike janoski,air max 1,nike canada,nike plus,nike shox,nike factory store
Louboutin Red Bottoms Shoes Outlet
oakley sunglasses
louis vuitton outlet
ralph lauren polo
michael kors outlet
michael kors outlet sale
ugg boots
Authentic Louis Vuitton Handbags Cheap Online
mont blanc
michael kors outlet
Gucci Outlet Online Sale
michael kors handbags
Authentic Louis Vuitton Belts Outlet Store
michael kors outlet
Coach Factory Outlet Private Sale
true religion jeans
tory burch outlet
Oakley Vault Outlet Store Online
hollister clothing store
nike trainers
Louis Vuitton Handbags Official Site
michael kors handbag
Louis Vuitton Handbags Factory Store
uggs australia

1:10 AM  
Blogger Minko Chen 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 小 Gg 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 John said...

jordan retro
ugg outlet
nike trainers
celine handbags
michaek kors outlet
ugg boots
michael kors outlet
ugg boots for men
ugg outlet
celine bags
oakley sunglasses
louis vuitton backpack
adidas superstar
adidas originals
ugg australia
gucci handbags
uggs outlet
michaek kors outlet
true religion jeans
replica watches for sale
coach factory outlet
ray-ban sunglasses
retro jordans
louis vuitton handbags
louis vuitton outlet online
michael kors outlet online
louis vuitton outlet
montblanc
coach outlet
michael kors
20151203yuanyuan

7:21 PM  
Blogger 小 Gg said...

michael kors handbags wholesale
coach outlet
ugg boots
black friday
ralph lauren outlet
mulberry,mulberry handbags,mulberry outlet,mulberry bags,mulberry uk
lebron 12
cheap uggs
cheap oakley sunglasses
vans sneakers
louis vuitton bags on sale
nhl jerseys wholesale
football shirts uk,soccer jerseys uk,cheap soccer jerseys uk
tory burch handbags
uggs on sale
tods shoes
marc jacobs outlet
polo ralph lauren
ugg outlet store
ugg outlet
cheap oakley sunglasses
nfl jerseys wholesale
michael kors factory store,michael kors outlet online sale,michael kors,kors outlet,michael kors outlet,michael kors handbags,michael kors outlet online,michael kors handbags clearance,michael kors purses,michaelkors.com,michael kors bags,michael kors shoes,michaelkors,cheap michael kors
hermes bags
converse sneakers
cheng1203

1:51 AM  
Blogger xumeiqing said...

151210meiqing
cheap nfl jerseys
louis vuitton outlet
louis vuitton handbags
tory burch sale
replica watches
adidas originals
coach outlet
gucci handbags
coach factory outlet
michael kors outlet
supra shoes
replica watches for sale
hollister uk
air max 90
p90x workouts
nike air max
the north face
nike air huarache
cheap jordans
louis vuitton handbags
abercrombie
gucci shoes
the north face
coach outlet
ray ban sunglasses
ugg boots
nike huarache
ray-ban sunglasses
michael kors outlet
michael kors outlet
coach factory outlet
ugg outlet store
louis vuitton outlet
jordans
oakley sunglasses
michaek kors outlet
ugg boots
coach factory outlet
ray ban outlet
oakley sunglasses wholesale

6:11 PM  
Blogger 艾丰 said...

jianbin1217
fitflops shoes
fitflops sale
fitflops sale clearance
fitflops sale
fitflops shoes
michael kors outlet
michael kors outlet
michael kors outlet
tiffany and co
tiffany jewellery
beats by dr dre
beats by dre
oakley sunglasses
oakley sunglasses
ray-ban sunglasses
ray ban sunglasses
hollister uk
lululemon outlet
ugg outlet
ugg boots
ugg boots
rolex watches
mulberry handbags
mulberry bags
mulberry outlet
mulberry sale
mulberry handbags
mulberry handbags
louis vuitton handbags
louis vuitton handbags
toms shoes
omega watches
ferragamo shoes

6:58 PM  
Blogger 艾丰 said...

jianbin1217
fitflops shoes
fitflops sale
fitflops sale clearance
fitflops sale
fitflops shoes
michael kors outlet
michael kors outlet
michael kors outlet
tiffany and co
tiffany jewellery
beats by dr dre
beats by dre
oakley sunglasses
oakley sunglasses
ray-ban sunglasses
ray ban sunglasses
hollister uk
lululemon outlet
ugg outlet
ugg boots
ugg boots
rolex watches
mulberry handbags
mulberry bags
mulberry outlet
mulberry sale
mulberry handbags
mulberry handbags
louis vuitton handbags
louis vuitton handbags
toms shoes
omega watches
ferragamo shoes

7:04 PM  
Blogger Nike Free 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 Chen Jeje said...

air jordan retro
discount oakley sunglasses
michael kors outlet
oakley sunglasses
toms outlet store
nfl jerseys
oakley sunglasses
cheap uggs
michael kors outlet online
Michael Kors Purses
Cheap Jordans For Sale
ray ban sunglasses outlet
huaraches shoes
nfl jerseys
michael kors outlet online
tiffany and co jewelry
cheap basketball shoes
huaraches shoes
ralph lauren polo shirts
chrome hearts online store

7:19 PM  
Blogger Chen Jeje said...

ray ban sunglasses outlet
cheap authentic jordans
http://www.cheapbasketballshoes.us.com
christian louboutin outlet
true religion store
ralph lauren uk
ray ban sunglasses
jordans for cheap
Cheap NFL Jerseys China
michael kors handbags clearance
http://www.michaelkors-outletwebsite.com
http://www.raybanglasses.in.net
http://www.airhuaraches.org.uk
fitflops sale
oakley sunglasses,oakley outlet sunglasses
toms outlet
christian louboutin shoes
air huarache shoes
nike dunks
kobe basketball shoes
toms outlet store

7:31 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 Lin Shijun said...

kobe shoes
fitflops clearance
christian louboutin outlet
michael kors handbags
adidas tubular sale
chrome hearts online store
christian louboutin outlet
nike zoom kobe
cheap air jordans
tiffany and co
http://www.oakleyoutlet-store.com
louboutin shoes uk
ugg boots uk
ralph lauren online,cheap ralph lauren
kobe shoes,kobe zoom,kobe bryant shoes
http://www.christian-louboutin-outlet.uk
michael kors factory outlet
adidas stan smith
ugg outlet
cheap mlb jerseys
chrome hearts wholesale
tiffany and co
ray ban uk,cheap ray ban sunglasses
nfl jerseys from china
adidas nmd
toms outlet
jordan shoes
oakley outlet online
cheap nfl jerseys
air jordan shoes
oakley store online
air max thea
nike huaraches
oakley sunglasses,oakley outlet sunglasses
tiffany online

7:45 PM  

Post a Comment

<< Home

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