Solved

Importing Calendars into accounts per DB in Exchange 2010 using ExFolders

Posted on 2013-12-18
2
311 Views
Last Modified: 2013-12-26
Hi,

I was following this article:  http://blogs.technet.com/b/manjubn/archive/2012/01/14/holiday-calendar-and-how-import-to-mailboxes.aspx  to try to import holidays into all of my user accounts in Exchange 2010.  I was able to create a new calendar, add the holidays observed by my company, export it and it worked fine.  Then I used Exfolders to export Calendar folder permissions in order to preserve them since the importing may modify some settings.  That also worked great!  However, when I try to import the holiday calendar to mailboxes on specific databases, the command:    
 Get-Mailbox -Database "DB1" | New-MailboxImportRequest -Mailbox "User13" -FilePath \\server\PSTFileShare\HolidayCalendar2014.pst does not work.  I get the following error:

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User1:PSObject) [New-MailboxImportRequest], ParameterBinding
    Exception
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User2:PSObject) [New-MailboxImportRequest], ParameterBindingEx
    ception
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User3:PSObject) [New-MailboxImportRequest], ParameterBi
    ndingException
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User4:PSObject) [New-MailboxImportRequest], ParameterBindingException
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User5:PSObject) [New-MailboxImportRequest], ParameterBindingExc
    eption
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User6:PSObject) [New-MailboxImportRequest], ParameterBindingExcep
    tion
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User7:PSObject) [New-MailboxImportRequest], ParameterBindingEx
    ception
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User8:PSObject) [New-MailboxImportRequest], ParameterBindingExcept
    ion
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User9:PSObject) [New-MailboxImportRequest], ParameterBindingExcep
    tion
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (Test User:PSObject) [New-MailboxImportRequest], ParameterBindingExcept
    ion
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User11:PSObject) [New-MailboxImportRequest], ParameterBindingE
    xception
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User12:PSObject) [New-MailboxImportRequest], Parameter
    BindingException
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User13:PSObject) [New-MailboxImportRequest], ParameterBinding
    Exception
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

The input object cannot be bound to any parameters for the command either because the command does not take pipeline in
 put or the input and its properties do not match any of the parameters that take pipeline input.
     + CategoryInfo          : InvalidArgument: (User14:PSObject) [New-MailboxImportRequest], Parameter
    BindingException
     + FullyQualifiedErrorId : InputObjectNotBound,New-MailboxImportRequest

Is there a way to sort it out so that I can do this bulk operation?

Thanks,

Allie
0
Comment
Question by:TSAdmin8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
lciprianionut earned 500 total points
ID: 39732013
Looking into the article you provided as example, command that you run is not the same that the one from the article
You use: Get-Mailbox -Database "DB1" | New-MailboxImportRequest -Mailbox "User13" -FilePath \\server\PSTFileShare\HolidayCalendar2014.pst

And in the article is: Get-mailbox –Database –DB03 | New-MailboxImportRequest –Mailbox “Dave01” -FilePath \\ Nyc-ex2\PST\HolidayCalendar.PST –IncludedFolders "#Calendar#"
Leaving this aside that command is doing this for one mailbox

To do this for all mbx from one DB it should be
1) this should work as parameter -Mailbox, Accept pipeline input
Get-Mailbox -Database "DB1" | New-MailboxImportRequest -FilePath \\server\PSTFileShare\HolidayCalendar2014.pst
2) or like this: Get-Mailbox -Database "DB1" | % {New-MailboxImportRequest -Mailbox $_.alias -FilePath \\server\PSTFileShare\HolidayCalendar2014.pst}
0
 
LVL 1

Author Comment

by:TSAdmin8
ID: 39740211
Hi, thanks for the reply.  Yes, that worked!
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
This article explains how to install and use the NTBackup utility that comes with Windows Server.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question