Writing a script to delete the mail box automaticaly which has not been used in few days.

35 pts.
Tags:
Active Directory
Active Directory scripting
Microsoft Exchange
Microsoft Exchange 2003
I am working in a company where many of the users have left the company and are not using there email id. Can u please help me in writing a script to delete the mailbox which have not been used by the users for few days in exchange server 2003.

Answer Wiki

Thanks. We'll let you know when a new response is added.

If you know the exact directory location, you can simply delete it. Removing the mail profile will delete the mailbox.

Write a simple batch file:

<pre>echo off
rem description: deletes mailbox
RD /s “FILE PATH”
</pre>

Or something similar…like del instead of RD (which, with /s will delete the dir and all subdirectories).

Hope this helps!

-Schmidtw

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following