G
Guest
Trying to use the code below to move a users mailbox but keep getting the
helpfull "Catastrophic error" message on the line
"objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong?
Dim dsUser As New DirectoryEntry("LDAP://" & AppSettings("PDC") & "/" &
GetAttribute("DistinguishedName", "Samaccountname", m_samAccountName))
Dim sMDB As String
Try
Dim objMailbox As CDOEXM.IMailboxStore
objMailbox = dsUser.NativeObject
sMDB = "LDAP://" & AppSettings("PDC") & "/" &
getHomeMDBURL(sNewServer)
' sMDB = getHomeMDBURL(sNewServer)
' sMDB = "LDAP://" & getHomeMDBURL(sNewServer)
objMailbox.MoveMailbox(sMDB)
dsUser.CommitChanges()
helpfull "Catastrophic error" message on the line
"objMailbox.MoveMailbox(sMDB)". Anyone have a clue what i am doing wrong?
Dim dsUser As New DirectoryEntry("LDAP://" & AppSettings("PDC") & "/" &
GetAttribute("DistinguishedName", "Samaccountname", m_samAccountName))
Dim sMDB As String
Try
Dim objMailbox As CDOEXM.IMailboxStore
objMailbox = dsUser.NativeObject
sMDB = "LDAP://" & AppSettings("PDC") & "/" &
getHomeMDBURL(sNewServer)
' sMDB = getHomeMDBURL(sNewServer)
' sMDB = "LDAP://" & getHomeMDBURL(sNewServer)
objMailbox.MoveMailbox(sMDB)
dsUser.CommitChanges()