Migrating SBS/Exchange 2010 to 2016, and now at the Public Folder chapter.
Getting the following error, and preliminary Googling hasn't found any answers.
Is there something I need to install for PowerShell to work with this command?
Thank you!
[PS] C:\Windows\system32>Get-PublicFolderStatistics | Export-CliXML C:\PFMigration\Legacy_PFStatistics.xml -ResultSize Unlimited Export-Clixml : A parameter cannot be found that matches parameter name 'ResultSize'. At line:1 char:94 + Get-PublicFolderStatistics | Export-CliXML C:\PFMigration\Legacy_PFStatistics.xml -ResultSize <<<< Unlimited + CategoryInfo : InvalidArgument: (:) [Export-Clixml], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.ExportClixmlCommand
At what step does that happen? I don't see it as you quote it?
It was chapter 12, step 6. Without the -ResultSize Unlimited switch, I was getting this:
[PS] C:\Windows\system32>Get-PublicFolderStatistics | Export-CliXML C:\PFMigration\Legacy_PFStatistics.xml WARNING: By default, only the first 100 items are returned. Use the ResultSize parameter to specify the number of items returned. To return all items, specify "-ResultSize Unlimited". Be aware that, depending on the actual number of items, returning all items can take a long time and consume a large amount of memory. Also, we don't recommend storing the results in a variable. Instead, pipe the results to another task or script to perform batch changes.
I have a LOT of public folders :)
Figured it out. Needed to put the -ResultSize switch before the pipe.