Forum Discussion

Exchangequery's avatar
7 years ago

Need help in importing close to 5000 PST's

Hi Team,

I have  a requirement to import close to 5000 PST's to Enterprise vault Archives.

We have increased the storage for this requirement on theEV storage.

Actually i need an easier way to perform this via import-csv operation

here is the file structure i have example below:

\\SharedNetworkDrive\usernamealias\user.pst

There are multiple PST files for single user , but they are placed in the same location folder with the useraliasname.

But the pst files are not present in userlaiasname

example like - \\SharedNetworkDrive\usernamealias\user.pst,archive.pst,archive1.pst etc..,

Im looking for an option where the PST migration would map the users only via folder alias name and start importing the psts present inside that folder to assocaited EV Archive

Does anybody have done these bulk imports in a easier way would help us really.Thanks in advance.

 

  • normally you can use the EV funcionalities, depending on your version of EV.

    The PSTs will automatically suggest the right user for the pst file.

     

    You can also use powershell to do the bulk import.

    1. get the folder name (ALIAS)

    2. for each folder name get archivename of the user

    3. for each folder search all pst names in folder

    4. use add-evpstfile to add each pst file to the archive it belongs to

    • CConsult's avatar
      CConsult
      Moderator

      I scribbled down an example

      Could not test it since I have no testenvironment available right now:

      Should work roughly like this:

      $path="c:\temp2"
      foreach ($file in (Get-Childitem $path -Depth 2 -Recurse -File)) {
      #to get mailbox with Alias beeing in folder directly under mainfolder c:\temp2
      #change path to wherever the folders are
      $mailbox=get-mailbox -identity $file.Directory.name

      #to get ALIAS (foldername)
      #$file.Directory.Name
      #to get full path to PST within subfolder
      #$file.FullName

      ADD-EVPSTFile -UNCPath $file.FullName -Mailbox $mailbox

      # OPTIONS:
      #Add-EVPstFile -UNCPath <string> [-Mailbox <string>] [-Archive <string>]
      #[-ArchiveType <string>] [-RetentionCategory <string>] [-PasswordProtected]
      #[-Language <string>] [-Priority <string>] [-SiteName <string>] [-DirectoryServer <string>]
      }

      • sathishexchange's avatar
        sathishexchange
        Level 3

        hi team,

         

        I tried with above example it is picking only one PST file and not picking multiple psts for one user.