< -- BuySellAds Ad Code ALLEN -->
exchange 2016 logo

Exchange 2007, Exchange 2010 Public Folder Migration Error

Every Exchange migration I do that involves public folders always has its own little fiddly unique error, one I am working on at the moment is no different.

I was at the stage of running the Export-PublicFolderStatistics command to CSV and I received the following error:

You cannot call a method on a null-valued expression.
At C:\Scripts\Export-PublicFolderStatistics.ps1:193 char:88

The statistics export will then fail. I downloaded various new scripts and continued to get the same error. After MUCH research and working with my colleague Pete (www.petenetlive.com) I found the issue to be the following.

Exchange 2007 does not like the following variable in the Export-PublicFolderStatistics.PS1 script, “$_.MapiIdentity”.

To resolve the issue edit the file “Export-PublicFolderStatistics.ps1” and find this text in file “$_.MapiIdentity” and replace it with “$_.Identity“.

Save the file and run your script again and you will then be able to run the command successfully. This issue will apply to Exchange 2007 to Exchange 2013 and Exchange 2010 to Exchange 2016

 

Tags: Public Folders

Allen White

Allen is an IT Consultant and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5, 6 and HP ASE, AIS - Network Infrastructure.

Leave a comment

Categories

Vote!

What Web Browser Do You Use?

View Results

Loading ... Loading ...

Vote!

What do you prefer..VMware or Hyper-V?

View Results

Loading ... Loading ...