Solved

Importing Calendars into accounts per DB in Exchange 2010 using ExFolders

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

895 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

16 Experts available now in Live!

Get 1:1 Help Now