Solved

Importing Calendars into accounts per DB in Exchange 2010 using ExFolders

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

828 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