Showing posts with label Mailboxes. Show all posts
Showing posts with label Mailboxes. Show all posts

Wednesday, March 1, 2017

[EX2013] Default folder is missing



Use the steps below to confirm that you are facing this issue, and to reset the PR_ATTR_HIDDEN property of the affected folder.

  1. Download and extract the MFCMAPI tool from http://mfcmapi.codeplex.com.
  2. Launch mfcmapi.exe and click OK through the intro screen.
  3. On the Session menu, click Logon.
  4. Select the Outlook profile for the affected mailbox, and click OK.
  5. Double-click the email address which represents the desired mailbox.
  6. In the left pane, navigate to the affected folder using the appropriate steps below for the type of Outlook profile you are using.

    Cached Mode
    1. Expand Root - Mailbox
    2. Expand IPM_SUBTREE


    Online Mode

    1. Expand Root Container
    2. Expand Top of information Store
  7. Locate and select the folder that appears missing in Outlook, and check the value of the PR_ATTR_HIDDEN to determine if it is set to True, as shown in the following figure:


  8. If PR_ATTR_HIDDEN shows a value of True, right-click the PR_ATTR_HIDDEN property and select Edit Property.
  9. Uncheck the Boolean checkbox and click OK.
  10. Close all MFCMAPI windows, and restart Outlook.


While you are looking at the folder properties you should also check PR_ATTR_SYSTEM. Its default value is also False, so if you find it currently set to True, after completing steps 1 through 9 above, you should change this value as well, using the additional steps below.
  1. If PR_ATTR_SYSTEM shows a value of True, right-click the PR_ATTR_SYSTEM property and select Edit Property.
  2. Uncheck the Boolean checkbox and click OK.
  3. Close all MFCMAPI windows, and restart Outlook.




https://support.microsoft.com/en-us/help/2992093/

Tuesday, February 28, 2017

[EX2013] Recreate arbitration mailboxes




Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms

Get-User | Where {$_.Name –like "SystemMailbox*"} | Enable-Mailbox -Arbitration -Database IT_E15
Get-User | Where {$_.Name –like "FederatedEmail*"} | Enable-Mailbox -Arbitration -Database IT_E15
Get-User | Where {$_.Name –like "Migration*"} | Enable-Mailbox -Arbitration -Database IT_E15

Get-Mailbox –Identity "SystemMailbox{e0dc1c29*" –Arbitration | Set-Mailbox –Arbitration –DisplayName "Microsoft Exchange"

Get-Mailbox –Arbitration –Identity "FederatedEmail*" | Set-Mailbox –Arbitration –ProhibitSendQuota 1MB

Get-Mailbox –Arbitration –Identity "Migration*" | Set-Mailbox –Arbitration –ProhibitSendQuota 300MB

Thursday, December 24, 2015

[EX2010] Export Mailboxes to PST



Get-Mailbox –OrganizationalUnit domain.ca/OUName | foreach { New-MailboxExportRequest -Mailbox $_.Alias -FilePath (‘\\server\share\’ + ($_.alias) + ‘.pst’) }

Sunday, October 4, 2015

[EX2010] List mailbox by size


Get-Mailbox -database mydatabase | Get-MailboxStatistics | Sort-Object TotalItemSize -descending |Select-Object DisplayName,ItemCount,@{name="MailboxSize";exp={$_.totalitemsize}} -first 200 | Convertto-Html | out-File report.htm

Monday, September 7, 2015

[EX2013] Filtering mailbox audit log




Search-MailboxAuditLog margaery -ShowDetails | fl Operation,LogonType,DestFolderPathName,Folder
PathName,ClientIPAddress,MailboxOwnerUPN,LogonUserDisplayName,SourceItemSubjectsList,MailboxResolvedOwnerName,LastAccess
ed

Sunday, September 6, 2015

Saturday, September 5, 2015

[O365] Purge Deleted Users and Mailboxes from Office 365




Single­User Deletion:

Remove-MsolUser -UserPrincipalName username@mydomain.com
Get-MsolUser -ReturnDeletedUsers | Remove-MsolUser -RemoveFromRecycleBin -Force

Bulk User Deletion:

Get-MsolUser -MaxResults 30 -ReturnDeletedUsers | Remove-MsolUser -RemoveFromRecycleBin -Force

[O365] License Information




Get-MsolUser -UserPrincipalName user@domain.com|select -ExpandProperty Licenses |select -ExpandProperty ServiceStatus


Getting all Licensed Office 365 users with PowerShell

Tuesday, September 1, 2015

[EX2013] Update Disconnected Mailboxes





This example updates the mailbox state for all mailboxes on the mailbox database MDB02.

Get-MailboxStatistics -Database MDB02 | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }


This example updates the mailbox state for all disconnected mailboxes on the mailbox database MDB03.

Get-MailboxStatistics -Database MDB03 | Where { $_.DisconnectReason -ne $null } | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }



Update-StoreMailboxState


Remove-StoreMailbox

[EX2013] Database is mandatory on Arbitration Mailboxes




    1. Remove the FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 e-mail account by using the ADSIEDIT tool. To do this, follow these steps:
      1. Click Start, click Run, type adsiedit.msc, and then click OK.
      2. Locate the Default Naming Context node, and then locate to the CN=Users container.
      3. Locate and then right-click the CN=FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 container. Then, clickDelete.
      1. Rerun the Exchange Server 2010 Mailbox role setup application.
      2. Create a new federated e-mail account by using the following command:
        New-Mailbox -Arbitration -Name FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 -UserPrincipalName FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042@<Default_Accepted_Domain>



    setup /PrepareAD [/OrganizationName:]
    Enable-Mailbox -Arbitration -DomainController  -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}"


    Set-Mailbox “SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}” -Arbitration -Database “YourDatabaseNameHere”


Sunday, August 30, 2015

[EX2010] Change the OWA Language



Set-Mailbox -Identity "Katarina Larsson" -Languages "fi-FI"



Set-MailboxRegionalConfiguration -Identity Tony -Language da-dk -DateFormat "dd-mm-yyyy"



Set-OwaVirtualDirectory -identity "Owa (Default Web Site)" -LogonAndErrorLanguage <language code>

[EX2010] Delete Disconnected Mailboxes



Update the databases to show all disconnected mailboxes
Get-MailboxDatabase | Clean-MailboxDatabase


List all disconnected mailboxes in a database and display DisconnectReason if its SoftDeleted or Disabled
Get-MailboxStatistics -Database DATABASE | Where-Object {$_.DisconnectDate -Notlike $NULL} | ft DisplayName, DisconnectDate, MailboxGuid, DisconnectReason –Wrap


Remove all SoftDeleted disconnected mailboxes from a Database
Get-MailboxStatistics -Database DATABASE | where {$_.DisconnectReason -eq "SoftDeleted"} | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}


* Note you will be prompted to confirm each deletion, type Y to each confirmation as prompted. You can add the -Confirm switch to bypass confirmation prompt.