Solved

Importing Calendars into accounts per DB in Exchange 2010 using ExFolders

Posted on 2013-12-18
2
292 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now