Solved

Determine status of exchange mailbox vb.net

Posted on 2008-06-09
2
511 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
Last week, our Skyport webinar on “How to secure your Active Directory” (https://www.experts-exchange.com/videos/5810/Webinar-Is-Your-Active-Directory-as-Secure-as-You-Think.html?cid=Gene_Skyport) provided 218 attendees with a step-by-step guide for…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

839 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