So! Today I got an issue from a client of mine! One of his mailboxes where full! meaning that 99GB of emails was in that mailbox. So! We need archiving.
Wen`t on it and created a Archive mailbox for that mailbox and wanted to start the Folder assistant to actually do some archiving for me!
For the record I created a Retention tag that should archive emails older that 1 year and then added that to a Retention Policy witch i added to the user, then runned the Foler assistand! BOOOOM! Error..
After checkin a bit and tried several commands i went for the last option by using GUID while running the command and you know what? That works!
Why? Yes because when you run it against the UPN or Identity the command just picks the first and best GUID for that user and that`s the Archive mailbox (facepalm).
So by manually adding the right GUID everything works fine and the mailbox was “fixed” 🙂
get-mailboxLocation –user username@domain.no | fl mailboxGuid,mailboxLocationType
MailboxGuid : 636aad27-xxxx-463c-xxxx-d256c8c18716
MailboxLocationType : Primary
MailboxGuid : cd4dbe38-xxxx-4d2b-xxxx-0237bf1a2f78
MailboxLocationType : MainArchive
Start-ManagedFolderAssistant 636aad27-xxxx-463c-xxxx-d256c8c18716