ExchMbx is a command-line utility that lets you create user mailboxes, mail enable an AD object, move mailboxes and delete mailboxes among other tasks that can be done using the GUI.

Ex1:
ExchMbx -b cn=joe,dc=joe,dc=net -cr srv1:sg1:db2
Create mailbox for joe in Server srv1, storage group sg1, database db2.

Ex2:
ExchMbx -b cn=joe,dc=joe,dc=net -move srv1:sg1:db2
Ditto ex1 but move.

Ex3:
ExchMbx -b cn=joe,cn=users,dc=joe,dc=net -clear
Clear Exchange attrs for joe, will delete mailbox or
clean email addresses of mailenabled objects.

Ex4:
ExchMbx -b cn=gr1,cn=users,dc=joe,dc=net -me
Mail Enable group gr1

Ex5:
ExchMbx -b cn=con1,cn=users,dc=joe,dc=net -me joe@joeware.net
Mail Enable contact con1 with email address joe@joeware.net

ExchMbx can be obtained from joeware.net along with many other useful tools.

[examples sourced from the ExchMbx Usage page]

  2 Responses to “Manage Exchange mailboxes from the command-line”

  1. If you don’t want to look up the LDAP path of a user, you can use the dsquery command. The output of dsquery can be piped into ExchMbx to have a one-line command.

    dsquery user -name john* | exchmbx -cr srv1:sg1:db2"

  2. Hi There,

    Thanks for sharing your thoughts – they’re insightful and appreciated indeed.

    Hey, have you tried the Gold Finger yet? It’s a new FREE, SUPPORTED and Microsoft endorsed tool for Active Directory, designed by Microsoft’s own Program Manager for Active Directory Security.

    Gold Finger can be instantly deployed on any domain-joined machine and offers over 200 security reports covering Account, Group, Computer, GPO, Container, OU, Exchange and AD ACL Management.

    We’ve been using it for the past three weeks now and it has been immensely useful in day-to-day AD reporting. Its a refreshing change from command-line tools and its inbuilt search outdoes most search tools out there. The best part is that it’s 100% supported, so if we ever have a problem, we can FREE Support for it.

    DOWNLOAD LINK: I believe you can download your own free copy from http://www.paramountdefenses.com/goldfinger.php.

    If you’re into AD reporting, this is a very useful tool to have in your toolset.

    Best wishes,
    John

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

   
© 2021 !NSFW Suffusion theme by Sayontan Sinha