Identity      : mydomain/Company/HQ/Users/IS/User Name ExchangeGuid    : a71acf1e-0dbe-45fa-88da-efcc8600049e ArchiveGuid     : 1e7097c0-806b-4001-af22-f18dfaac7b98 PrimarySmtpAddress : username@mydomain WhenMailboxCreated : 7/27/2016 8:03:11 PM WhenSoftDeleted   : WhenChanged     : 5/28/2020 11:07:40 AM WhenCreated     : 7/27/2016 3:35:06 PM WhenChangedUTC   : 5/28/2020 4:07:40 PM WhenCreatedUTC   : 7/27/2016 8:35:06 PM
THANK YOU FOX!Â
sysnimda
ASKER
Thanks Fox! FYI: I disabled and then reenabled it, so not sure if this changes anything.Â
FOX
It looks like it's good. Â If the archive is not showing up in his outlook we have to do something else. Â
Do you now see the archive, yes or no?
No it's not showing up in Outlook. It is actually my boss. :( THANKS!
FOX
Fair enough
1. Get your boss' samaccountname
2. Open up a powershell session as your domain admin account on a domain controller
3 Run the following commands line by line  you can copy and paste.
Fox...thank you so much! What did we actually do here. I apologize I am still learning. I thought it was lost since I didn't see any disconnected mail accounts. What I know is 'archive' db is set for all in place archiving. I freaked cause I thought by re-enabling the feature some how wiped the original mailbox.
RunspaceId        : a1fa910a-4734-4449-8c5d-9ca01204bfee Identity         : PrimaryMRMConfiguration  : PrimaryLastProcessedTime : ArchiveDomain       : ArchiveDatabase      : archive ArchiveMRMConfiguration  : ArchiveLastProcessedTime : ComplianceConfiguration  : ElcV2, ValidArchiveDatabase ItemMRMProperties     : Result          : Successfully logged on to the users Archive mailbox. Error           : IsValid          : True ObjectState        : New
sysnimda
ASKER
My boss is trying right now...I checked exchange and I still see same space/utilization and not same as old mailbox.Â
ArchiveDatabase       : archive ArchiveGuid         : 1e7097c0-806b-4001-af22-f18dfaac7b98 ArchiveName         : {In-Place Archive -Belinda Castano} JournalArchiveAddress    : ArchiveQuota         : 68 GB (73,014,444,032 bytes) ArchiveWarningQuota     : 61.2 GB (65,713,000,448 bytes) ArchiveDomain        : ArchiveStatus        : None ArchiveState         : Local AutoExpandingArchiveEnabled : False DisabledArchiveDatabase   : archive DisabledArchiveGuid     : f2e7660e-9a98-4cc9-84ae-9123f509aa70 ArchiveRelease        :
sysnimda
ASKER
Did I do the wrong GUID? should it be -- DisabledArchiveGuid     : f2e7660e-9a98-4cc9-84ae-9123f509aa70Â
Identity      : doamin/Company/HQ/Users/IS/Belinda Castano ExchangeGuid    : a71acf1e-0dbe-45fa-88da-efcc8600049e ArchiveGuid     : 1e7097c0-806b-4001-af22-f18dfaac7b98 PrimarySmtpAddress : bcastano@domain WhenMailboxCreated : 7/27/2016 8:03:11 PM WhenSoftDeleted   : WhenChanged     : 5/28/2020 11:07:40 AM WhenCreated     : 7/27/2016 3:35:06 PM WhenChangedUTC   : 5/28/2020 4:07:40 PM WhenCreatedUTC   : 7/27/2016 8:35:06 PM
FOX
If that disabled archive is really his original archive he should now have an archive in his outlook that is empty.
Verify with him
'previous archive mail' Its fresh new archive mail account.Â
FOX
Exactly...the disabled one is the original one...no problem we will restore from the original archive to this one...
Open Exchange Management shell and run the following command
[PS] C:\Windows\system32>New-MailboxRestoreRequest -Name "bcastano" -SourceMailbox "f2e7660e-9a98-4cc9-84ae-9123f509aa70 " -TargetMailbox "1e7097c0-806b-4001-af22-f18dfaac7b98"  -AllowLegacyDNMismatch -AcceptLargeDataLoss -BadItemLimit Unlim ited -LargeItemLimit Unlimited -ConflictResolutionOption KeepSourceItem -verbose WARNING: When an item can't be read from the source database or it can't be written to the destination database, it will be considered corrupted. By specifying a non-zero BadItemLimit, you are requesting Exchange not copy such items to  the destination mailbox. At move completion, these corrupted items will not be available at the destination mailbox. WARNING: When an item can't be read from the source database or it can't be written to the destination database, it will be considered corrupted. By specifying a non-zero LargeItemLimit, you are requesting Exchange not copy such items to the destination mailbox. At move completion, these corrupted items will not be available at the destination mailbox. The operation couldn't be performed because 'f2e7660e-9a98-4cc9-84ae-9123f509aa70' couldn't be found.   + CategoryInfo      : NotSpecified: (:) [New-MailboxRestoreRequest], ManagementObjectNotFoundException   + FullyQualifiedErrorId : [Server=HDQ-EXC1,RequestId=c3c357e2-586d-4d84-9061-e3e391eb653e,TimeStamp=5/28/2020 6:59   :58 PM] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] C3B4D628,Microsoft.Exchange.Management.Migratio  n.MailboxReplication.MailboxRestoreRequest.NewMailboxRestoreRequest   + PSComputerName     : mysystem
Ok open Exchange admin Center and verify if you see the archive mailbox in there.....DO NOT CONNECT IT YET
  Open Mailboxes from Recipients option in EAC.
  Click on More option followed by Connect a Mailbox. After that, a list of disconnected mailboxes i.e soft-deleted, disabled mailboxes is shown.
  From the list shown choose the disabled mailbox that you want to reconnect. Click on Connect.
  Click on Yes Button for confirming the choice of reconnection.
FOX
This is what happened...when you disabled the original archive it was put in a soft deleted state and put in that disabled archive database
Then you clicked enable archive and it created a new Archive.
All you had to do was reconnect the one you disabled. Â YOu can now do that once you find it in the EAC. Â You have to verify which one it is, then disable the new archive and reconnect the one in the EAC
sysnimda
ASKER
I have three servers to choose from and the only one that has disconnected mailbox is this one below.
These are my databases and archive is where it would have been stored
sysnimda
ASKER
After I enabled, I researched online and found an article to just restore disconnected mailbox, however I could not find the disconnected mail box.Â
FOX
If you see the mailbox you need to reconnect this is what you need to do now-
1. Disable the current archive that is connected to her mailbox as it is the wrong one. Â It will have a new time stamp when you disable it. Â
2. Once disabled connect the one you have found in the EAC that was disabled earlier by you
Are you saying you still don't see the disabled archived mailbox? Â Refresh the disconnected mailbox page if you don't see
sysnimda
ASKER
I just noticed that when I select disable I get this message, which I originally got. Weird that it didn't just restore since it is before the 30 day limit.
Very Odd.  Ok let's just use the gui.  Go back in to disconnected mailboxes and check every database for her  archive mailbox that was originally disabled.  The disabled archives might be going to a different database
sysnimda
ASKER
I go to EAC - Recipients - Mailboxes - select ... and then I have three servers to choose from and I check all of them. Only one server has disconnected mailboxes, however she isn't listed.Â
FOX
something is wrong then. Â Question are you sure the archive mailboxes are hosted on prem? Â Some places have their archives stored in a cloud solution.
click the field that says "disconnected date" until is shows the most recent date in order
sysnimda
ASKER
The Archive DB is on a different server for which I am running these scripts. I tried running the last script and the outcome is still generating a blank note bad
Go back to disconnected mailboxes and click the field that says "disconnected date" until is shows the most recent date in order,
you should see the one you disabled earlier and even the one you disabled a little while ago. Â If you don't see either one of those disabled archives something is wrong.
sysnimda
ASKER
I sorted and I only see 15 mail accounts and boss isn't listed.
FOX
You checked all the servers, not just that one? Â You don't even see the archive you disabled a little while ago? Â Check all the servers in the list
[PS] C:\Windows\system32>$dbs | foreach {Get-MailboxStatistics -Database $_.DistinguishedName} | where {$_.DisconnectRea son -eq "SoftDeleted"} | Format-List DisplayName,MailboxGuid,LegacyDN,Database,*Guid*,When* [PS] C:\Windows\system32>$dbs = Get-MailboxDatabase [PS] C:\Windows\system32>$dbs | foreach {Get-MailboxStatistics -Database $_.DistinguishedName} | where {$_.DisconnectRea son -eq "Disabled"} | Format-Table DisplayName,Database,DisconnectDate
DisplayName               Database                 DisconnectDate -----------               --------                 -------------- Adriana Davalos             exdb1                  5/12/2020 7:27:47 PM Ranulfo Vazquez             exdb1                  5/14/2020 12:33:45 PM Abraham Lozano              exdb1                  5/14/2020 12:11:04 PM Jiezi Jacobo               exdb1                  5/14/2020 2:42:34 PM Luis Garcia               exdb1                  5/12/2020 5:42:32 PM Ricardo Alcantar             exdb1                  5/12/2020 4:53:25 PM Ana Laura Davalos            exdb2                  5/12/2020 2:33:44 PM Miriam Alvarado             exdb2                  5/14/2020 4:33:51 PM Valentin Rubio              exdb2                  5/15/2020 3:38:45 AM Enrique Zuniga              exdb2                  5/14/2020 2:41:17 PM Jose Barragan              exdb2                  4/29/2020 12:33:12 AM Edgar Cruz                exdb3                  5/12/2020 1:45:51 PM Jesus Grimaldo              exdb3                  5/12/2020 12:33:41 PM Maria Villaseñor             exdb3                  5/12/2020 3:00:47 PM Leobardo De Luna             exdb3                  5/12/2020 3:09:47 PM
Name            RetentionPolicyTagLinks             Guid ----            -----------------------             ---- Default MRM Policy     {Recoverable Items 14 days move to archive,... a79f6a1c-f1a0-43fc-b3fa-d5d1d2b0dbc3 ArbitrationMailbox     {Never Delete, AsyncOperationNotification, ... db737f0d-b407-4de0-a49b-92b959b7254a Archive all over 6 months {6 Month Archive}                1eee7ebe-a7fa-4649-a39b-edcfadf93dec Archive-24 months     {Archive after 2 years-Personal}        bf29dc57-79d0-4816-8d1f-e7dcf47147dc
sysnimda
ASKER
This is weird...I am thinking maybe I should restore from Veeam Backup. I just don't know if I should reenable the feature and then restore to original location?Â
There is something wrong with this picture. Â
 I don't see anything that you disabled today and you have disabled 2 archives today, niether one of them are showing up
[PS] C:\Windows\system32>Get-MailboxDatabase "colexc1\archive" | Get-MailboxStatistics  | where {$_.DisconnectReason -eq  "Disabled"} | Format-Table DisplayName,Database,DisconnectDate Cannot process argument transformation on parameter 'Identity'. Cannot convert value "colexc1\archive" to type "Microsoft.Exchange.Configuration.Tasks.DatabaseIdParameter". Error: "'colexc1\archive' is not a valid value for the identity. Parameter name: Identity"   + CategoryInfo      : InvalidData: (:) [Get-MailboxDatabase], ParameterBindin...mationException   + FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-MailboxDatabase   + PSComputerName     : hdq-exc1.corp.oesglobal.com
Yes I was about to say that. Â Enable the archive and then restore to the archive folder
FOX
You are on the right track now.
sysnimda
ASKER
Hey, FOX I cannot thank you enough for staying with me. I have never received this type of support even when I have paid for it. THANK YOU SO MUCH!!!! Fingers crossed! I hope this goes well. You deserve a medal!!!!
Identity      : domain/OES/HQ/Users/IS/Belinda Castano ExchangeGuid    : a71acf1e-0dbe-45fa-88da-efcc8600049e ArchiveGuid     : 00000000-0000-0000-0000-000000000000 PrimarySmtpAddress : bcastano@domain WhenMailboxCreated : 7/27/2016 8:03:11 PM WhenSoftDeleted   : WhenChanged     : 5/28/2020 6:09:12 PM WhenCreated     : 7/27/2016 3:35:06 PM WhenChangedUTC   : 5/28/2020 11:09:12 PM WhenCreatedUTC   : 7/27/2016 8:35:06 PM
ArchiveDatabase       : ArchiveGuid         : 00000000-0000-0000-0000-000000000000 ArchiveName         : {} JournalArchiveAddress    : ArchiveQuota         : 68 GB (73,014,444,032 bytes) ArchiveWarningQuota     : 61.2 GB (65,713,000,448 bytes) ArchiveDomain        : ArchiveStatus        : None ArchiveState         : None AutoExpandingArchiveEnabled : False DisabledArchiveDatabase   : archive DisabledArchiveGuid     : 7d01c03b-8caa-4c3f-b910-a4ad30617fc8 ArchiveRelease        :
FOX
Ok good....
so it is now showing no archive....
Try to connect that archive again now when it errored out.
Question,
Do you believe the one you are trying to connect is her original archive that you disabled this morning?
sysnimda
ASKER
Well not 100% but at this point what do we have to lose by reconnecting it. I know she will want to know how this one came up but not original if it doesn't work.
DisplayName        ItemCount   StorageLimitStatus                         LastLogonTime -----------        ---------   ------------------                         ------------- In-Place Archive - Bel... 418775                                  5/27/2020 8:54:04 AM
FOX
Ok that looks like it...let's try the below  (change the email address to hers)
[PS] C:\Windows\system32>New-MailboxRestoreRequest -SourceStoreMailbox "In-Place Archive - Belinda Castano" -SourceDatab ase "archive" -TargetMailbox bcastano@oesglobal.com -TargetIsArchive WARNING: An unexpected error has occurred and a Watson dump is being generated: Mailbox 'Belinda Castano' has no archive. Mailbox 'Belinda Castano' has no archive.   + CategoryInfo      : NotSpecified: (:) [New-MailboxRestoreRequest], MailboxHasNoArchiveException   + FullyQualifiedErrorId : Microsoft.Exchange.Management.Tasks.MailboxHasNoArchiveException,Microsoft.Exchange.Mana   gement.Migration.MailboxReplication.MailboxRestoreRequest.NewMailboxRestoreRequest   + PSComputerName     : hdq-exc1.corp.oesglobal.com
ArchiveDatabase       : archive ArchiveGuid         : 263cb630-7235-4217-9821-830bfb500711 ArchiveName         : {In-Place Archive -Belinda Castano} JournalArchiveAddress    : ArchiveQuota         : 68 GB (73,014,444,032 bytes) ArchiveWarningQuota     : 61.2 GB (65,713,000,448 bytes) ArchiveDomain        : ArchiveStatus        : None ArchiveState         : Local AutoExpandingArchiveEnabled : False DisabledArchiveDatabase   : archive DisabledArchiveGuid     : 7d01c03b-8caa-4c3f-b910-a4ad30617fc8 ArchiveRelease        :
Name                      TargetMailbox                  Status ----                      -------------                  ------ MailboxRestore                 corp.oesglobal.com/OES/HQ/Users/IS/Belinda ... Queued
[PS] C:\Windows\system32>Get-MailboxRestore | Select Name,TargetMailbox,*guid* Get-MailboxRestore : The term 'Get-MailboxRestore' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Get-MailboxRestore | Select Name,TargetMailbox,*guid* + ~~~~~~~~~~~~~~~~~~   + CategoryInfo      : ObjectNotFound: (Get-MailboxRestore:String) [], CommandNotFoundException   + FullyQualifiedErrorId : CommandNotFoundException
Name                   TargetMailbox              RequestGuid ----                   -------------              ----------- MailboxRestore              corp.oesglobal.com/OES/HQ/Users/IS/B... aa0ff319-1c8b-4141-8d7d-d95ba1567dfd
Name                  StatusDetail        TargetAlias              PercentComplete ----                  ------------        -----------              --------------- MailboxRestore             CopyingMessages      bcastano                11
sysnimda
ASKER
I see data growing...Shes not online right now, but I have good feeling. I cant believe this bro.
You are the man right about now. Â If it was the blank archive we were restoring it would be done by now. Â Every now and then just run this below to check the progress. Â
Then open up her mailbox in webmail
open up your webmail
 to the top right click your initials(or picture)
Open another mailbox
input her email address
scroll down to see if the archive is populating
sysnimda
ASKER
Yes, I texted her just now...how can I send you $donation (a little something).
FOX
Did you open up her mailbox in your webmail? Â Let's not party yet...I want to make sure it's the right one populating
I went to OWA and attempted to access but access denied
[PS] C:\Windows\system32>Add-MailboxPermission mail -User "mail" -AccessRights F ullAccess -Automapping $False
Identity       User         AccessRights                         IsInherited Deny --------       ----         ------------                         ----------- ---- corp.oesglobal.co... CORP\jaime.campos   {FullAccess}                         False    False
FOX
It take a few minutes before the permissions kick in,,,try again in 10 minutes...in the meantime let's check the progress
I also texted her...I know she will ask me why all of sudden it came up in disconnected mailboxes. She will also want to know how I got it to work.She just responded right now and checking
FOX
This will be your incident report to her:
Your archive mailbox was inadvertently disabled at "put in the date and time".
I was not able to connect your disabled archive box back during the day in the conventional method as it wasn't showing up in disconnected mailboxes until the mailbox databases synced at 6 pm.
Once the databases synced up I was able to see the disconnected mailbox and when attempting to connect it back it threw an error stating the archive mailbox was already in use.
I then enabled a new archive and restored your original archive mailbox data to the new enabled archive.
I apologize for any inconvenience this may have caused you
Was it you or someone else that disabled the original archive?
sysnimda
ASKER
Hey Fox, I just started this job a month half ago...we had some network switches down a week ago and I was able to restore quickly and my boss was very happy. I have been doing good but I dropped the ball this AM. I had multiple screens opened and I accidently disabled her account when I met to do my own accoutn. If it wasn't for you, I would be lost. I cannot thank you enough. Please contact me if you can by email.
FOX
Ish happens bro. Â Each one teach one. Â You are a hero right about now. Â Let's be glad it wasn't her primary mailbox. Â She cannot be that mad. Â You have rectified the issue within 24 hours without having to contact Microsoft and/or spending any real loot. Â She will be glad trust me.
https://technewskb.com/reconnect-disabled-archive-mailbox-exchange-2013/Â