Re: An application, script, or AD Saved query that ...

Tech-Archive recommends: Fix windows errors by optimizing your registry



This isn't straight forward. You need to do this with script or code. One
way of doing this is to pull all the groups that a given user is a member
of, and then check each group to see if it is mail-enabled, or
mailbox-enabled.

The problem here is getting the complete list of group membership. This
isn't a trivial task if you fancy pulling member of and then chasing any
nestings. It's probably going to be easier to pull tokenGroups, convert the
SIDs into groups, and then check the groups.

There's probably also a couple of ways of finding whether or a group is mail
or mailbox enabled. You can't use sAMAccountType as Exchange will make
Distribution Groups Security groups if someone uses the group as part of an
ACL, and you can't just check for a mailbox as mail enabled groups don't
have mailboxes (only mailbox enabled groups) therefore you're probably best
off checking for an e-mail address.

The above isn't trivial, but can be done with a variety of languages. You
can do this with VB Script. There should be examples for each of the steps
available. You'll have to put it all together and add error handling and
output, etc.

--
Paul Williams
Microsoft MVP - Windows Server - Directory Services
http://www.msresource.net | http://forums.msresource.net



.



Relevant Pages

  • Script for users in AD
    ... can anyone tell me how to make a script that show me, ... directory, mailbox size (exchange), OU that is member. ...
    (microsoft.public.windows.server.scripting)
  • Re: Komtrolle der neu angelegten Mailboxen
    ... ich suche eine Lösung echt per Script. ... zweiten Teil soll eine Mailbox angelegt werden, ... eMailadresse geändert, oder eine neue zusätzlich angelegt werden kann. ... Set oConnection = CreateObject ...
    (microsoft.public.de.exchange)
  • Re: Contact and DL - [WildPacket]
    ... So you mean a mailbox-enabled user is a member of the group? ... Internal e-mail address is one of my co-worker with an exchange mailbox. ... I created an Distribution List called TESTMAIL and added 2 objects. ...
    (microsoft.public.exchange.admin)
  • Re: Mailbox Creation
    ... script are there. ... We are finding that there is a 30-second delay between the mailbox ... > creation and the ability to add proxyaddresses. ...
    (microsoft.public.exchange.development)
  • Re: Mailbox Managment
    ... "This script combines ideas from my previous 2 articles content filter ... and scanning script and mailbox crawl script. ... Combined Content filter and Mailbox Crawl Script ...
    (microsoft.public.exchange.admin)