Export 2 specific folders from users A mailbox and transfer them to user B Via Powershell

Hi 
i know there is a simpler method for the user to export the folder within outlook as a PST file and send it to the other user to import... but
Is there a powershell command sequence i can use that will export folders from User A mailbox and import them into User B's mailbox remotely so they don't have to do anything.
Many Thanks
Gordon

i made some progress with the following
New-MailboxExportRequest -mailbox "User A" -includeFolders "User A\\TransferFolder" -Filepath \\server\serversubfolder\transfer.pst -verbose
then using
New-MailboxImportRequest -mailbox "User B" -FilePath \\server\serversubfolder\transfer.pst -TargetRootFolder "Inbox" -includefolder "Transferfolder" -verbose

Similar Messages

  • How can i take the pictures from my old ipod and transfer them onto my computer without deleting anything

    How can I take the pics from my old ipod and transfer them onto my computer without deleting anything?

    Pictures on an iPod are stored in a special format, optimized for the iPod's small lower resolution screen, to save storage space.  iTunes puts them into that format when syncing.  There is setting in iTunes, on the iPod's Photos screen (where you set up syncing of photos) for Include full resolution photos.  If that checkbox was checked when you synced the photos to the iPod, THEN you can Enable disk use and find those photo files on the iPod in the Photos folder. 
    Otherwise, you cannot get your photos back, using iTunes.  There may be third-party utilities that can extract individual photos from the iPod, but they will still be lower-resolution versions of the original photo.

  • Export BR's from 9.3.1 and import them to 11.1.2.2

    Hi All,
    I am working on exporting the Business rules from 9.3.1 and import them to 11.1.2.2. I was able to export the BR's and import them but its is giving me the error that *"the import was unscucesfull as no objects were found"*.
    when I looked in the document it mentions after selecting the BR's that we export it will open a *"Enter source Repository information"* dialog box which I don't see.. can anyone please help me with this..
    Thanks

    Hi John,
    I went through the document and in there it says we can migrate business rules from previous versions only if it is EPMA and not classic. Is that true? we are using classic planning for both 9.3.1 and 11.1.2.2. we want to migrate Business rules from 9.3.1 to calculation manager 11.1.2.2
    Can we do a migration for the above?
    I saw it in page no. 253 of "http://docs.oracle.com/cd/E17236_01/epm.1112/cmgr_admin.pdf". Please clarify me if we can do this migration
    Thanks!

  • HT3302 I recently fried my iPhone 3GS in water. Is it still possible to get pictures from the SIM card and transfer them to my new iPhone 5s?

    I recently fried my iphone3gs from accidental water submersion . Is it possible to retrieve any photos from the some card and transfer to my new iphone5

    It depends on what kind of sim card and carrier you have, but the most likely answer is no. Contacts, maybe, but pictures are very unlikely. Sorry.

  • Having trouble reading specific lines from a text file and displaying them in a listbox

    I am trying to read specific lines from all of the text files in a folder that are reports. When I run the application I get the information from the first text file and then it returns this error: "A first chance exception of type 'System.ArgumentOutOfRangeException'
    occurred in mscorlib.dll"
    Below is the code from that form. 
    Option Strict On
    Option Infer Off
    Option Explicit On
    Public Class frmInventoryReport
    Public Function ReadLine(ByVal lineNumber As Integer, ByVal lines As List(Of String)) As String
    Dim intTemp As Integer
    intTemp = lineNumber
    Return lines(lineNumber - 1)
    lineNumber = intTemp
    End Function
    Public Function FileMatches(ByVal folderPath As String, ByVal filePattern As String, ByVal phrase As String) As Boolean
    For Each fileName As String In IO.Directory.GetFiles(folderPath, filePattern)
    If fileName.ToLower().Contains(phrase.ToLower()) Then
    Return True
    End If
    Next
    Return False
    End Function
    Private Sub frmInventoryReport_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Dim intcase As Integer = 1
    Dim strTemp, strlist, strFile As String
    Dim blnCheck As Boolean = True
    strFile = "Report Q" & intcase.ToString & ".txt"
    Do While blnCheck = True
    strFile = "Report Q" & intcase.ToString & ".txt"
    Dim objReader As New System.IO.StreamReader("E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\" & strFile)
    Dim allLines As List(Of String) = New List(Of String)
    Do While objReader.Peek <> -1
    allLines.Add(objReader.ReadLine())
    Loop
    objReader.Close()
    strlist = ReadLine(1, allLines) & "" & ReadLine(23, allLines)
    lstInventory.Items.Add(strlist)
    intcase += 1
    strTemp = intcase.ToString
    strFile = "Report Q" & intcase.ToString & ".txt"
    blnCheck = FileMatches("E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\", "*.txt", intcase.ToString)
    Loop
    End Sub
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim intcase As Integer = 1
    Dim strTemp, strlist, strFile As String
    Dim blnCheck As Boolean = True
    strFile = "Report Q" & intcase.ToString & ".txt"
    Do While blnCheck = True
    strFile = "Report Q" & intcase.ToString & ".txt"
    Dim objReader As New System.IO.StreamReader("E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\" & strFile)
    Dim allLines As List(Of String) = New List(Of String)
    Do While objReader.Peek <> -1
    allLines.Add(objReader.ReadLine())
    Loop
    objReader.Close()
    strlist = ReadLine(1, allLines) & "" & ReadLine(23, allLines)
    lstInventory.Items.Add(strlist)
    intcase += 1
    strTemp = intcase.ToString
    strFile = "Report Q" & intcase.ToString & ".txt"
    blnCheck = FileMatches("E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\", "*.txt", intcase.ToString)
    Loop
    End Sub
    End Class
    Sorry I'm just beginning coding and I'm still a noob. Any help is appreciated. Thank you!

    Ok, so if I'm following this correctly you should be able to just loop through all of the files in that folder whose file name matches the pattern and then read the first 22 lines, recording only the first and the last.
    Exactly how you store the animal data probably depends on how you are going to display it and what else you are going to do with it.  Is there anything other than name and cage number that should be associated with each animal?
    You might want to make a dataset with a datatable to describe the animal, or you might write a class, or you might just use something generic like a Tuple.  Here's a simple class example:
    Public Class Animal
    Public Property Name As String
    Public Property Cage As String
    Public Overrides Function ToString() As String
    Return String.Format("{0} - {1}", Name, Cage)
    End Function
    End Class
    With that you can use a routine like the following to loop through all of the files and read each one:
    Dim animals As New List(Of Animal)
    Dim folderPath As String = "E:\Furry Friends Animal Shelter Solution\Furry Friends Animal Shelter\"
    For Each filePath As String In System.IO.Directory.GetFiles(folderPath, "Report Q?.txt")
    Using reader As New System.IO.StreamReader(filePath)
    Dim lineIndex As Integer = 0
    Dim currentAnimal As New Animal
    While Not reader.EndOfStream
    Dim line As String = reader.ReadLine
    If lineIndex = 0 Then
    currentAnimal.Name = line
    ElseIf lineIndex = 22 Then
    currentAnimal.Cage = line
    Exit While
    End If
    lineIndex += 1
    End While
    animals.Add(currentAnimal)
    End Using
    Next
    'do something to display the animals list
    Then you might bind the animals list to a ListBox, or loop through the list and populate a ListView.  If you decided to fill a datatable instead of making Animal instances, then you might bind the resulting table to a DataGridView.
    There are lots of options depending on what you want and what all you need to do.
    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

  • Exporting specific columns from XLS file to a new XLS or XLSX file using powershell

    The scenario is that i have a file that our server is constantly dumping data to on a daily basis and out of all the data i only need 2 columns. I need to be a able to automate this because i need to generate a monthly report based on those two columns.
    That being said, i need to be able to extract two full columns from datafile1.xls to newdatafile.xlsx. If it would be easier if the original file is CSV i can easily save the data in CSV format instead of XLS. 
    Thanks in advance.

    I see, im having a hard time executing the script, i keep getting the following error:
    '""Microsoft.Jet.OLEDB.4.0"
    has not been registered.";' 
    and
    when i try to run it like this i dont get any errors BUT nothing happens:
    C:\Windows\syswow64\rundll32.exe "C:\Program Files\Common Files\System\Ole DB\oledb32.dll",c:\temp\t.ps1
    This is the code, which to tell you the truth im not really that familiar with :\
    $strFileName = "C:\temp\original\styles.xls"
    $strSheetName = 'STYLES$'
    $strProvider = "Provider=Microsoft.Jet.OLEDB.4.0"
    $strDataSource = "Data Source = $strFileName"
    $strExtend = "Extended Properties=Excel 8.0"
    $strQuery = "Select STYLE CODE , LAST UPDATE from [$strSheetName]"
    $objConn = New-Object System.Data.OleDb.OleDbConnection("$strProvider;$strDataSource;$strExtend")
    $sqlCommand = New-Object System.Data.OleDb.OleDbCommand($strQuery)
    $sqlCommand.Connection = $objConn
    $objConn.open()
    $DataReader = $sqlCommand.ExecuteReader()
    While($DataReader.read())
    $ComputerName = $DataReader[0].Tostring()
    "Querying $computerName ..."
    Get-WmiObject -Class Win32_Bios -computername $ComputerName
    $dataReader.close()
    $objConn.close()
    For both PowerShell or VBScript you are missing the libraries.  You need to download and install the ACE drivers.
    Search for ACE drivers.
    ¯\_(ツ)_/¯

  • I get poor picture quality when I export my slides from keynote as jpeg and print them as a photo, any help?

    I made a slide of multiple pics and objects, I am trying to export it to an 8x10 photo, the shop I am using only allows jpeg.  The quality is so poor when I print it, is there a way to get better quality as I export it?  I used keynote because I could set up a custom slide size (8x10) and then added the pics and other graphics in hope I could export as a jpeg and get a good quality photo?  The photo images and slides are good quality it is the exporting where I am loosing clarity.
    Ugh any help?

    I made a slide of multiple pics and objects, I am trying to export it to an 8x10 photo, the shop I am using only allows jpeg.  The quality is so poor when I print it, is there a way to get better quality as I export it?  I used keynote because I could set up a custom slide size (8x10) and then added the pics and other graphics in hope I could export as a jpeg and get a good quality photo?  The photo images and slides are good quality it is the exporting where I am loosing clarity.
    Ugh any help?

  • How do I retrieve my backed up iphone contacts from itunes and transfer them to a blackberry?

    Help, I am struggling! I have had to change work phones from iPhone to Blackbery. How do I retrieve my backed up iphone contacts from my itunes player and transfer them to a blackberry? Is this even possible? I no longer have my old iPhone, but thought that I could just transfer them all over to a bb if I had backed up before I gave the iPhone back.

    iTunes does not and has never contained contacts.  It is not a contact management application.
    Contacts are designed to be synced to a supported application on the computer or a cloud service.
    Ask BlackBerry how to get the contacts from whatever application or cloud service your contacts have been synced with to your new phone.

  • I recently upgraded to a new iPhone.  Everything transferred except my photos.  Can I retrieve my photos from iCloud and transfer them to my new phone?  My old phone has already been transferred to a new user.

    I recently upgraded to a new iphone.  Everything transferred except my photos.  Can I retrieve my photos from iCloud and transfer them to my new phone?  My old phone has already been transferred to a new user.

    Did you restore your iCloud backup?  That should recover camera roll photos.

  • Export an animation from edge cheer up and when I get moment to muse that had the old animation anteriomente and just let me see the new animation when it in your browser

    export an animation from edge cheer up and when I get moment to muse that had the old animation anteriomente and just let me see the new animation when it in your browser

    Hi
    Could you please elaborate your query and provide us with more details on the issue you facing?

  • REG: 4 different folders from the source side and we need to have the BPM t

    Hi All,
    We are using a BPM for file-idoc scenario. Previously we use to have one source folder which sends file and the bpm worked fine. Now we have a requirement where the files come from 4 different folders from the source side and we need to have the BPM to run independently for each folder.
    What are the changes to be made in IR and id for this..
    Thanks & Regards,
    Kiran.

    File adapter has a option advance selection of source file setting which can be used for picking files from different folder.

  • I recently switched from PC to Mac and am able to find and transfer most of the larger files of music to iTunes, but there are about 750 songs that are held in sub-files that require me to dig in and transfer them one by one to iTunes.. I've tried transfe

    I recently switched from PC to Mac and am able to find and transfer most of the larger files of music to iTunes, but there are about 750 songs that are held in sub-files that require me to dig in and transfer them one by one to iTunes.. I've tried transferring the parent folders, but it doesn't seem to work.  Does anyone know of a more efficient way of getting iTunes to dig into the subfolders and transfer the music without me having to go one by one?

    There is a good general guide to switching from Windows to Mac at the following link that touches on moving music as well How to Move to a Mac - Get your stuff from your PC to your new Mac
    There are also these guides:
    How to move music between authorised computers
    Networking with a Windows PC
    Don't forget to deauthorise your old PC if you are disposing of it so you don't use up your 5 allowances: About iTunes Music Store Authorisation and Deauthorisation

  • How do I copy my old xl files from my XP machine to operate on xl for Mac on my new iMac.  When I copy them onto a stick and transfer them it automatically makes them xls files which are then corrupted when I try to open them in xl for mac

    How do I copy my old xl files from my XP machine to operate on xl for Mac on my new iMac.  When I copy them onto a stick and transfer them it automatically makes them xls files which are then corrupted when I try to open them in xl for mac

    Sorry, yes this is Microsoft Excel.  The Microsoft XP has Excel files denoted as xl, the later versions of Microsoft Excel are denoted as xls files.  The later verions of Microsoft Excel open the xl files OK, does Excel for Mac not able to do this?

  • I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  The title is there but no contents.  It won't even play the playlist.  How do I get the contents of the book?

    I got some books from the itunes store and put them into my library.  I created a playlist so that I could burn them to cds.  It won't even play the book, there are no contents.  How do I get the contents of the book?

    I'm guessing this is a problem unique to me as there have been no replies at all...  Thanks a bunch folks

  • Can I move all my photo that I can see on iPhoto from my Mac hardrive and put them on an external hard drive and still be able to see them as thumbnails in iPhoto? Thanks! The reason, I need to know if I can do this is b/c I am running out of HD space!sp

    can I move all my photo that I can see on iPhoto from my Mac hardrive and put them on an external hard drive and still be able to see them as thumbnails in iPhoto? Thanks! The reason, I need to know if I can do this is b/c I am running out of HD space!sp

    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

Maybe you are looking for

  • Best Practice for New Doc Version?

    I'm a RH novice who needs to create a V1.1 doc based on the V1.0 source topics, TOC, and images. I'm using RH HTML X5. What is my best practice? The previous author left a unclear doc suggesting something like the following: Copy the current V1.xpj,

  • Non-modal JDialog is not painted and blocks the GUI

    I have developed a GUI that's basically a JFrame with a JDesktopPane. The user can, via a menu item, pop up a JDialog that contains some JLists and then select some value from it. Once he/she has done the selection and clicks on OK, the dialog disapp

  • How to limit characters

    I've got DW8 retrieving a text chunk from SQL Server/ASP and I need to restrict it to the first 300 characters. Is there a way in DW to do this?

  • Speed issues in file parsing

    Hi everyone I am a commercial developer who is relatively new to Java technology. My company has just finished the initial version of a servlet-based web program which is designed to interact with a MySQL database. We are having a major performance i

  • Elements 10 Organizer  Has Stopped Working.

    I recently purchase Adobe Elements & Premier 10 programs and both have been working well for about 2 weeks.  Now, when I opene Organizer, the program loads and appears but immediately it stops working with the message: "Elements 10 organizer has stop