Solved

Determine status of exchange mailbox vb.net

Posted on 2008-06-09
2
508 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
2 Comments
 
LVL 70

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

Why spend so long doing email signature updates?

Do you spend loads of your time carrying out email signature updates? Not very interesting are they? Don’t let signature updates get you down. Let Exclaimer Cloud - Signatures for Office 365 make managing email signatures a breeze.

Question has a verified solution.

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

Suggested Solutions

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now