Solved

Determine status of exchange mailbox vb.net

Posted on 2008-06-09
2
512 Views
Last Modified: 2008-06-10
Hello fellow experts,

I'm currently writing a vb.net 2.0 consoleapp that will cycle through active directory user accounts and add/remove them to/from some distrobution lists. No problems doing that.
Now for the question. in the exchange management snap-in there is a column "StorageLimits" that says whether the mailbox is below limit, disabled ect.
Can i access that info using the directoryentry object?
What AD property is that information stored in?

PS: I want to add the users to the Distro if their mailbox is below limit,
and I want to  remove them from the distro if their mailbox is disabled.
0
Comment
Question by:Dustin Hopkins
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 71

Accepted Solution

by:
Chris Dent earned 500 total points
ID: 21749483

Hey,

It's not stored in AD at all, but you can get it all using WMI from Exchange (2003).

To be slightly annoying anything you write in that respect is only good for 2003, it won't work with 2000 or 2007.

Perhaps the best way to see what's available there is to use Scriptomatic:

http://www.microsoft.com/downloads/details.aspx?familyid=09dfc342-648b-4119-b7eb-783b0f7d1178&displaylang=en

Then take a look at:

root\MicrosoftExchangeV2
Exchange_Mailbox

There are a number of fields available there you can use to match to user accounts in AD.

Chris
0
 
LVL 14

Author Comment

by:Dustin Hopkins
ID: 21755842
Thanks for the response. I ended up using my vb.net app to interface with wmi and get the proper info. Thanks for the link too, I found the software very helpful.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In-place Upgrading Dirsync to Azure AD Connect
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This video discusses moving either the default database or any database to a new volume.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question