I have been running the following for almost a year and suddenly it stopped work. Any help would be great. It is used partly to extract Exchange 2010 migration logs.
the file templist.txt is just a text file with list of user alias used to extract error logs.
$userlist=Get-Content C:\TEMP\Migration\templist.txt
&{
foreach ($user in $userlist){Get-MoveRequestStatistics $user | select DisplayName, TotalMailBoxItemCOunt, ItemsTransferred, PercentComplete, BadItemsEncountered, OverallDuration, BytesTransferredPerMinute | ft }
} | out-file c:\temp\migration\error-count.txt -width 450
I'm now getting the following error,
Cannot process argument transformation on parameter 'Identity'. Cannot convert value "" to type "Microsoft.Exchange.Man
agement.RecipientTasks.MoveRequestIdParameter". Error: "Parameter values of type Microsoft.Exchange.Management.Recipien
tTasks.MoveRequestIdParameter can't be empty. Specify a value, and try again.
Parameter name: identity"
+ CategoryInfo : InvalidData: (:) [Get-MoveRequestStatistics], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Get-MoveRequestStatistics