The term "New-MailboxExportRequest" is not recognized.

Hi,
I'm trying to backup the mailboxes on my exchange server 2010 running on server 2008 R2 using the script from Steve Goodman (http://www.stevieg.org/2010/07/using-the-exchange-2010-sp1-mailbox-export-features-for-mass-exports-to-pst/)
I followed every step that is described in the tutorial. But if I run the script I get: The term "New-MailboxExportRequest" is not recognized as the name of a cmdlet, function, script file, or operable program.
The permissions for the folder are: exchange trusted subsystem, administrators Full control. I ran the command
"New-ManagementRoleAssignment -Role "Mailbox Import Export" -User Administrator" in the powershell of exchange. I tried exporting a single mailbox to PST but I got the same error. Nothing seems to work.
Does anyone know a solution? Help would be appreciated.
Cheers

Hi Sturme,
I suggest you follow this document use New-MailboxExportRequest to export the mailbox, then check whether this issue will occur or not.
New-MailboxExportRequest
http://technet.microsoft.com/en-us/library/ff607299.aspx
If you want to use the script from Steve Goodman, please paste the exact error you get (when you run it in Exchange Management Shell ).
Thanks,
Evan
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • The term 'new-object' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have a script that runs well the vast majority of the time.  On occasion I get an exception.  I would appreciate any insight as to why it fails on occasion.  I can't understand why the new-object cmdlet wouldn't be recognized:
    Message: The term 'new-object' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    Source: System.Management.Automation
    StackTrace:    at System.Management.Automation.CommandDiscovery.LookupCommandInfo(String commandName, CommandTypes commandTypes, SearchResolutionOptions searchResolutionOptions, CommandOrigin commandOrigin, ExecutionContext context)
       at System.Management.Automation.CommandDiscovery.LookupCommandProcessor(String commandName, CommandOrigin commandOrigin, Nullable`1 useLocalScope)
       at System.Management.Automation.ExecutionContext.CreateCommand(String command, Boolean dotSource)
       at System.Management.Automation.PipelineOps.AddCommand(PipelineProcessor pipe, CommandParameterInternal[] commandElements, CommandBaseAst commandBaseAst, CommandRedirection[] redirections, ExecutionContext context)
       at System.Management.Automation.PipelineOps.InvokePipeline(Object input, Boolean ignoreInput, CommandParameterInternal[][] pipeElements, CommandBaseAst[] pipeElementAsts, CommandRedirection[][] commandRedirections, FunctionContext funcContext)
       at System.Management.Automation.Interpreter.ActionCallInstruction`6.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
       at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
    Here is the script I am running:
    param([string]$endpoint)
    $ErrorActionPreference = "Stop";
    try
     [System.Reflection.Assembly]::LoadFile("D:\dotNET_Apps\dotNETCOExBatch\DotNETCOExBatch\bin\DotNETCOExBatch.dll")
     $schedule = new-object DotNETCOExBatch.CallService
     $reply = $schedule.CallWebService($endpoint)
     if ($reply)
      $host.setshouldexit(0)
     else
      $host.setshouldexit(8)
    Catch
     $nl = [Environment]::NewLine
     $evt=new-object System.Diagnostics.EventLog("Application")
     $evt.Source="BatchPowerShell"
     $infoevent=[System.Diagnostics.EventLogEntryType]::Error
     $batchException = $_.Exception
     $logMessage = " "  
     while ($batchException)
      $exMessage = $batchException.Message
      $exStackTrace = $batchException.StackTrace
      $exSource = $batchException.Source
      $logMessage += "$nl $nl Message: $exMessage $nl $nl Source: $exSource $nl $nl StackTrace: $exStackTrace" 
      $batchException = $batchException.InnerException 
     $evt.WriteEntry(" Error starting or process cancellation of $endpoint $logMessage",$infoevent)
     $host.setshouldexit(15)

    Hi,
    Please close your current powershell console, and start a new Window, and then check the result.
    Like David replied, this is a strange issue, hard to find the cuase, but I will report the issue, hope
    someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
    Regards,
    Yan Li
    TechNet Subscriber Support
    If you are
    TechNet Subscription
    user and have any feedback on our support quality, please send your feedback
    here.
    Cataleya Li
    TechNet Community Support

  • Intermittent : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.

    I have developed a batch harness whereby all scheduled tasks (W2012) invoke a common powershell script that acts as a wrapper to all our housekeeping jobs.
    The first step in the wrapper is to create a Transcript file using following code
    if ($Host.name -ne "Windows PowerShell ISE Host") # Transcript does not work within ISE
    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    $path = "c:\corp\$timestamp" + "_$pid.txt"
    Start-Transcript -path $path -append
    As expected the folder contains files with timestamp & pid in name
    08/08/2013  11:00 AM            14,388 2013-08-08-11-00-01.158_1620.txt
    08/08/2013  11:00 AM            12,506 2013-08-08-11-00-01.485_936.txt
    08/08/2013  11:00 AM            12,994 2013-08-08-11-00-01.735_9328.txt
    08/08/2013  11:00 AM            12,024 2013-08-08-11-00-01.766_8624.txt
    08/08/2013  11:00 AM            13,902 2013-08-08-11-00-01.860_1756.txt
    08/08/2013  11:01 AM            15,142 2013-08-08-11-01-31.392_10120.txt
    08/08/2013  05:00 AM            14,982 _1692.txt
    However note the last file, it has a zero length date time value in the name
    The error recorded by PowerShell is
    get-date : The term 'get-date' is not recognized as the name of a cmdlet, function, script file, or operable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    At C:\Corp\Powershell\DMPRun-ScheduledTask.ps1:171 char:18
    +    $timestamp = (get-date -format "yyyy-MM-dd-HH-mm-ss.fff")
    +                  ~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (get-date:String) [], CommandNotFoundException
        + FullyQualifiedErrorId : CommandNotFoundException
    IE get-date has failed and returned a zero length field as the timestamp
    Can anyone think of a good reason why get-date would fail intermittently?
    Do I have to code defensively for base Powershell functions?

    I implemented David's suggestion and now I intermittently get
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_08_55_02.ps1:15 char:1
    + import-module Microsoft.Powershell.Utility
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand
    I added a trap chain (My Powershell skills do not yet include recursive trap coding, any suggestions welcome)
    trap {
        trap {
            "Trap1"
            "Exception: " + $_
            "Error: " + $Error[0]
            "Message: " + $_.Exception.Message
            "InnerException: " + $_.Exception.InnerException
            "StackTrace: " + $_.Exception.StackTrace
            "FailedItem: " + $_.Exception.ItemName
            import-module Microsoft.Powershell.Management
            import-module Microsoft.Powershell.Security
            import-module Microsoft.Powershell.Utility
        "Trap2"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        import-module Microsoft.Powershell.Management
        import-module Microsoft.Powershell.Security
        import-module Microsoft.Powershell.Utility
    import-module Microsoft.Powershell.Management
    import-module Microsoft.Powershell.Security
    import-module Microsoft.Powershell.Utility
    trap {
        "Trap3"
        "Exception: " + $_
        "Error: " + $Error[0]
        "Message: " + $_.Exception.Message
        "InnerException: " + $_.Exception.InnerException
        "StackTrace: " + $_.Exception.StackTrace
        "FailedItem: " + $_.Exception.ItemName
        exit 1
    get-date
    Now I intermittently get ..
    Trap2
    Exception: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Error: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    Message: Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    InnerException:
    StackTrace:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.Threading.Mutex.MutexTryCodeHelper.MutexTryCode(Object userData)
       at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
       at System.Threading.Mutex.CreateMutexWithGuaranteedCleanup(Boolean initiallyOwned, String name, Boolean& createdNew, SECURITY_ATTRIBUTES secAttrs)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew, MutexSecurity mutexSecurity)
       at System.Threading.Mutex..ctor(Boolean initiallyOwned, String name, Boolean& createdNew)
       at System.Management.Automation.AnalysisCache.CacheExportedCommands(PSModuleInfo module, Boolean force, ExecutionContext context)
       at Microsoft.PowerShell.Commands.ModuleCmdletBase.LoadUsingModulePath(PSModuleInfo parentModule, Boolean found, IEnumerable`1 modulePath, String name, SessionState ss, ImportModuleOptions options, ManifestProcessingFlags manifestProcessingFlags,
    PSModuleInfo& module)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ImportModule_LocallyViaName(ImportModuleOptions importModuleOptions, String name)
       at Microsoft.PowerShell.Commands.ImportModuleCommand.ProcessRecord()
       at System.Management.Automation.CommandProcessor.ProcessRecord()
    FailedItem:
    import-module : Access to the path 'PowerShell_CommandAnalysis_Lock' is denied.
    At D:\temp\loop_jc2_2013_11_25_09_19_52.ps1:26 char:1
    + import-module Microsoft.Powershell.Security
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Import-Module], UnauthorizedA
       ccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Pow
       erShell.Commands.ImportModuleCommand

  • The term 'Add-SPDistributedCacheServiceInstance' is not recognized as the name

    Hi,
    I have setup Sharepoint 2013 standalone on Windows 2012 server. I am developing an app that will make use of social apis of sharepoint 2013. Out of the box installation didnt have Distributed Cache Service running and I am not sure if its needed to be run
    in order to make social apis working on the server. Anyhow, since distributed cache service was showing up as Stopped and I could not restart it, I have deleted the distributed cache service and when I retry to re-add it by entering Add-SPDistributedCacheServiceInstance
    command on powershell, I get the following error,
    Add-SPDistributedCacheServiceInstance : The term 'Add-SPDistributedCacheServiceInstance' is not recognized as the name
    of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
    verify that the path is correct and try again.
    At line:1 char:1
    + Add-SPDistributedCacheServiceInstance
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (Add-SPDistributedCacheServiceInstance:String) [], CommandNotFoundExcept
       ion
        + FullyQualifiedErrorId : CommandNotFoundException
    I am at total loss here. Any help/pointers to get around this error and setup social api working on this server will be helpful.
    Regards,
    Usman

    The issue is because your PowerShell console has not loaded the appropriate SharePoint DLL
    in order to call the API. To resolve this, you can open the SharePoint 2010 Management Shell to execute the script or add the assembly manually before running the script.
    --Cheers

  • The term 'Get-SCVMHostCluster' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

    Hello,
    I'm have create a simple runbook using Orch 2012 R2 and I'm experiencing the above error message. Below is the runbook Powershell
    $clusterdr=Get-SCVMHostCluster-Name"cluster-dr.samuel.com"
    Start-SCComplianceScan
    -VMMHostCluster$clusterdr-RunAsynchronously
    Thank you
    Loyan

    Hi,
    the "Run .Net Script" Actitity from Orchestrator executes PowerShell in version 2.0 (and 32bit-mode).
    Try:
    PowerShell = {
    $clusterdr=Get-SCVMHostCluster-Name"cluster-dr.samuel.com"
    Start-SCComplianceScan -VMMHostCluster$clusterdr-RunAsynchronously }
    or
    http://www.sc-orchestrator.eu/index.php/scoblog/128-run-the-powershell-version-of-windows-executing-the-orchestrator-runbook-service-in-run-net-script-activity
    Regards,
    Stefan
    www.sc-orchestrator.eu ,
    Blog sc-orchestrator.eu

  • New-MaiboxRestoreRequest is not recognized as the name of a cmdlet, function, script ?

    I have restored successfully an exchange 2013 mailbox database from backup to the recovery database, but when i try to recover a user's mailbox I receive the following error
    New-MaiboxRestoreRequest -SourceDatabase RDB1 -SourceStoreMailbox "testuser" -TargetMailbox [email protected]
    The term 'New-MaiboxRestoreRequest' is not recognized as the name of a cmdlet, function,
    script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
     I already have the "mailbox import export" management role assigned to the logged in administrator.
    Anand_N

    silly me i spelt the command wrong
    Anand_N

  • I got an itunes giftcard for my birthday and when i tried to add it on my balance on my ipod touch it says the code you entered is not  recognized as a valid code. but i just got this card brand new for my birthday.

    i got an itunes giftcard for my birthday and when i tried to add it on my balance on my ipod touch it says the code you entered is not  recognized as a valid code. but i just got this card brand new for my birthday.

    Make sure you're using the correct code. For most iTunes cards, the code is under the scratchoff area on the back of the card. For more information, see this support article:
    http://support.apple.com/kb/TS1292
    If you can't get to work after perusing that page, contact the iTunes Store Support; instructions are at the bottom of that article.
    Regards.

  • I just bought a mac mini over the weekend. I saved items from my old G4 to an external hard drive. I go to plug in the external hard drive and the new computer is not recognizing it. Help.

    I just bought a mac mini over the weekend. I saved items from my old G4 to an external hard drive. I go to plug in the external hard drive and the new computer is not recognizing it. Help.
    Here is the information I have. The external hard drive is a 120GB Acomdata. It has both USB and Firewire. When I go to plug in to the mac mini through USB, it is not being recognized. When I switch to Firewire on the old computer I can see it, however when I go to USB it is not being recognized (even on the old computer).
    I'm at a loss as to what to do. Any advice would be helpful.

    Shalese wrote:
    Have you ever tried the FW 400 to 800 adapter?
    I have used them on multiple occasions and they work just fine.
    Try this (maybe you already have):
    -Boot Mini with drive disconnected.
    -Do not connect drive but turn it on
    -wait a few seconds for drive to spin up
    -plug cable into the Mini then into drive.
    This is an old drive and may have some timing
    issues.
    I had an Acomdata drive a long time ago.  It
    worked fine with FW but USB was flakey.

  • I just bought the latest ipod shuffle to use with another older one. But when I tried to download updates and charge the new shuffle it is nowhere to be found. The new download is not recognized

    I just bought the latest ipod shuffle and want to put my library songs on it. Why when I tried to install the latest version of i-tunes nothing happened. My new pod is connected to my laptop USB 2.0 port but it is nowhere to be found. Why is this new shuffle pod not recognized?

    You downloaded iTunes AND installed it, right?  What you downloaded is the installer, which installs the iTunes app (and other things like drivers) on your computer.  You then have to run the iTunes app.
    If you did that already, make sure the USB docking cable's plug is completely inserted into the shuffle's headphones jack, as shown in this document
    http://support.apple.com/kb/TS3572
    When connected, the shuffle's light should come ON.  That indicates it is getting power.  If it blinks orange (at least initially), that indicates it is connecting for data.
    If you are good so far, in iTunes, the sidebar (along left side of window) may be hidden.  If it is, from the menu bar, under View, select Show Sidebar.  When the shuffle is connected, it should be listed in the sidebar, below DEVICES. Does it appear there?

  • TS1292 I have four $50 iTunes gift cards. I am not able to load any of the codes into my new iPad account. I know I have not made any mistakes with typing in the 16 digit code. I keep getting the "code you entered is not recognized as a valid code" messag

    I have tried all I can to load iTunes cards into my iPad without success. Upon giving one of the cards to a friend he conveniently loaded. I keep getting the error message: "The code you entered is not recognized as a valid code". I just don't know what to do as I need to use these cards to make purchases off the I tunes store.

    i tried with out using commmit but it is not creating Status.
    When i see the function module help and they are trying to COMMIT
    FU STATUS_OBJECT_CREATE
    Short Text
    Create Status Object
    Functionality
    The function module generates a status object.
    Take the object number from the object number management (function modules OBJECT_NUMNBER_GET_xx).
    If no object number is given, the module takes a temporary object number that must be replaced later (function module STATUS_OBJECT_SWITCH_NUMBER).
    Example
    Creating an internal order with number 100123 (object type "ORC") for status profile "STATSCHEM" with final object number
    call function 'OBJECT_NUMBER_GET_OR'
      exporting
        aufnr = '100123'
      importing objnr = objektnummer.
    call function 'STATUS_OBJECT_CREATE'
      exporting
        objnr = objektnummer
        obtyp = 'ORC'
        stsma = 'STATSCHEM'.
    commit work.
    Creating the same order with a temporary object number
    data: objectkey like ionra.
    * TBO00-REFSTRUCT for object type 'OR' is 'IONRA'
    objectkey-aufnr = '100123'.
    call function 'STATUS_OBJECT_CREATE'
      exporting
        i_objectkey = objectkey
        obtyp       = 'ORC'
        stsma       = 'STATSCHEM'.
      importing
        objnr       = objektnummer.
    call function 'OBJECT_NUMBER_GET_OR'
      exporting
        aufnr = '100123'
      importing objnr = objektnummer_neu.
    call function 'STATUS_OBJECT_SWITCH_NUMBER'
      exporting
        objnr_old = objektnummer
        objnr_new = objektnummer_neu.
    commit work.
    Notes

  • My Blu Ray drive in the lower bay is sometimes not recognized since upgrading to Mountain Lion.

    I have a Mac Pro (2.6 GHz Quad Core Xeon, 6 Gb RAM) that I upgraded to Mountain Lion yesterday.  In the top optical drive bay I have the Apple super drive that came with the machine.  In the lower bay I added a Pioneer Blu Ray burner.  Since upgrading to 10.8, sometimes the Blu Ray drive is not recognized.  I discovered this morning that a restart doesn't solve the problem...I have to completely shut down, then restart, and then the drive will appear.

    You paid for a license to use Mountain Lion & that license is forever tied to YOUR Apple ID. You cannot distribute Mountain Lion in any way shape or form. If you were to sell your computer, with Mountain Lion installed, as I've already provided, the new owner will never be able to update or restore OS X, should the need arise. You will have sold the new owner a huge bag of hurt.
    Good luck.

  • My ipod touch is connected to the computer but itunes is not recognizing it. help please !

    My ipod touch is connected to the computer but itunes is not recognizing it. I need help please. I've tried restarting both my ipod & the computer and also unistalling itunes and loading it again, nothing is working.

    Assuming you have a PC, start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • Hi, I have a problem with my ipad, I want to restore it but I can not. When I plug the ipad (off) it is not recognized by itunes, I turn the ipad, There are apple and the apple after you see the usb cable and itunes logo for just 1 minute and turns off an

    Hi, I have a problem with my ipad, I want to restore it but I can not. When I plug the ipad (off) it is not recognized by itunes, I turn the ipad, There are apple and the apple after you see the usb cable and itunes logo for just 1 minute and turns off and is no longer recognized by itunes.
    thank you for your help.

    Hi there beni_m,
    You may find the troubleshooting steps in the articles below helpful.
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    -Griff W. 

  • HT1339 My ipod was not recognized by itunes and not does not power on after I restarted the ipod service in the Windows admin tools. I cannot restore the ipod since it is not recognized by my PC now. Any suggestions?

    My ipod was not recognized by itunes and not does not power on after I restarted the ipod service in the Windows admin tools. I cannot restore the ipod since it is not recognized by my PC now. Any suggestions?

    Time to replace it: $49 2nd Gen shuffle at online Apple Store...

  • When I send out mail from MS Outlook enterprise account in the office to my Mac at home they are received as "winmail.dat" files.  Even if I perform a "save as" to the correct file name the file format is still not recognized.  Why is this happening!?

    When I send out mail from MS Outlook enterprise account in the office to my Mac at home they are received as "winmail.dat" files.  Even if I perform a "save as" to the correct file name the file format is still not recognized.  Why is this happening!?

    http://www.joshjacob.com/mac-development/tnef.php

Maybe you are looking for

  • XML-Document with special characters

    Hallo i have an oracle database with a table of XmlType. Now i want to insert the following document: <message> <to>[email protected]</to> <from>[email protected]</from> <subject>Question</subject> <body>über den Wolken</body> </message> The problem

  • Running

    Over the past few months, (possibly since installing Mavericks) my MacBook Pro has been running more and more slowly. Mail, iCal, Chrome, Word, Dropbox and others continually are not responding and require a force quit and reopen. Can anyone suggest

  • Bulk text data insertion in Partitioned Table

    Hi All, I want to insert more than 200 crore records from 5 text data files in a single table say TAB1 (PARTITIONED table with RANGE type). Currently I am using EXTERNAL TABLE concept and providing 5 filenames (of total 45 crore records) at a time to

  • Surround sound through HDMI?

    All the new Mac models released in the past 12 months are supposed to be able to output multichannel audio through an HDMI connector. I have recently purchased a new MiniMac with an HDMI connector and was really looking forward to playing multichanne

  • Import Backup of mail

    Hello all, In OS 10.3.9, I copied the mail folder off of my machine as my hard drive was dying. I did not know about the .plist files at the time. Once the drive was replaced, I attempted to put the mail folder back onto my Powerbook, but it would ju