Import multiple PST files for a single user into archive mailbox is failing

Most of our users that have PST files have between 2 and 10 separate PST files named by either subject or year.
I am trying to find a way to automate using New-MailboxImportRequest to import ALL of the psts found within a user's shared folder.
I found a script that others says should work, but it doesn't work for me.
One of the problems is that that the commands are spread over several lines.  I have tried entering it line by line but it still errors out.
First, how can I run a multi-line command?
Second, can anyone see an error in the script below?
I do change the server name, share name and mailbox alias to the actual values before running.
I am trying the script below and it fails:
$filepath=”\\server\usersfileshare”
$items=get-childitem -path $filepath -filter *.pst
foreach($item in $items)
{$location=$filepath+”\”+$item.Name
New-MailboxImportRequest -mailbox mailboxalias -isarchive -filepath $location}
The error says:
Unexpected token 'items' in expression or statement.
At line:1 char:51
+ $filepath="\\servername\usersfileshare" $items <<<< =get-childitem -path $filepath -filter *.pst foreach ($item i
n $items) {$location=$filepath+"\"+$item.Name New-MailboxImportRequest -mailbox mailboxalias -isarchive -filepath $location
    + CategoryInfo          : ParserError: (items:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

You can have check this
thread which has been discussed earlier with similar concern.
Here is another helpful
Blog reference. Please check this.
Moreover, you can have also check this
automated option which would be very helpful in terms of importing PST files into live exchange mailboxes.

Similar Messages

  • How to pass multiple MDX values for a single parameter into a drill-through report?

    I'm thinking this will be an easy question for any experienced SSRS/MDX developers, at least I hope so!  I've created a report that gives the user the option to choose viewing data for the current/active week, or YTD.  Depending on which link the
    user selects, the report simply calls itself and needs to pass in the parameter value for Active week.  If it's active week, the parameter value will simply be "true".  If it's YTD, the parameter value needs to be both "True" and "False" so the current
    week's data is accounted for as well.  I've set everything up except for the final step, and I have no idea what to type into the Value field below.  I've tried different things: false, as you see below (it errors saying I'm missing the parameter
    value), the value in MDX format: =[School Dates].[Active Week].&[True] (it said I was missing a bracket), a 1 instead of the word true (again, missing a parameter value).  Nothing is working.
    So my question is kindof two-fold: 1) how do you pass in the value at all and 2) more specifically, how do you pass in multiple values (both true & false) ??

    I'm sorry for being so dense, but I'm not quite following, although what I've tried makes me think if I can follow you, it will work :)
    To answer your initial questions, you are correct with both your assumptions:
    1) detailType is the parameter that specificies YTD/Weekly, this is a "report defined" parameter that I am using to determine which Row Group to display (either YTD or Weekly)
    2) SchoolDaysActiveWeek is the parameter that is being set to either true or false -- this is a field in the cube that states whether that record is for the current week or not
    So in following your instructions, well that's the problem I'm not quite following :)
    1) When you say Delete the SchoolDaysActiveWeek parameter from the report only, do you mean to mark the parameter as Hidden?  If so, I've done this.
    2) I'm not quite sure where to use the statement you provided me.  You said to put it in the dataset, but I don't know which dataset.  I assume you mean the "main" dataset (as opposed to the hidden dataset that gets generated when you mark a field
    as a parameter).  If this is the case, the only place I could see that would allow you to use such a statement is in the Filter section of the properties.  I tried this, and it did not generate any errors, but it also kept my report groups from displaying
    -- it just showed a blank report, so I think it probably wasn't bringing back any rows to populate them with.
    I also tried going into the Expression section for the SchoolDaysActiveWeek parameter in the second screenshot and placing the statement there.  When I did this and ran the report, I would get the following error:
    The 'SchoolDaysActiveWeek' parameter is missing a value
    So what am I missing!? 
    Also, thanks for taking the time to respond!!

  • How to import Multiple PST's

    Hello,
    I have an enduser with 85 pst files. And he wants to add them all. 
    Does anyone know of a solution to do this massively instead of one by one.?
    Thanks. 

    Hi,
    On Outlook side, we can only open or import single PST file at once. If you want to open or import multiple PST files at once, you'll need to find some third-party tools.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Import PST files for multiple users at the same time?

    While importing PST files into archive mailboxes, the Exchange 2010 mailbox server went to 100% CPU and memory usage and I could not stop the imports because the EMS stopped responding.  We had to restart the whole server to get back to normal.
    Not sure if importing PSTs was the cause of it it was a coincidence.  We have done imports the same way before without this issue.
    How many PST imports can be done at the same time and how do we queue up multiple users and have the mailbox imports have unique names for each user?  I noticed they are always called MailboxImport and MailboxImport1 and then it starts over as MailboxImport
    again for additional users. So, if more than one user's PSTs are being imported at the same time, we will have multiple identically named imports running.
    We would like multiple users' PST imports to queue up and start automatically when the previous users' imports complete.

    Please try like this. Rename folder name same as alias.  i.e. \\server\share\<alias>. below are examples.
    "\\server\share\jsmith"
    "\\server\share\tjones"
    "\\server\share\rsmith"
    "\\server\share\bspears"
    "\\server\share\mmouse"
    And run below command to take PST from the corresponding
    foreach ($i in (Get-Mailbox)) { New-MailboxImportRequest -Mailbox $i -FilePath "\\Server\share\$($i.Alias)\$($i.Alias).pst" -baditemlimit 50 -acceptlargedataloss ;while ((Get-MailboxImportRequest -mailbox $i | ? {$_.Status -eq "Queued" -or $_.Status -eq "InProgress"})) { sleep 180 } }
    If a folder missing with the alias you will see an error similar to this.I think this will work for you. You just keep only the required PST folders to import in the "\\Server\share" folder. 
    "Unable to open PST file '\\server\share\mmouse\mmouse.pst'.
    Error details: Could
     not find a part of the path '\\server\share\mmouse\mmouse.pst'.
        + CategoryInfo          : NotSpecified: (0:Int32) [New-MailboxImportRequest], RemotePermanentException
        + FullyQualifiedErrorId : 27802833,Microsoft.Exchange.Management.RecipientTasks.NewMailboxImportRequest"
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • IWork Licensing -Is Retail License for a single user or multiple users

    I have a a Retail Version of iWork '08. How do I determine if this is for a single user or multiple users?
    Thank you

    So the next question is can I "unregister" this from my iMac thus allowing me to either reistall it on another machine or perhaps sell it?
    Yes, you can. Apple doesn't "track" serial numbers, but you are doing the right thing by removing iWork '08 & it's registration. The file that keeps the serial number is the com.apple.iWork08.plist found in HD > Library > Preferences. This is the Library on the first level of your HD, not your user Library.

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

  • Multiple AD account in single domain for a single user

    Hi,
    Does OIM support multiple AD account in single domain for a single user?
    Scenario 1 :- If the multiple accounts already exists in AD can I pull it from AD to OIM for single user.
    Scenraio 2:- Does OIM allow creation of multiple account in AD for a single user, when requested from OIM?
    Thanks,

    yes. this is possible. OIM allow this.
    obviously the recon rule would be employee number or anything other than ' sAmAccontName' for target recon
    while provisioning make sure you are generating unique sAmAccountName and Common Name(if in same OU) for same user
    If you maintain above no issue having multiple account for a sing user in single domain

  • Importing a pst file into Outlook for Mac

    As soon as I start importing a pst file (from Outlook 2003) into Outlook for Mac 2011 I receive the following message in a pop-up window:  "Microsoft Outlook has encountered a problem and needs to close."
    Can anyone advise what I should do next.  This is the only hassle I've had in migrating from MS to Mac.
    Thank you!

    There is a Office for Mac Product Forums I'd recommend posting there because they have more experience with Microsoft products than most do on this forum.
    Roger

  • How to rearrange the contents of multiple PST files

    Hi,
    I have been trying to find a way of moving items within multiple PST files based specific criteria, but as of yet I haven't and was hoping that someone might be able to suggest whether or not it was possible using Powershell, or a third party tool.
    The scenario I have is that I've exported numerous user archives to PST file based purely on items that have attachments, unfortunately there are a large number of items that consider the email signatures to be attachments and I need to find a way of moving
    these items into a new folder within the PSTs.
    I know it's possible to do it individually via Outlook but that isn't practical in this situation. Please can anyone point me in the right direction?
    Thanks

    In order to read the content of the Redo Log files, you should use Logminer Utility
    Please refer to the documentation for more information:
    [Using LogMiner to Analyze Redo Log Files|http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm#SUTIL019]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Import Multiple XSD Files

    Is it not possible to import multiple xsd files. If a single file is used there is no problem but when the second import statement is added, it will not compile.
    It complains that it cannot find one of the element types. Removing the second import it compiles fine.
    I also tried it using seperate schema tags for each import.
    <types>
      <schema xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="http://TargetNamespace.com/ftpadapter"
               schemaLocation="delimited_2.txt"/>
       <import namespace="http://xmlns.oracle.com/FTP_Test"
               schemaLocation="FTP_Test.xsd"/>
      </schema>
    </types>

    It is possible to add multiple XSD's in WSDL.
    1. Did u add different namespace alias's for these two in <definitions> section ??
    2.How you are referring the element which it can't find in the wsdl ?
    Try this to identify the issue
    "remove the first xsd and use the second one alone. "
    If this works then it eliminates that there is an issue with xsd.
    Thanks,
    Satish
    http://soadiscovery.blogspot.com

  • How to create the multiple spool requests for a single report.

    Hi gurus,
                     I have one requirement to be completed , i need to send the out put of the report via mail in pdf format. for that what i did was, iam executing report in background and creating spool request and converting it to pdf and sending the file.
    now the problem is, its a customer ledger report, for each customer i need to create a new spool request and send mail to that particular customer, now my dought is how to create multiple spool requests for a single pro and how i need to go about it.
    And one more question is can we create a spool request for a report which is running in online.
    waiting for inputs frm gurus.

    Hello,
    As per my knowledge for creating new spool id you will have to set
    output_options-tdnewid = 'X'.
    and then using
    job_output_info-spoolids
    create a pdf using
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
    Rachana.

  • How to have multiple preference files for Mail on one computer

    I would like to have multiple preference files for Mail on one computer, one copy for each person in the organization. I want everybody to log in as the same user. Is this possible?
    Thanks,
    John Link
    Cube, 450 MHz, 640 MB   Mac OS X (10.3.9)  

    Since the Mail.app preference file (along with all other application preference files for a user account) is stored in that user's Home folder/directory, I don't believe this is possible.

  • How to provision multiple AD Accounts to a single User Profile in OIM

    Hi,
    We are using OIM 11g R2. We have implemented AD Provisioning/Reconciliation using Active Directory 11g Connector.
    The correlation rule for linking AD accounts with OIM during target recon is set as “Email ID”
    We have some business requirement where we want to provision multiple AD Accounts to a single User Profile in OIM.
    Issue we are facing:
    Suppose we have USERID1 in OIM which has email id as USERID1@ XYZ.COM .
    After that we have provisioned sAMAccountName=USERID1 (Email ID as USERID1@ XYZ.COM )& sAMAccountName=USERID2 (Email ID as [email protected]) to the user User Login = USERID1 in OIM.
    Both the AD User accounts can be seen as provisioned.
    After we run the AD Target Recon, the target recon is failing because of “Multiple Process Matches Found” issue.
    Question here is:
    Is it possible to maintain/manage multiple AD Accounts (Same AD is used for all the multiple AD Accounts) to a single OIM profile user ?
    Regards,
    J

    Hi,
    We have seen its working and linking multiple accounts when we have Key field as "User ID" in the Process Defn & RO and the recon matching rule has email ID as the matching rule.
    Please suggest, if we are having the above kind of rule/config...will it not cause any issue?
    Regards,
    J

  • LightDM greeter for a single-user system

    I'm interested in using lightDM as my display manager. However, there seem to be a lot of greeters that are focused on a good experience for multi-user systems. All I'm have is a single-user system, so I'm looking for your guy's opinions on what the "best" lightDM greeter is for a single-user system. I want it to:
    * Be pretty, even if it must be a bit more heavyweight. I consider "pretty" to mean modern/flat
    * Be customizeable, hopefully with at LEAST customizeable colors, and preferably background images
    * Have either a very modern/flat icon set, if there are icons at all, or customizeable icons
    * Not force me to select my account every time I login, it should automatically "select" my account so all I have to do is enter the password. I *might* budge on this one if the design is *really* good
    I'm ok if it has support for multiple users (I'm pretty sure every greeter out there will have that), but I don't want it to reserve too much space on the screen for multiple users, and I want it to still be good with one user. For example, I don't want it to be like crowd greeter, where it's nearly useless without many user accounts

    Why not just test a number of greeters and evaluate which one most suits your use case?  That's the common approach with most things.
    You could also try other DMs like LXDM for example, in order to see how they compare.

  • Can we give multiple destination files for a crystal report.

    Hi all,
    Can i give multiple destination files for crystal check process when the out put type is file.
    What i want is the text file, which will be created at the destination given by the user, must be created at other location also.
    Please help me.
    Thank you,
    Bye.

    Multiple default values for a presentation variable is only possible in 11g as Srini Said.
    Check mark : Enable user to select multiple values. (under variable datatypes)
    http://obieetraining11.blogspot.com/2012/08/obiee-11g-using-presentation-variable.html
    If it is 10g, then it is not possible.

Maybe you are looking for