Hello, Recently I have been researching how to import PST files into Exchange on line, but am running into strange errors.
Parameter syntax is from MS TechNet articles, so not sure what's going on? I've closed all sessions and restarted ISE, but still same issues when connecting to tenant. Please help! Thx
New-MailboxImportRequest
cmdlet New-MailboxImportRequest at command pipeline position 1
Supply values for the following parameters:
Cannot display the prompt for "Mailbox" because type "Microsoft.Exchange.Configuration.Tasks.MailboxLocationIdParameter" cannot be loaded.
+ CategoryInfo : ResourceUnavailable: (:) [], PromptingException
+ FullyQualifiedErrorId : System.Management.Automation.Host.PromptingException
+ PSComputerName : outlook.office365.com
PS C:\Users\userme> New-MailboxImportRequest -Mailbox "myemail@mycompany.org" -FilePath "\\server\PST\testmg2.pst" -IsArchive -TargetRootFolder "ImportedPSTs" -ExcludeFolders "#Calendar#/*"
A parameter cannot be found that matches parameter name 'FilePath'.
+ CategoryInfo : InvalidArgument: (:) [New-MailboxImportRequest], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,New-MailboxImportRequest
+ PSComputerName : outlook.office365.com