Tech

Guides
 

Scripting the remove and disable mailbox attributes in Exchange 2007

By Rick Vanover, Special to ZDNet Asia
Thursday, July 10, 2008 01:00 PM

Learn to work the Exchange Management Shell to perform de-provisioning of e-mail accounts.

If your Windows environments have migrated to Exchange 2007, you know that the use of the Exchange Management Shell has become a critical part of system administration.

One of the topics that go along with de-provisioning an account is how to handle the e-mail account.

For some environments, you can retain the Windows account for a new hire once the e-mail account is archived. With Exchange 2007, this task would require the use of the shell interface to retain the account and remove the e-mail attributes. The other action would be the full removal of the Windows account and the Exchange mailbox. This functionality is important, as some organizations do not provide all employees e-mail.

To remove the e-mail attribute from the Windows account yet retain the account, you can run either of these scripts from an Exchange Management Shell environment:

disable-mailbox -Identity Windows.Username
disable-mailbox email.address@company.com

This will remove the Exchange mailbox attributes from the account and remove the mailbox from the database. Some additional parameters can be added to the command, such as specifying the domain controller to write the changes to the user account objects and to be confirmed of each change before it is committed.

The other scenario for scripting the removal of the Exchange mailbox would also remove the Windows account from Active Directory. This is a more permanent task, and it is more common when there is no need to retain the Windows account. Both of the samples below show how to do this:

remove-mailbox -Identity User.Name
remove-mailbox user.name@company.com

The two scenarios can be scripted out in large amounts with normal batch files. A common way to make these scripts is a concatenated formula within an Excel spreadsheet that requires only the username or e-mail address to be added to create the command, which would be copied and pasted to save or run in the Exchange Management Shell.



WORTHWHILE?

1

1 votes
Blog

Talkback 0 comments

There are currently no comments for this post.

Guest user

Guest user

Level: 
Joined: —
Already a member? Log in »



 

Loading...

  • HPC Applications

    Ever wondered if High Performing Computing systems really matter in our day-to-day world? Let Dr David Scott from Intel take you a for quick tour on developing HPC applications.
    Play video


  • Maximize IT Spend: Business Acceleration

    How do you ensure your IT solutions are well integrated and streamlined across your enterprise? Rajen from Oracle highlights the important considerations ...
    Play video


  • HPC Architecture: Explained

    Why is High Performance Computing increasingly in demand in today's businesses? Find out which is the most widely deployed HPC architecture today.
    Play video

Getting credit for having a BCP

Blog thumbnail

In July U.S. credit rating agency Standard & Poor's (S&P) started evaluating the enterprise risk management (ERM) capabilities of non-financial companies that it covers. This is S&P's announcement, and here..... by Nathaniel Forbes

Read more »

Whitepapers / Case Studies

Downloads

Enterprise Servers & Storage News

 
Growing your business means sharpening your IT infrastructure
Strengthen your IT foundation with reliable and affordable technology for your expanding business.
» Powerful server blade for SMBs
» Simplify storage with virtualization
» Make a move to energy-efficient blade technology
Test drive Red Hat Enterprise Linux Advanced Platform
Why pay thousands of dollars more per server for critical applications and technologies when you can have it in a single, fully integrated solution?
Test Drive Now!
» Unlimited virtualized guests.
» Storage virtualization.
» High availability clustering and failover.



Tech Jobs Now!

Tags

  1. access
  2. by
  3. dev
  4. do
  5. easily
  6. easy
  7. excel
  8. keep
  9. know
  10. letters
  11. make
  12. mount
  13. openssh
  14. pc
  15. print
  16. printing
  17. program
  18. project
  19. save
  20. scripting
  21. security
  22. server
  23. sql
  24. time
  25. users
  26. using
  27. web
  28. what
  29. windows
  30. word