Removing multiple MSX accounts using a batch file

In an NT4.0 domain and MSX 5.5, how would I remove multiple MSX accounts using a batch file? Can it be done without using third-party software?
The Exchange 5.5 Administrator Tool has command-line options that can be used to delete mailboxes. It takes some practice, so make sure you test in a lab first. Instructions for command-line switches are in online help (for Exchange 5.5) in the References section under "command line switches."

You'll want to learn to use the export switch (/e) and the import switch (/i). You'll also want to use the /o option

that permits use of a "directory import options file" -- and you will need to include the "DeleteNTAccounts=Yes" entry if you want to delete the associated NT account when you delete the mailbox.

Do you have comments on this Ask the Expert Q&A? Let us know.
This was first published in April 2005

Dig deeper on Microsoft Exchange Server Administration Tools



Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: