O-Xchange Notes from the Field!

Wednesday, November 5, 2014

When removing Mobile Devices from Exchange Mailboxes, you get the error message: DeviceId cannot contain hyphens.

Scenario:  When you attempt to remove a mobile device from a users mailbox, you receive the error below.

Error:  An unexpected error has occurred and a Watson dump is being generated: DeviceId cannot contain hyphens.  


Resolution: Remove the mobile device object via ADSI Edit.

1. Open ADSI Edit.
2. Under the Default Naming Context, navigate to the user object of the mailbox that has the mobile device.
3. Expand that user object, and click on the CN=ExchangeActiveSyncDevices.
4. Delete the Mobile Device for this user.

Tuesday, November 4, 2014

Time your Powershell Commands

Task:  You want to measure your Powershell commands so you can time your commands for efficiency. In the example below, I want to time how fast my results are returned for finding all Mailboxes in our organization.

Resolution:   Select from #Start to #End and copy and paste it all into PowerShell. Make sure you paste it all at once.  It will execute the start and end time variables and then subtract it.  It will then display the $total in these various units of measure; TotalMilliseconds, TotalSeconds, TotalMinutes, TotalHours, TotalDays, and Ticks.


#Start
$Start = Get-Date
Get-Mailbox -resultsize unlimited
$End = Get-Date
$total = $End-$Start
$total
#End

Outlook Error: "The Delegates settings were not saved correctly. Cannot activate send-on-behalf-of list. You do not have sufficient permission to perform this operation on this object."

Scenario:  You receive the following error in Outlook when trying to Add/Modify Delegates within Outlook:

Error:  The Delegates settings were not saved correctly. Cannot activate send-on-behalf-of list. You do not have sufficient permission to perform this operation on this object.

Resolution: Add the IgnoreSOBError with a value of 1 in the registry.

    1. Click Start, and then click Run.
    2. If you are prompted for an administrator password or for confirmation, type the password or click Continue.
  1. Locate and then click the following registry subkey:

    HKEY_CURRENT_USER\Software\Microsoft\Office\x.0\Outlook\Preferences
    If you use policies, click the following subkey:

    HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\x.0\Outlook\Preferences

    Note: x.0
    in the above registry key represents your Outlook version. Please use one of the following values.

    Outlook 2013: 15.0
    Outlook 2010: 14.0
    Outlook 2007: 12.0
    Outlook 2003: 11.0
  2. After you select the subkey that is specified in step 3, click New on the Edit menu, and then click DWORD Value.
  3. Type IgnoreSOBError, and then press Enter.
  4. Right-click IgnoreSOBError, and then click Modify.
  5. In the Value data box, type 1, and then click OK.
  6. On the File menu, click Exit to exit Registry Editor.

Retrieve all mailboxes assigned to a specific ActiveSyncMailboxPolicy

Task: Retrieve all mailboxes assigned to a specific ActiveSyncMailboxPolicy.  The ActiveSyncMailboxPolicy we are searching for is labeled "VIP".

Run the following:

Get-CASMailbox -ResultSize unlimited | Where ActiveSyncMailboxPolicy -like "VIP" | Select SamAccountName, DisplayName,ActivesyncMailboxPolicy,ServerName | Export-csv C:\VIP_EASPolicy.csv

Wednesday, October 22, 2014

Get all messages from all transport servers by a specific sender, starting on a specific day

Get all messages from all transport servers by a specific sender, starting on a specific day and export to CSV

Use this one-liner:

Get-TransportServer | Get-MessageTrackingLog -sender:test@test.com -start 7/15/2014 -resultsize unlimited | export-csv c:\export.csv

How to modify distribution list in the GAL using Outlook

How to edit/modify a distribution list in the GAL via Outlook



NOTE: In order to edit a distribution list in the Global Address Listing (GAL), you must be the owner of that list.

STEP 1:  In Outlook, hold down the Control, Shift, and B keys. This will open your address book.

Once the address book is open, verify that "Global Address List" is selected in the Show Names from the: field.

Now, search for the name of the list you would like to edit by entering it into the box located under Type Name or Select from List:.

Once you have located the list you would like to edit, double click it to open the Properties window.


STEP 2:  Click on Modify Members button


STEP 3:  You can add a new member to this list by clicking on the Add button on the right side of the window.


STEP 4:  The Add Users window will now open. Type the name of the user you would like to add and then double click on their name. The name should appear in the field at the bottom of the window. Now click OK.


Note: Repeat STEPs 3 and 4 as many times until you have added all the people you would like to this distribution list.


STEP 5:  Any changes that you have made should now appear. Once you are finished, click OK  to return to your address book. You may now close your address book and continue where you left off.


NOTE:  You must be the owner of the distribution list in order to edit it. If you are not the owner and you try to add a member, you will receive the following error message: changes to the distribution list could not be saved. You do not have sufficient permission to perform this operation on this object. 



Recover Deleted items in Outlook or Outlook Web App

Recover deleted items in Outlook or Outlook Web App


Restore deleted items in Outlook 2013


https://support.office.com/en-US/Article/Restore-deleted-items-in-Outlook-49e81f3c-c8f4-4426-a0b9-c0fd751d48ce?ui=en-US&rs=en-US&ad=US


Restore deleted items or email in Outlook Web App

https://support.office.com/en-US/Article/Recover-deleted-messages-or-items-in-Outlook-Web-App-c3d8fc15-eeef-4f1c-81df-e27964b7edd4


Restore Deleted items in Outlook 2010

https://support.office.com/en-US/Article/Restore-deleted-items-in-Outlook-cd9dfe12-8e8c-4a21-bbbf-4bd103a3f1fe


Configuring Message rules for a shared Mailbox

Configuring message rules for a shared mailbox

Scenario: How do I access a shared mailbox and change a rule.  I do have admin rights and full access to this mailbox but when I do a file > open> and try to change the rules, it reverts back to my primary mailbox rules.

Note: Exchange 2010 users cannot modify rules for mailboxes in Exchange 2013, and vice versa

There are several methods to get this to work:



Method 1: Outlook 2010 or Outlook 2013


Configuring Message rules for a shared Mailbox/Service Mailbox


If you are using Outlook 2010 or Outlook 2013 and either have been granted Full Access permissions to the mailbox or have been provided separate credentials for it, then you can also configure this shared mailbox as an additional Exchange account or add it as a secondary mailbox of your own.

How to add an additional mailbox in Outlook 2010:

http://www.groovypost.com/howto/microsoft/add-a-second-additional-mailbox-in-outlook-2010/



How to add an additional mailbox in Outlook 2013

http://www.groovypost.com/howto/add-additional-mailbox-in-outlook-2013/



Once the mailbox has been added, select its Inbox folder and add the rule as you would normally do for your own mailbox.





Method 2: Outlook Web App


When you have been granted Full Access permissions, then you can log on with your own username and password and click on your own name in the top-right corner to get to the option of opening another mailbox.

If you haven’t been granted Full Access permissions but do have separate log on credentials for the additional mailbox, you can use that to log on.

Once logged in, you can create a message rule in the following way:

    For OWA 2013:
    Gears icon (right side of your name)-> Options-> Organize email

    For OWA 2010:
    Options (below your name)-> Create an Inbox Rule…
 

Doing Common and Basic Tasks in Outlook

Common and Basic Tasks in Outlook

Print email, Reply all or forward, Write new mail, spell check, Attach files or photos, see all your email, keyboard shortcuts, font and signature, work with folders, etc

Please launch this Microsoft page for details :

 http://windows.microsoft.com/en-us/windows/outlook/basics

How to Get OutlookAnywhere Configuration Settings from ActiveDirectory

When you type get-outlookanywhere settings, the settings are typically retried from CAS servers. However, those settings can also be retrieved directly from active directory and usually faster than retrieving from CAS servers. To do that, use this PowerShell one liner:

get-outlookanywhere -ADPropertiesOnly | fl identity, *auth*, *hostname

That command will display server name, client authentication method, iisauthentication method and external/internal hostnames

Wednesday, October 15, 2014

Delegate Installation of Exchange 2013

Delegate Installation of Exchange 2013 Server

Exchange Server 2013 lets you delegate the installation of Exchange servers to people who aren't members of the Exchange 2013 Organization Management role group.


Notes: Only a member of organization role group can provision a server. Members of delegated setup can install Cumulative updates. Uninstallation of Exchange requires Org role group membership

step 1: There is a built in group for delegating setup of pre-provisioned servers, named the delegated setup role group. Add the installer to this role group. This allows the installer to install provisioned servers


Step 2: If you're running Setup on the computer that's being provisioned, run the following command:Setup.exe /NewProvisionedServer /IAcceptExchangeServerLicenseTerms


If you're running Setup on another computer, run the following command:Setup.exe /NewProvisionedServer:<ComputerName> /IAcceptExchangeServerLicenseTerms




Delegate Installation of Exchange 2010 Server

Exchange Server 2010 allows an administrator to provision a new Exchange server and then delegate the actual setup of that server to another account


Notes: Only a member of organization role group can provision a server. Members of delegated setup can install Cumulative updates and rollups. Uninstallation of Exchange requires Org role group membership

step 1: There is a built in group for delegating setup of pre-provisioned servers, named the delegated setup role group. Add the installer to this role group. This allows the installer to install provisioned servers


Step 2: If you're running Setup on the computer that's being provisioned, run the following command:Setup.exe /NewProvisionedServer

If you're running Setup on another computer, run the following command:Setup.exe /NewProvisionedServer:<ComputerName>


To make sure the server was properly provisioned for Exchange, you can do the following:

Go to Start > Administrative Tools, and then open Active Directory Users and Computers.

Select Microsoft Exchange Security Groups, double-click Exchange Servers, and then select the Members tab.

On the Members tab, check to see if the server you just provisioned is listed as a member of the security group.

If your server is listed as a member of the Exchange Servers security group, it was properly provisioned. Someone who's a member of the Delegated Setup role group can now install Exchange on that server.

Add a user as the manager of a distribution group without removing existing managers via Exchange PowerShell.

Scenario:  Add a user as the manager of a distribution group without removing existing managers via Exchange PowerShell. If you were to use the Set-DistributionGroup command with the -managedby switch, it would remove the existing managers and set the managers you specified in the switch.  To add the user jdoe1 as a manager and not remove the existing managers from the distribution group 'HQ-All Employees', run the following PowerShell commands below.

$Group = Get-DistributionGroup "HQ-All Employees"
$Managers = $Group.ManagedBy
$User = Get-User  jdoe1
$Managers += $User 
Set-DistributionGroup "HQ-All Employees" -Managedby $Managers -BypassSecurityGroupManagerCheck



Excel Magic: If you have an Excel sheet full of groups in Column A and wish to add jdoe1 as the manager to each of those groups, copy the Excel formula below and drag it down for the entire list of groups. The value of each cell will create the Powershell command that you will need for each group.  Copy the cells (the cell values) and Paste it into Exchange PowerShell.  Each command is separated by a ; so the 5 PowerShell commands needed will fit into one Excel Cell and fit on one PowerShell line for each group.

="$Group= Get-distributiongroup """&A2&"""; $Managers= $grp.managedby; $User=Get-User jdoe1;$Managers+=$User;Set-DistributionGroup """&A2&""" -managedby $Managers -BypassSecurityGroupManagerCheck"

Tuesday, October 14, 2014

A user receives 'Something went wrong Sorry, we can't get that information right now. Please try again later. If the problem continues contact your helpdesk' error message when accessing OWA.

Scenario:  A new mailbox is provisioned and the user is receiving the following error when accessing their mailbox via OWA:

:-(something went wrong

Sorry, we can't get that information right now. Please try again later. If the problem continues, contact your helpdesk.

All normal mail protocols such as OWA and ECP were enabled by default.


Resolution:  I performed a search against the email address for that mailbox and came across two mailboxes that had the same email address  (get-mailbox  jdoe@domain.com). I removed this email alias from the user who was not using it.  The user experiencing the problem could now login to OWA.





Monday, October 13, 2014

Script to Purge IIS Logs on Servers

Scenario:  Some applications, such as IIS, will create daily logs on your server. These IIS logs can be big in size and will not automatically purge off.  The script below will purge all but 7 days worth of IIS logs for each server listed in the $servers variable.


PowerShell Script (PurgeIISLogs.ps1)

$servers = "MBX01","MBX02"

$servers | %{ 

dir \\$_\c$\inetpub\logs\logfiles -recurse |  Where { ((get-date)-$_.LastWriteTime).days -gt 5 } | Remove-Item -Force

}



To schedule this script to run as a daily task, setup a second script (a batch script) that calls the Powershell script and executes it. The batch script is below.

Batch Script (PurgeIISLogs.bat)

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "& 'c:\TASK\PurgeIISLogs.ps1'"

Manually Purge Log Files from Exchange Database Copies

Purpose:  The purpose of this document is to provide instruction on how to safely purge Exchange Database log files manually after log file buildup on a Exchange Server.  Log files are stored in the logs directly until an Exchange aware Full or Incremental Backup is successfully ran.  Once Exchange is aware that this backup is complete, Exchange will purge the log files.  If a backup has not ran successfully, then log files will continue to be created in the logs directory and the previous log files will still exist, consuming space.  Over time, this will fill up the hard drive where the log files are kept.  This manual purge is done live, meaning the instructions below happen while the Exchange Database remains mounted.  In the instructions below, we are using an Exchange Database DB53 that has 4 Database Copies; 1 Mounted, 3 Healthy.


Overview of the Instructions Below:

1. Capture and isolate the Log Files that will moved and purged into a text file.

2. Using Excel, open that text file and format it. Format meaning remove unwanted rows such as Header/Footer rows and removing log files for dates you wish to not remove.  For Example, I want to remove all the log files EXCEPT the last day or two. **NOTE do not remove the newest log files – give yourself a buffer**.

3. Using Excel, we will formulate the Move-Item and Remove-Item scripts to be ran on each server that holds the database copy.  From one database copy, we will move the log files to another server\storage location.  From the other 3 database copies, we will purge the log files.  Purging log files is quick, moving log files is a little bit slower.

4. Run the appropriate .ps1 script that will be created on each server that holds a database copy.


Instructions:

Capture and Isolate the Log Files:
1. Determine the LogFilePrefix for the database:
get-mailboxdatabase DB53 | FL LogFilePrefix

2. Determine the Database Copies Status to figure out which copy is mounted, healthy, or other status. Of the Mounted/Healthy Database Copies, choose 1 Database Copy to move the logs that wish to be purged to a storage share and purge the logs on the remaining copies. This ensures a copy of the logs exist in the event of a problem.

Get-mailboxdatabasecopystatus DB53

3. In a command prompt, run the following DIR command. It will put the results into the text file specified.  You will be using the LogFilePrefix you have found in Step1.

dir \\MBX01\e$\db53\logs\E01*.log > C:\users\steve\desktop\DB53.txt



In Excel, Open the Text File and Format It

4. Open Excel and then Open that Txt File.  Make sure during the Text Import Wizard (when opening the txt file in Excel), the logs are in their own column. I chose fixed width in the Wizard. Click on Finish.

5. Remove the rows that do not contain a log file (Very Beginning Rows and Very Last Rows).

6. Sort the dates (if not sorted already) and remove the rows of the date range that you do not wish to delete. For Example, I want to purge all log files EXCEPT for the last 2 days’ worth.


In Excel, Create the PowerShell Code used to Move/Purge Log Files

7. In Column F (Or the next Open Column) type this formula in and Copy on down to the last row. Note: Cell E2 is the log file name. You may have to change this value if the log file name exists in a different cell.

="Write-Host "&E2&"; Move-Item E:\DB53\Logs\"&E2&" \\FileSvr1\files\DB53" 

8. In Column G (or the next Open Column) type this formula in and Copy on down to the last row. Note: Cell E2 is the log file name. You may have to change this value if the log file name exists in a different cell.

="Write-Host "&E2&"; Remove-Item E:\DB53\Logs\"&E2&" -force"

 9. Copy the Contents out of the Move-Item Column and paste into notepad. Save that notepad file as DB53_move.ps1.  Copy this and run this on the server that has the database copy for you wish to move the log files.

10. Copy the Contents out of the Remove-Item Column and paste into notepad. Save that notepad file as DB53_remove.ps1.  Run this in PowerShell on the servers that have the remaining database copies.


Now you have carefully Moved/Purged the Log Files of that database. You now have bought yourself enough free space on the hard drives to work out your backup issues.

Friday, October 10, 2014

Install and Configure PowerShell Web Access

Here are the steps I took to configure PowerShell Web Access. These commands are being ran from an elevated PowerShell Prompt on the server WebSvr1.TestDomain.Com.


1. Install the Windows PowerShell Web Access Feature. Run the following command:  Install-WindowsFeature –Name WindowsPowerShellWebAccess –IncludeManagementTools

2. Configure the PSWA Gateway. Run the following command:  Install-PSWAWebApplication.  

If you do not have a certificate for the default site configured, you can use the -UseTestCertificate switch, else it will use the certificate already configured.  You should be able to access the url now: https://WebSvr1.TestDomain.Com/pswa  but you will not be able to login until the next step is completed.

3.Configure the PSWA authorization rules.  Run the following command:      Add-PSWAAuthorizationRule –UserGroupName TestDomain\ExAdmins –ComputerName WebSvr1.TestDomain.Com –ConfigurationName *

This command is allowing the ExAdmin group members to authenticate with PowerShell Web Access to the server WebSvr1.TestDomain.com. Now you can authenticate on the PSWA webpage.  Alternatively, you can use these switches with the Add-PSWAAuthorizationRule to add to your rule(s):

-UserName
-UserGroupName
-ComputerName
-ComputerGroupName
-ConfigurationName


4. Now you can successfully navigate to https://WebSvr1.TestDomain.Com/PSWA and run powershell.


Export Mail into a PST between two dates

Scenario:  You want to export mail from a mailbox into a PST with a filter of between two dates.

Run this command:

New-MailboxExportRequest -ContentFilter {(Received -gt '01/01/2014') -and (Received -lt '04/01/2014')} -Mailbox "testuser1" -Name testuser1 -FilePath \\Server\Share\testuser1.pst -baditemlimit 999 -acceptlargedataloss

Thursday, October 9, 2014

OWA message saying “403 Sorry! Access denied” You don’t have permissions to open this page

Issue: User tries to go into the OWA and change the options, but got a message saying “403 Sorry! Access denied” You don’t have permissions to open this page. Wait 15 minutes and try again. Customer already has the correct default role assignment policy assigned.



Cause: Troubleshooting revealed that ecpenabled was set to false for this user under casmailbox
settings.

Resolution: From PowerShell command prompt, type Set-casmailbox -id testuser -ecpenabled $true

Wednesday, October 8, 2014


Issue

Exchange Server unexpectedly reboot after CU6 and databases in service down state.

Cause

Based on the dump it looks to be caused by Replication Services Crashing.

Resolution

Database copy status on the server was showing ServiceDown

After sometime it was showing initializing and few mins later again showing ServiceDown

Checked Event ID

Log Name:      Application
Source:        MSExchange Common
Date:          
Event ID:      4999
Task Category: General
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      
Description:
Watson report about to be sent for process id: 41108, with parameters: E12IIS, c-RTL-AMD64, 15.00.0995.029, msexchangerepl, M.Exchange.Common, M.E.C.H.DatabaseFailureItem.Parse, System.ArgumentOutOfRangeException, fe19, 15.00.0995.012.
ErrorReportingEnabled: True

Log Name:      Application
Source:        Windows Error Reporting
Date:         
Event ID:      1001
Task Category: None
Level:         Information
Keywords:      Classic
User:          N/A
Computer:    
Description:
Fault bucket , type 0
Event Name: E12IIS
Response: Not available
Cab Id: 0


Ran the below command

Wevtutil.exe cl "Microsoft-Exchange-MailboxDatabaseFailureItems/Operational"

Ran it and restarted the Replication Services

All the copy status came to healthy in sometime

Dump Analyzes

==============
*******************************************************************************
*                                                                             *
*                        Bugcheck Analysis                                    *
*                                                                             *
*******************************************************************************

CRITICAL_PROCESS_DIED (ef)
        A critical system process died
Arguments:
Arg1: fffffa80611bd080, Process object or thread object
Arg2: 0000000000000000, If this is 0, a process died. If this is 1, a thread died.
Arg3: 0000000000000000
Arg4: 0000000000000000

Debugging Details:
------------------


PROCESS_OBJECT: fffffa80611bd080

IMAGE_NAME:  wininit.exe

DEBUG_FLR_IMAGE_TIMESTAMP:  0

MODULE_NAME: wininit

FAULTING_MODULE: 0000000000000000

PROCESS_NAME:  MSExchangeHMWo

BUGCHECK_STR:  0xEF_MSExchangeHMWo

DEFAULT_BUCKET_ID:  WIN8_DRIVER_FAULT





   

Tuesday, October 7, 2014



Issue: Customer is the owner of a distribution group called Testgroup
When trying to add employees from Outlook he gets the following error message:
Changes to the public group memberships cannot be saved; You do not have permission to perform the operation on the object


Cause: This happens, because the distribution group the user wants to modify was created on Exchange server 2007. Type this command from PowerShell to confirm that distribution group has legacy version attribute:
get-distributionGroup testgroup | Fl *Version


This is legacy version:  ExchangeVersion : 0.1 (8.0.535.0)

Solution: The distribution group needs to be updated to later exchange version. Use  Exchange server 2010 or 2013 PowerShell  to update the Exchange version attribute of the distribution group
From Exchange 2013 or Exchange 2010 powershell, type Set-distributiongroup TestGroup. That command updates the exchange version for the DG.


To Verify, type:  get-distributionGroup testgroup | Fl *Version


Version should now display ExchangeVersion: 0.10 (14.0.100.0)



Monday, October 6, 2014

Rebuild Content Index of Exchange 2013 Database

Scenario:  You need to rebuild the Content Index of Exchange 2013 Database.

**Note: There is no ResetSearchIndex.ps1 script in Exchange 2013. Rebuild needs to be performed manually**

Instructions:  

1. Stop the following 2 services"
     - Microsoft Exchange Search Service (Service Name: MSExchangeFastSearch)
     - Microsoft Exchange Search Host Controller (Service Name: HostControllerService)

2. Delete or Move the existing Content Indexing catalog folder (CI Folder) of the Database you wish to rebuilding Content Indexing for.  The CI folder is located in the Database directory and has a folder name of a GUID.  (C:\DB01\Database\27485485-A8dF-4Ed8f-BED8-8C4753D6BA123.11.Single)

3. Start the 2 services you stopped in step 1:
     - Microsoft Exchange Search Service (Service Name: MSExchangeFastSearch)
     - Microsoft Exchange Search Host Controller (Service Name: HostControllerService)

Thursday, October 2, 2014

Forward emails that comes to a mailbox to an external address and also keep the mail.

Scenario: you want to forward emails that comes to a particular mailbox to an external address and also keep the mail.

Resolution: Create a mail contact using powershell or Exchange 2013 ECP. If you have exchange 2010 users, you can also use the mgmt console


From Powershell, type Set-Mailbox -Identity 'testmailbox' -DeliverToMailboxAndForward:$true -ForwardingAddress 'mailcontactalias'

Sharing Calendars and other Mailbox Folders between Exchange 2010 and Exchange 2013.

Scenario:  You want to to access shared calendars/mailbox folders between a Exchange 2010 and Exchange 2013 mailbox. The clients used are either using Outlook 2013/2010 or OWA.

Resolution: When accessing a shared calendar/mailbox folder across the different Exchange platforms, follow these guidelines.


OWA:  By Microsofts design, a Exchange 2013 mailbox will not be able to open or edit the calendar entries of an Exchange 2010 mailbox. However, a Exchange 2010 mailbox will be able to access and edit a shared calendar of the Exchange 2013 mailbox.


For an Exchange 2013 mailbox accessing a shared calendar/mailbox folder of an Exchange 2010 mailbox

-Outlook 2013 is preferred.
-Make sure your Outlook version is patched to the latest update.  The Outlook version needs to be at least 15.0.4615.1000 or higher. To find the Outlook version number from within Outlook, click on File > Office Account > About Microsoft Outlook.  Its the Microsoft Outlook version and not the MSO version.
-If you are unable to locate the latest updates for Outlook, run the OffCat tool.  Click here for OffCat instructions.


For an Exchange 2010 mailbox accessing a shared calendar/mailbox folder of an Exchange 2013 mailbox

- If using Outlook 2010, make sure its at SP2 or higher.  If using Outlook 2013, make sure its at version 15.0.4615.1000 or higher.
- Your mail profile for Windows/Outlook needs to be forced to use Outlook Anywhere to reflect the architectural differences for Exchange 2013. Outlook Anywhere will allow Outlook to connect to the Exchange 2013 environment and access their mailboxes correctly. If not, you may not be able to connect to the 2013 mailbox OR your explicit permissions to the shared folder may not be honored. As an example, if you have editor permissions to the calendar of the 2013 mailbox, Outlook may tell you that you do not have permission and you need to request it.  Click here for steps to configure your mail profile to use Outlook Anywhere.


Wednesday, September 24, 2014

Get-CsUser : Management object not found for identity "jdow1".

You must be wondering why a user could not be move from Lync on-premises to the cloud (LyncOnline).


Issue:
This error could occur when user that is already enabled on AD and active on Lync On-premises is not mail enabled (i.e does have exchange account).



 
 
Get-CsUser : Management object not found for identity "jdow1".
At C:\Scripts\MoveUserToO365\EnableUsers.ps1:
+ Get-CsUser -Identity $usr.Identity | Move-CsUser -Target sipfed.online.lync.co
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (jdow1:UserIdParameter) [Get-CsUse
    + FullyQualifiedErrorId : Identity,Microsoft.Rtc.Management.AD.Cmdlets.GetOc
16 char:1


Solution:

The account should be mail enable, then try to move the user to the cloud.



For more assistance
Contact: Abu Lasisi (alasisi1@jhu.edu))

Tuesday, September 23, 2014

The error "Members can't remove themselves from security groups. Please set the group to Closed for requests to leave." when editing a distribution group.

Scenario: When editing the managers of a distribution group, this error is displayed:

Members can't remove themselves from security groups. Please set the group to Closed for requests to leave.


Resolution: Set the MemberDepartRestriction to closed for that distribution group.

set-distributiongroup  <alias of group> -memberdepartrestriction closed

Monday, September 22, 2014

Emails in users "Inbox" are automatically moved to a folder (not created by user), labeled "Junk"



Scenario:

A new email arrives, it sits in the "Inbox" anywhere from a few seconds to a few minutes before it moves to a folder labeled "Junk". This is not the default "Junk E-Mail" folder in Outlook/OWA.


Issue:

Client has a Samsung Galaxy device configured to view users mailbox.


Solution: 
  1. Go into the E-Mail application on the Samsung Galaxy
  2. Press the Menu Key, select Settings, then General Settings
  3. Select Spam addresses and remove any addresses that should not be in there, such as your corporate domain.

No results display for Exchange Databases in EAC under Servers-Databases, New Mailbox Requests, and New Move Requests

Scenario:  In EAC, you notice that no databases are being displayed under Servers-->Databases. You also notice when adding a mailbox or moving an existing mailbox, no databases are being displayed there either to select.

Solution:  When attempting to open and select a database from the mailbox move request,  the error below was displayed before it returned no results.

Error:  The Exchange server for the database object "Mailbox Database 0348382938490" wasn't found in Active Directory Domain Services.  The object may be corrupted.

The database referenced was removed from Exchange, but still exists in ADSI Edit. Remove the database in ADSI Edit:

1. Open ADSI Edit in Configuration and navigate to:
-Services
-Microsoft Exchange
-<Exchange Enterprise Name>
-Administrative Groups
-Exchange Administrative Group
-Databases

2. Find that database, and delete it.


Tuesday, September 16, 2014

Installing SNMP Services on remote servers via powershell

Open notepad, paste the following in notepad without the quotes.
"Get-WindowsFeature -name SNMP* | Add-WindowsFeature -IncludeManagementTools"
 then save as c:\snmpinstall.ps1

From powershell run the following.(without the quotes) Replace servername with the actual server name(s).
For more servers add additional lines as needed.

Invoke-Command -FilePath C:\snmpinstall.ps1 -ComputerName servername
Invoke-Command -FilePath c:\snmpinstall.ps1 -ComputerName servername
Invoke-Command -FilePath c:\snmpinstall.ps1 -ComputerName servername


Monday, September 15, 2014

Check for hotfix on multiple computers

Create file c:\server_list.txt with a list of the servers to check.
In powershell scripts below: Replace $Patch variable KB2982791with the hotfix your looking for.

2 Files will be created on your desktop.
      Hotfix=Present.log
      Missing=Hotfix.log


Run the following from powershell
$computers = cat C:\server_list.txt
$Patch = "KB2982791"
foreach ($computer in $computers)  
{  
if (get-hotfix -id $Patch -ComputerName $computer -ErrorAction 0)  
{  
Add-content "Hotfix is Present in $computer" -path "$env:USERPROFILE\Desktop\Hotfix-Present.log" 
}
Else  
{  
Add-content "Hotfix is not Present in $computer" -path "$env:USERPROFILE\Desktop\Missing-Hotfix.log"   

}

After a Database Reseed, the following error is displayed: Error: Unable to delete logs at 'C:\DB01\Logs'. The database has been seeded successfully. If any obsolete log files exist, manualy delete them to prevent database divergence.

Scenario:  During a Exchange database reseed, you get the following error when the reseed is finished:

Update-MailboxDatabaseCopy DB01\MBX02 -DeleteExistingFiles

A source-side operation failed. Error An error occurred while performing the seed operation. Error: Unable to delete logs at 'C:\DB01\Logs'. The database has been seeded successfully. If any obsolete log files exist, manualy delete them to prevent database divergence. Error: System.IO.IOException: The file or directory is corrupted and unreadable.

Resolution:  Format the hard drive and perform the reseed again.

Friday, September 12, 2014

Configure bulk Exchange 2013 servers for Unified Messaging and Unified Messaging Call Router Settings.

Configure bulk Exchange 2013 servers for Unified Messaging and Unified Messaging Call Router Settings.


Set the UMService and UMCallRouterSettings for the servers:

Get-UMService |  where {$_.identity -like 'MBXSVR*'} | Set-UMService -DialPlans dialplan1 -UMStartupMode "dual"

Get-UMCallRouterSettings |  where {$_.identity -like 'MBXSVR*'} | Set-UMCallRouterSettings -DialPlans dialplan1 -UMStartupMode "dual"


Configure the Exchange Certificate for the UM and UMCallRouter srevices.


Get-ExchangeCertificate -Thumbprint <thumbprint of Certificate> | Enable-ExchangeCertificate -services UM, UMCAllRouter,IIS

Restart the following Services on each server:  
MSExchangeUM, MSExchangeUMCR


Tuesday, September 9, 2014

Exchange 2013 Pre-Installation Steps

Below are some Pre-Installation steps when installing Exchange 2013.
1. Prepare Active Directory Schema for your install of Exchange 2013.
2. Install the Windows Features and then restart.

Install-WindowsFeature AS-HTTP-Activation, Desktop-Experience, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, Web-Mgmt-Console, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation

3. Install these software packages and Reboot:
a. Unified Communications Managed API 4.0 Runtime
b. Microsoft Office 2010 Filter Pack 64 bit
c. Microsoft Office 2010 Filter Pack SP2 64 bit

4. Proceed with the install of Exchange 2013.

Friday, September 5, 2014


Problem:
Outlook just hangs when trying to open outlook on one windows computer, but can open on another windows system.

User is on exchange server, running outlook 2013/2010.
Creating a new outlook profile does not fix the issue.

Resolution:
Rebuild windows profile and create new outlook profile.

This is just a quick solution, rebuilding the windows profile many times is much quicker than going through many troubleshooting steps.

 

 

 

Thursday, September 4, 2014


Clearing out a corrupt transport queue.

MSExchange Transport Service will not start. Application eventlog has logged Source ESE, EventID 529 with this in the details. bytes failed verification due to a corrupted checksum log record. The read operation will fail with error. If this condition persists, restore the logfile from a previous backup.

Stop the MSExchange Transport Service

Go to C:\Program Files\Microsoft\Exchange Server\V14\TransportRoles\data\Queue\ (if installed in default location)

Create New folder OLDQueue,

Move all files in the Queue folder to new OLDQueue folder.

Start the MSExchange Transport Service

A new database will be created and your queue will be cleared.


Exchange Queue Error: 451 4.4.0 dns query failed. the error was dns query failed with error ErrorRetry

Scenario:  You receive complaints that users are experiencing the following symptoms with their Exchange 2013 mailbox:

  • Outlook:  Messages are getting stuck in the OutBox when sending
  • OWA: Messages are getting stuck in the Drafts Folder when sending

During investigation, you run this command: get-queue -server ExMbx1 | FL Identity, Status, MessageCount, LastError and find all of the queues on that transport server have a high MessageCount and this LastError:  451 4.4.0 dns query failed. the error was dns query failed with error ErrorRetry

You have verified your DNS settings on the network adapter are correct and you were successful at using NSLOOKUP to resolve the MX record of one of the domains that you are having trouble with (instructions below on how to do this).

NSLOOKUP instructions:
1. From command line, type nslookup
2. set q=mx    (or  set type=mx)
3. domain.com

Cause:  Exchange transport service allows you to set and use external and internal dns servers different from network card dns settings. Internal DNS server setting was pointing to dns servers that were decommissioned

Solution:  Remove the custom DNS entries in Exchange. This makes Exchange use the network adapters DNS. Follow the steps below to resolve via EAC or PowerShell

Via EAC:
1. Once in EAC/ECP, navigate to Servers and open the server properties.
2. Click on DNS Lookups.
3. Make sure the Internal and External DNS lookups are set correctly.  The internal and External DNS settings need to match DNS setting on the network card IP configuration. Type the current DNS settings or leave it blank. Blank forces Exchange transport service to use network card DNS setting

Via Shell:
1. Use get-transportserver ExMbx1 | FL *DNS* to verify your settings.
2. You want to use the set-transportserver command to set it back to all network adapters or change the custom IP Range.

For Example:  You may wish to change the Internal DNS to use all network adapters and not custom by running:
set-transportserver ExMbx1 -InternalDNSProtocolOption Any

OR type the following to set it to Null

set-transportserver ExMbx1 -InternalDNSServers $null

Wednesday, September 3, 2014

Add a new email address to mailboxes in bulk

This one liner reads a list of user names from a text file, fetches the current set of proxy email addresses, and adds a new “test.com” SMTP email address to each mailbox.


Get-Content Users.txt | Get-Mailbox |% {$_.EmailAddresses.add("smtp:$($_.SamAccountname)@test.com"); Set-Mailbox -Identity:$_.Identity -EmailAddresses:$_.EmailAddresses}

Tuesday, September 2, 2014

Block Activation of Database Copies on an Exchange Server

Scenario:  We need to block database copies on a server from Activation as these servers are being worked on.  Activation is the process of changing a mailbox database copy from a passive copy to an active copy. Activation occurs automatically by the system as part of a database or server failover operation, and it can be performed manually by an administrator as part of a database or server switchover operation. Blocking a database for activation prevents it from becoming the active copy during a database or server failover.


Run the following command to block activation:

For a single server:  
Set-MailboxServer -identity MBX1 -DatabaseCopyAutoActivationPolicy Blocked

For multiple Servers (One liner)
Get-MailboxServer MBX* | Set-MailboxServer -DatabaseCopyAutoActivationPolicy Blocked


Run the following command to unblock activation:

For a single server:  
Set-MailboxServer -identity MBX1 -DatabaseCopyAutoActivationPolicy Unrestricted

For multiple Servers (One liner)
Get-MailboxServer MBX* | Set-MailboxServer -DatabaseCopyAutoActivationPolicy Unrestricted



Reference

Wednesday, August 20, 2014

Cant delete message in OWA.
Error: Access is denied.
Solution: Insure EWS is enabled on mailbox

In Exchange Powershell run
         get-casmailbox mailboxname |select ewsenabled
if       EwsEnabled                 : False

then enable by running the following command.
         set-casmailbox mailboxname -ewsenabled $true

Manage another person's mail and calendar items - Outlook 2013

Applies to Outlook 2013

There are two ways to work with another person's Outlook folders — folder sharing and Delegate Access.

NOTE A Microsoft Exchange Server account is required.

Folder sharing enables another person to access one of your folders, perhaps while you are on vacation. However, it does not include permissions for one to act on behalf of the other. For example, a person who can access your folders can’t reply to email messages or respond to meeting requests for you.

Delegate Access is an Outlook feature that enables one person to act on behalf of another Outlook user. The most common scenario in which this feature is used is a manager and his or her assistant. The assistant might be responsible for maintaining the manager's schedule, such as creating and responding to meeting requests. Some assistants might also monitor a manager's Inbox and send email on behalf of the manager.

A less common scenario involving Delegate Access is when a user is assigned permission to send email on behalf of a group in your organization’s Address Book. In this scenario, if you have been assigned Send As permissions for a group in your organization’s Address Book, you can send email and it will appear to be sent from that group.

This article assumes that the manager has already granted Delegate Access to the delegate.

In this article

· Add another person's mailbox to your profile
· Open another person's folders
· Send or respond to meeting requests for another person
· Create or reply to an email message on behalf of another person
· Send an email message on behalf of a group
· Save sent items in another person's Sent Items folder


Add another person's mailbox to your profile
If you frequently work with someone else's Exchange folders, you probably will want to add the other person's Exchange mailbox to your Outlook profile. Doing so will automatically open the other person's mailbox every time that you open Outlook. The other mailbox appears in the Folder Pane underneath your Exchange mailbox folders.

NOTE The person who is sharing a mailbox must grant you Folder visible permission on the root folder of the Exchange mailbox.

Instructions for granting Folder visible permission

As the manager, do the following in Outlook:

1. Right-click the root folder of the Exchange mailbox, and then click Folder Permissions.
2. Click the name of the delegate.
3. Under Permissions, under Other, select the Folder visible check box.
4. Click OK.


As the delegate, do the following in Outlook:

1. Click File > Account Settings > Account Settings.

 2. On the Email tab, in the list, click the Exchange account type, then click Change and then click More Settings.
3. On the Advanced tab, under open these additional mailboxes, click Add, and then enter the mailbox name of the person whose mailbox that you want to add to your user profile. If you do not know the mailbox name, ask the person who granted you Delegate Access permissions.


Open another person's folders1. Click File > Open & Export > Other User's Folder. TIP To avoid this step in the future, see the instructions on how to add another person's mailbox to the Folder Pane in the Add another person's mailbox to your profile section of this article.
2. In the Name box, enter the name of the person who granted you Sharing or Delegate Access permissions, or click Name to select from a list.
3. In the Folder type list, click the folder that you want to open.


Send or respond to meeting requests for another person
To give the delegate sufficient permissions to accept meeting requests for the manager, the manager must do the following:
1. Click File > Account Settings > Delegate Access.
2. Click Add, then type or select, the delegate’s name, and then click Add.
3. Do one of the following:
· In the Delegate Permissions dialog box, give the delegate Editor (can read, create, and change items) permissions in the manager's Calendar folder.
· Click OK to close the Delegate Permissions dialog box, then select the check box at either My delegates only, but send a copy of meeting requests and responses to me or My delegates only.


To respond to meeting requests
1. Open the other person's Inbox if his or her meeting requests are not sent to you directly.
2. Open the meeting request.
3. Click Accept, Tentative, or Decline.


To send a meeting request
1. Open the other person's calendar.
2. On the Home tab, in the new group, click New Meeting.
3. Enter the attendees, subject, location, and start and end times as you ordinarily do.


Create or reply to an email message on behalf of another person
1. In Mail, click Home > New Email. Keyboard shortcut To create an email message, press Ctrl+Shift+M.

2. On the Options tab, in the Show Fields group, click from.
3. In the from box, type the name of the person on whose behalf you are sending the message. To select the name from a list in the Address Book, click from.
4. Add recipients, a subject, and the contents of the message as you typically do.


To reply to an email message
1. In the other person's mailbox, select the message that you want to reply to on behalf of your manager.
2. Click Home (If you have opened the message, click Message), and then click Reply, Reply All or Forward. Keyboard shortcut To reply to an email message, press Ctrl+R.

3. On the Options tab, in the Show Fields group, click from.
4. In the From box, type your manager's name. To select the name from a list in the Address Book, click From. If you don’t see the From button and box, click Options > From.
5. Add recipients, a subject, and the contents of the message as you typically do.


Send an email message on behalf of a group

If you have been assigned Send As permissions for a group in your organization’s Address Book, you can send email and it will appear to be sent from that group.

1. In Mail, click Home > New Email. Keyboard shortcut To create an email message, press Ctrl+Shift+M.

2. On the Options tab, in the Show Fields group, click from.
3. In the from box, type the name of the group on whose behalf you are sending the message. To select the group from a list in the Address Book, click from.
4. Add recipients, a subject, and the contents of the message as you typically do.



Save sent items in another person's Sent Items folder
When email messages and meeting requests are sent by a delegate on behalf of a manager, a copy of each item is saved in the delegate's Sent Items folder.

As an alternative, the manager can grant permissions to his or her Sent Items folder to the delegate. The delegate can then move or copy the items from his or her own Sent Items folder to the manager's Sent Items folder.

The manager should do the following:

1. In the Folder Pane, right-click the Sent Items folder.
2. Click Properties.
3. On the Permissions tab, click the name of the delegate.
4. Under Permissions, in the Permission level list, click Editor (can read, create, and change items).
5. Click OK.

If you have added the manager’s mailbox to your profile, the manager's Sent Items folder appears in the delegate's Folder Pane under Mailbox - manager.



Manage another person's mail and calendar items - Outlook 2010

Applies to Outlook 2010

There are two ways to work with another person's Microsoft Outlook folders — folder sharing and Delegate Access.

NOTE A Microsoft Exchange Server account is required.

Folder sharing enables another person to access one of your folders, perhaps while you are on vacation. However, it does not include permissions for one to act on behalf of the other. For example, a person who can access your folders cannot reply to email messages or respond to meeting requests for you.

Delegate Access is an Outlook feature that allows one person to act on behalf of another Outlook user. The most common scenario in which this feature is used is a manager and his or her assistant. The assistant might be responsible for maintaining the manager's schedule, including creating and responding to meeting requests. Some assistants might also monitor a manager's Inbox.

This article assumes that the manager has already given Delegate Access to the delegate.

In this article

· Add another person's mailbox to your profile
· Open another person's folders
· Send or respond to meeting requests for another person
· Create or reply to an email message on behalf of another person
· Save sent items in another person's Sent Items folder

Add another person's mailbox or Service Mailbox to your profile
If you frequently work with someone else's Exchange folders, you probably will want to add the other person's Exchange mailbox to your Outlook profile. Doing so will automatically open the other person's mailbox every time that you open Outlook. The other mailbox appears in the Navigation Pane underneath your Exchange mailbox folders.

NOTE The person who is sharing a mailbox must grant you Folder Visible permission on the root folder of the Exchange mailbox. The shared mailbox usually appears as Mailbox - user name.


Instructions for granting Folder Visible permission

As the manager, do the following in Outlook:

1. Right-click the root folder of the Exchange mailbox, and then click Change Sharing Permissions. The shared mailbox usually appears as Mailbox - user name.
2. Click the name of the delegate.
3. Under Permissions, under other, select the Folder Visible check box.
4. Click OK.


As the delegate, do the following in Outlook:

1. Click the File tab.
2. Click Account Settings, and then click Account Settings.

3. On the E-mail tab, in the list, click the Exchange account type, then click Change and then click More Settings.
4. On the Advanced tab, under Open these additional mailboxes, click Add, and then enter the mailbox name of the person whose mailbox you want to add to your user profile. If you do not know the mailbox name, ask the person who granted you Delegate Access permissions.

Open another person's folders

1. Click the File tab.
2. Click Open.
3. Click Other User's Folder. TIP To avoid this step in the future, see the instructions on how to add another person's mailbox to the Navigation Pane in the Add another person's mailbox to your profile section of this article.
4. In the Name box, enter the name of the person who granted you Sharing or Delegate Access permissions, or click Name to select from a list.
5. In the Folder type list, click the folder that you want to open.

Send or respond to meeting requests for another person
To give the delegate sufficient permissions to accept meeting requests for the manager, the manager must do the following:

1. Click the File tab.
2. Click Account Settings, and then click Delegate Access.
3. Enter the delegate's information and click Add.
4. Do one of the following:
· In the Delegate Permissions dialog box, give the delegate Editor (can read, create, and change items) permissions in the manager's Calendar or Tasks folder and at least Reviewer (can read items) permissions in the manager's Inbox.
· Click OK to close the Delegate Permissions dialog box, then select the check box at either My delegates only, but send a copy of meeting requests and responses to me or My delegates only.

5. Click any other tab to return to your file.

To respond to meeting requests
1. Open the other person's Inbox if his or her meeting requests are not sent to you directly.
2. Open the meeting request.
3. Click Accept, Tentative, or Decline.


To send a meeting request
1. Open the other person's calendar.
2. On the Home tab, in the New group, click New Meeting.
3. Enter the attendees, subject, location, and start and end times as you ordinarily do.

Create or reply to an email message on behalf of another person

To create an email message

1. In Mail, on the Home tab, in the New group, click New E-mail. Keyboard shortcut To create an email message, press Ctrl+Shift+M.
2. In the From box, type the name of the person on whose behalf you are sending the message. To select the name from a list in the Address Book, click From. If you do not see the From button and box, on the Options tab of the message, in the Show Fields group, click From.
3. Add recipients, a subject, and the contents of the message as you typically do.

To reply to an email message

1. In the other person's mailbox, select the message that you want to reply to on behalf of your manager.
2. On the Home tab (If you have opened the message, on the Message tab), in the Respond group, click Reply, Reply All or Forward. Keyboard shortcut To reply to an email message, press Ctrl+R.
3. In the From box, type your manager's name. To select the name from a list in the Address Book, click From. If you do not see the From button and box, on the Options tab, in the Show Fields group, click From.
4. Add recipients, a subject, and the contents of the message as you typically do.


Save sent items in another person's Sent Items folder

When email messages and meeting requests are sent by a delegate on behalf of a manager, a copy of each item is saved in the delegate's Sent Items folder. This behavior is by design.

As an alternative, the manager can grant permissions to his or her Sent Items folder to the delegate. The delegate can then move or copy the items from his or her own Sent Items folder to the manager's Sent Items folder.

NOTE To see another person’s folders in the Navigation Pane, see Add another person's mailbox to your profile.

The manager should do the following:

1. In the Navigation Pane, right-click the Sent Items folder.
2. Click Change Sharing Permissions.
3. On the Permissions tab, click the name of the delegate.
4. Under Permissions, in the Permission level list, click Editor (can read, create, and change items).
5. Click OK.

The manager's Sent Items folder appears in the delegate's Navigation Pane under Mailbox - manager.


Export or manually archive Outlook 2011 for MAC items


An easy way to reduce the size of your Inbox is to export — manually archive to an 'Outlook for Mac Data File' (.olm) on your Mac — your e-mail messages, contacts, and other items. You can still access this data at any time, and you can even transfer individual items, or the entire Data File, to Outlook for Mac on another computer.

NOTE   In Outlook for Windows, older Outlook items are archived automatically on a regular interval, also known as Auto Archive. This is not available in Outlook for Mac, but you can archive data automatically by setting up Time Machine.


Do any of the following:

Export to an Outlook for Mac Data File
When you export to an Outlook for Mac Data File, you can choose to filter information by category or by item type. For example, if you want to transfer networking information from your work computer to your home computer, you could export only items that you've assigned to the Networking category. Similarly, you might want to export all your contacts on your home computer and then import them on your work computer. During the export process, you can choose to keep the exported items in Outlook, or to delete them after they are exported.
1. On the File menu, click Export.
2. Click Outlook for Mac Data File.
3. Select an option to filter by category or item type. To export all items in Outlook, click Items of the following types, and then select all the check boxes.
4. Click the right arrow to continue, and then follow the instructions. The Outlook for Mac Data File uses the .olm extension.

NOTES
- If you have a Microsoft Exchange account or directory services account, contacts from the directory are not exported. Similarly, items that are stored in public folders are not exported.
- An Outlook for Mac Data File does not contain account settings or your Outlook preferences.

Export contacts in a tab-delimited text file
To transfer a set of contacts to another computer or application, you can export contacts as a tab-delimited text file, which can be opened by many other mail, spreadsheet, and database applications.
1. On the File menu, click Export.
2. In the Export Assistant, click Contacts to a list, and then follow the instructions. Tab-delimited files are saved with a .txt extension.

 NOTES
- If you have a Microsoft Exchange account or directory services account, contacts from the directory are not exported.
- When you export a contact, all the information in Outlook that is related to that contact — such as mailing addresses, birthday, and notes — is included. However, some mail applications might be unable to display the contents of certain fields such as "Spouse/Partner" and "Interests."
- Encryption certificates aren't exported.

Export individual items
You can also export single items as individual files, either to have as a backup or to use in other applications.
1. In the item list, select the item that you want to export. To select multiple items, hold down   as you click the items.
2. Drag the selection to the desktop or a folder in the Finder.

NOTES
- E-mail messages are exported as .eml files.
- Contacts are exported as vCard (.vcf) files.
- Calendar events and tasks are exported as .ics files.
- Notes are exported as .html files.



Outlook 2011 for MAC not receiving mail

Scenario: "I'm not receiving e-mail or other items in my Exchange account" for Outlook for Mac.
Cause1: Outlook is offline.
Solution1:    Verify that Outlook is online. On the Outlook menu, make sure that Work Offline is not checked. 

Cause2: Outlook is not connected to the server that is running Microsoft Exchange Server.
Solution2:    Check your Microsoft Exchange server connection.  On the Tools menu, click Accounts. Look at the Exchange account in the left pane. If there is a problem with the connection, the indicator icon will be orange.
If you successfully connected to the account before, try to connect to it from another Exchange application, such as Outlook Web App.


Cause3: Items from an Exchange account are stored in the Outlook cache. If this cache becomes corrupted, it may cause synchronization problems with the Exchange server.

Solution3:    Empty the cache in Outlook so that Outlook can download all the items from your Microsoft Exchange account again.

CAUTION   The following procedure deletes any information that is not synchronized with the Exchange server, including your contacts' mail certificate. Before emptying the cache, you may want to back up your Outlook information that is stored only locally on your computer. Make sure that your computer is connected to the Exchange server.

1.     In the navigation pane, press CONTROL and click the Exchange folder for which you want to empty the cache, and then click Folder Properties.

2.     On the General tab, under Empty Cache, click Empty.
After the folder is empty, Outlook automatically downloads the items from the Exchange server.


Manually downloading a copy of the Offline Address Book.

Scenario: You expect to see a user in the Offline Address Book, but you cannot find that user. The Offline Address Book is used when Outlook is in Cached mode.


Solutions:  Outlook is supposed to download the offline address book every 24 hours. Additions/Modifications made to users in the address book may not be seen by someone who is using an older version of the offline address book. We have seen a restart of the computer force Outlook to download it if Outlook has not updated for a while, but you can attempt to manually download a new copy of the Offline Address Book.

Outlook 2010/2013 

1. Click the Send/Receive Tab, click Send/Receive Groups, Select Download Address book.
2. Uncheck the box next to Download changes since last Send/Receive. In the Information to download section, select Full Details and in the Address Book section, choose \Global Address List. click OK.
3. The offline address book will start to download. A status window will open to indicate that the download is in progress and will close automatically when the download is complete.

Outlook 2007 

1. Click on Tools, highlight Send/Receive, select Download Address Book.
2. Uncheck the box next to Download changes since last Send/Receive. In the Information to download section, select Full Details and in the Address Book section, choose \Global Address List. Click OK.
3. The offline address book will start to download. A status window will open to indicate that the download is in progress and will close automatically when the download is complete.


Outlook 2011 on OSX

1.Fully exit Outlook 2011
2.Remove the ~/Library/Caches/Outlook/Main Identity directory
3.Restart Outlook 2011


If the user is not in the offline address book, verify you can find the user via Outlook Web App. 


Tuesday, August 19, 2014

Removing Bulk Exchange Mailboxes via Powershell

Scenario:  You have a list of mailboxes that you wish to remove in bulk.

Resolution:  We will use the Remove-Mailbox command-let in order to perform this task.  We will remove it via a loop by reading in a CSV file with the mailboxes.  Note:  The Remove-Mailbox will disable the mailbox and delete the AD account.  If you wish to leave the AD Account but only disable the mailbox, use the Disable-Mailbox instead.

Create a CSV file with the names of the mailboxes
  1. Open Notepad
  2. On the first line, type in name
  3. On the second line and down, paste the mailbox names (one mailbox per line).
  4. Save it as Mailboxes.csv to a location you will remember

Import the CSV into a Exchange Variable
  1. Open Exchange Management Shell
  2. Type in the following: (Make sure to use the .csv file path from above)
       $mailboxes = Import-Csv 'C:\mailboxes.csv'
  3.  Verify that your Exchange Variable has content by typing in:
       $mailboxes

Remove the Mailboxes via a loop in Exchange Management Shell.
  1. Type in the following:
       $mailboxes | %{Remove-mailbox $_.name -confirm:$false }
  2. The Mailboxes and AD objects are now removed.


Alternate Methods:

1. Remove a Single Mailbox:    
     Remove-Mailbox jdoe1 -confirm:$false
2. Remove multiple mailboxes that follow a pattern in the mailbox name quickly:
     Get-mailbox jdoe* | Remove-mailbox -confirm $false


     



Friday, August 15, 2014

Gathering Mailbox Counts in Exchange

Scenario:  You need to gather Mailbox Counts in your Exchange Environment.  You need to gather these types of counts: Total Mailboxes in your Exchange Organization, Total Mailboxes per Server, and/or Total Mailboxes per Database.


Run the following:
1. Total Mailboxes in the Exchange Organization
(Get-mailbox -resultsize unlimited).count

2. Total Mailboxes per Mailbox Server
Get-Mailbox -resultsize unlimited | Group-Object -Property:ServerName | Select-Object Name,Count

3. Total Mailboxes per Database
Get-Mailbox -resultsize unlimited | Group-Object -Property:Database | Select-Object Name,Count


If you know specific information for the server or database,  you can run the following:

Server:  (Get-MailboxServer MBX01| Get-mailbox -resultsize unlimited).count
Database:  (Get-MailboxDatabase DB01 | Get-mailbox -resultsize unlimited).count
You receive the following error when trying to import a pst file with a large message to an Exchange mailbox.

Error: This mailbox exceeded the maximum number of large items that were specified for this request.
Solution: Raise the -LargeItemLimit size above the default 35mb.

Example:
New-MailboxImportRequest -Mailbox Ben -LargeItemLimit 50 -AcceptLargeDataLoss -FilePath \\server\ben.pst

Wednesday, August 13, 2014

Users Mailbox is still quarantined after it should have been released automatically. Manually remove the quarantine.

scenario: User's mailbox was quarantined and couldn't access email via outlook, mobile device or OWA. User's mailbox was repaired using this powershell command:

New-MailboxRepairRequest -mailbox testmbox -corruptiontype Aggregatecounts,searchfolder,provisionedfolder,folder
view

To check to see if the repair request has completed, 
  1. Navigate to the Application Log in the Event Viewer:
  2. Filter the Log by:
      a. Event Sources:  MSExchangeIS Mailbox Store
      b. Include these Event IDs for the Repair Request: 10044,10045,01146,10047,10048,10049,10050,10051,10059,10062.

In Exchange 2010, the quarantined mailbox should have been released automatically after 6 hours. However, it was still quarantined after 15 hours.



Resolution: 

After verifying the mailbox repair completed successfully, perform the following:

1. Delete the quarantined mailbox GUID from the registry on the server:  HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES\MSEXCHANGEIS\<SERVERNAME>\PRIVATE-(DB GUID)\QUARANTINEDMAILBOXES\(MAILBOX GUID)

2. Dismount and Re-mount the database. 

The mailbox was now released from Quarantine

You can't search for admin audit log entries because the arbitration mailbox for the organization is located on a server that doesn't have Exchange 2013 installed.

Issue: You can't search for admin audit log entries because the arbitration mailbox
'SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}' for the organization '' is located on a server that doesn't have Exchange 2013 installed. The mailbox must be moved to an Exchange 2013 server before you can search for admin audit log entries.

Resolution: Move arbitration mailbox to Exchange 2013

Get-Mailbox -Arbitration -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}" | New-MoveRequest -TargetDatabase <name of Exchange 2013 database>