Remembering homeMDB & msExchHomeServerName when disabling for later reconnecting

Hi,

My environment requires me to be able to create Exchange mailboxes on existing users, disable those mailboxes and then, some time later, re-enable them and have Exchange reconnect them automatically all driven from some Metaverse attributes.

I have code in MapAttributesForExport which performs this "provisioning" and "deprovisioning" of mailboxes which is working fine. Basically this:

If mventry("mailenabled")

If csentry("homeMDB").isPresent Then csentry("homeMDB") = inventHomeMDB()

End If

Else csentry("homeMDB").delete End If

inventHomeMDB() takes a list of databases and assigns one at random. Then equivalents for msExchHomeServerName and mailNickname.

When it then comes to reprovisioning, I need to be able to recall what homeMDB was set to when the deprovision occurred (as it may have been changed in Exchange by a Move-Mailbox).

I have tried flowing homeMDB back into the MV with a catch in a rules extension to not flow an empty value but this doesn't work because the code is never run when the attribute is Deleted.

I have thought about keeping a small SQL table with the "last known values" in (kept up to date in an IAF rule) which could be checked before calling inventHomeMDB() but this seems rather inelegant.

Any ideas? Thanks!

foo



June 9th, 2015 8:39am

How are you assigning homeMDB to begin with?

Why cant you write the homeMDB in MV the first time you create it, during confirmation Import?

Also, can you use an empty attribute in AD to write homeMDB simultaneously.  there are a bunch of unused attributes like ExtensionAttribute1 ->19

Free Windows Admin Tool Kit Click here and download it now
June 9th, 2015 11:15am

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

Other recent topics Other recent topics