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

[LY2013] Find the share of a pool




#Quickly find and open the share folder for the Lync pool

Invoke-Item(Get-CsService -FileStore | Select-Object -ExpandProperty UncPath)

[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

[WSRV] Capture machine FQDN




$fqdn = "$env:computername.$env:userdnsdomain"

import-module activedirectory
$name = hostname
$domain = (Get-ADDomain).dnsroot
$pc = ("$name"+"."+"$domain")
$pc

Tuesday, February 21, 2017

[EX2010] Remove special characters in public folder name




  • Look for special character in public folder name:

Get-MailPublicFolder | where {$_.alias.contains(' ') -or $_.alias.contains(',') -or $_.alias.contains('@') -or  $_.alias.contains('(') -or  $_.alias.contains(')') -or  $_.alias.contains(':') -or  $_.alias.contains(';')}



  • To fix the issue, run the cmdlet:

Get-MailPublicFolder | where {$_.alias.contains(' ') -or $_.alias.contains(',') -or $_.alias.contains('@') -or  $_.alias.contains('(') -or  $_.alias.contains(')') -or  $_.alias.contains(':') -or  $_.alias.contains(';')}| Foreach { Set-mailpublicfolder -Identity $_.Identity -Alias ($_.Alias -replace "\s|\,|\@|\(|\)|\:|\;") }



  • Run the first command again to check if still there are public folders with unwanted characters in the name

Sunday, December 18, 2016

[WSRV] Prevent Truncation of Long Output

Check with:


$FormatEnumerationLimit


Modify to unlimited:


$FormatEnumerationLimit =-1

Monday, October 17, 2016

[WSRV] Backup AD partition



ldifde -d "<configuration container>" -f configuration.ldf