• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

how to use Exchange Management Shell to find disabled AD users with mailboxes

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> Management >> how to use Exchange Management Shell to find disabled AD users with mailboxes Page: [1]
Login
Message << Older Topic   Newer Topic >>
how to use Exchange Management Shell to find disabled A... - 25.Sep.2012 5:14:30 PM   
xxsubz78x

 

Posts: 62
Joined: 27.Aug.2008
Status: offline
I'm trying to figure out the Exchange 2007 Management shell command to find disabled AD accounts that still have a mailbox in the database.

Please don't send me to a generic Microsoft link, I need the actual command.


Thank you
Post #: 1
RE: how to use Exchange Management Shell to find disabl... - 26.Sep.2012 12:46:52 AM   
Gulab

 

Posts: 646
Joined: 31.Jul.2008
From: India
Status: offline
This is what you need.
http://www.mikepfeiffer.net/2010/06/managing-disconnected-exchange-mailboxes-with-powershell/
http://www.howexchangeworks.com/2009/10/task-get-list-of-disconnected-mailboxes.html

_____________________________

Gulab Prasad,
Technology Consultant
Exchange Ranger
Check out CodeTwo’s tools for Exchange admins

(in reply to xxsubz78x)
Post #: 2
RE: how to use Exchange Management Shell to find disabl... - 26.Sep.2012 10:38:57 AM   
xxsubz78x

 

Posts: 62
Joined: 27.Aug.2008
Status: offline
Actually that's NOT what I need at all. You gave me some links on how to see Disconnected Mailboxes.

When you disable an AD account, nothing happens with the mailbox itself until an admin goes in and disables it.

So here's what happens:

1. Administrator disables the AD account
2. Administrator does nothing else.
3. Exchange mailbox stays connected to the "disabled" AD account.

I need to find those AD accounts that are disabled but still have a mailbox associated with it.

(in reply to xxsubz78x)
Post #: 3
RE: how to use Exchange Management Shell to find disabl... - 27.Sep.2012 8:46:30 AM   
de.blackman

 

Posts: 3542
Joined: 4.Apr.2005
From: Toronto, Canada
Status: offline
Hi,

What you are looking for is more an active directory request not an exchange one.

http://msexchangetips.blogspot.ca/2007/06/exchange-find-disabled-accounts-with.html

http://msexchangetips.blogspot.ca/2009/01/exchange-find-disabled-accounts-with.html

_____________________________

Ibrahim Benna - Microsoft Exchange MVP
Forum Moderator
Navantis
@IbrahimBenna

(in reply to xxsubz78x)
Post #: 4
RE: how to use Exchange Management Shell to find disabl... - 27.Sep.2012 10:29:47 AM   
xxsubz78x

 

Posts: 62
Joined: 27.Aug.2008
Status: offline
I figured it out elsewhere. You have to use this command:

Get-Mailbox |?{$_.UserAccountControl -Match "AccountDisabled"}| Fl Name,Database,UserAccountControl

(in reply to de.blackman)
Post #: 5
RE: how to use Exchange Management Shell to find disabl... - 29.Jul.2013 1:20:58 AM   
rodickwillision

 

Posts: 7
Joined: 10.Jul.2013
Status: offline
Hello,

They can be use Exchange Manatment Console to manage your Office 365 or offline EDB files to Office 365. For more information read this blog and I hope your issue will be solve : http://exchangeservermigration.blogspot.com/2013/06/how-to-perform-migration-in-exchange.html

(in reply to xxsubz78x)
Post #: 6

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> Management >> how to use Exchange Management Shell to find disabled AD users with mailboxes Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter