automate disable-mailbox for exchange 2007
We have a custom written VB 6.0 application that we use for account management. Part of this tool's purpose is to automatically create exchange mailboxes when a new account is created. This is done solely through the manipulation of AD attributes. I would like to add the ability to disable a mailbox automatically when the account becomes disabled. I want it to function exactly as if I had manually run the disable-mailbox powershell command. So, basically, I either have to know how to call the disable-mailbox feature within a VB 6.0 program, or just know exactly what attributes the disable-mailbox feature modifies or deletes, and what it changes them too, so I can have my developer incorporate that into his application Thanks Christiaan
January 12th, 2011 5:06pm

Are you aware to “disable” a mailbox in Exchange is to delete the mailbox and all Exchange related attributes? Or are you looking to prevent access to the mailbox when the user’s account is disabled in AD? If you really just want to kill mailboxes for disabled users, use the disable-mailbox cmdlet after this script: http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/16/using-powershell-to-find-all-disabled-users-in-active-directory.aspx Mike Crowley Check out My Blog!
Free Windows Admin Tool Kit Click here and download it now
January 13th, 2011 1:15pm

Are you aware to “disable” a mailbox in Exchange is to delete the mailbox and all Exchange related attributes? Or are you looking to prevent access to the mailbox when the user’s account is disabled in AD? If you really just want to kill mailboxes for disabled users, use the disable-mailbox after this script: http://blogs.technet.com/b/heyscriptingguy/archive/2010/08/16/using-powershell-to-find-all-disabled-users-in-active-directory.aspx Mike Crowley Check out My Blog!
January 13th, 2011 1:15pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics