Using a PowerShell script to rename archive folders in bulk

Using a PowerShell script to rename archive folders in bulk

After moving between email providers or platforms you may find you need to rename a large number of archive folders.

Doing this directly in the MailStore client can take minutes per folder as the database entries are updated in real time and so it can become a long and laborious manual task.

To help speed up this process you can use the Powershell script available below to batch this operation by creating a pre-formatted CSV file with a list of users as they are currently as well as the new name to change them to.

Steps:
  1. Download the attached Zip file  'rename archive folders.zip'
  2. Extract it onto the MailStore Server into a folder called C:\zen
  3. Edit the included Users.csv file to reflect the permissions needed
  4. Edit the Powershell script  'Create MailStore Users from csv.ps1' and change the $adminpasswd to match the password you use for the default admin account in MailStore.
  5. run the Powershell script  'Create MailStore Users from csv.ps1'

    • Related Articles

    • Using a PowerShell script to configure user permissions in bulk

      If you wish to configure user permissions in MailStore on multiple users at the same time, there is no easy way to do this within the MailStroe Client For example: if you have 30 MailStore users that all need access to different users MailArchives, ...
    • Using a PowerShell script to create MailStore users from a csv file

      If you need to import a large list of users into MailStore but cannot use one of the User Directory Services you may think the only option is to add each user one by one through the MailStore Client interface. To help speed up this process you can ...
    • Importing Multiple PST files in MailStore using Python script

      The MailStore API can be utilised to automate tasks that would be laborious to do manually. One such task is importing a large number of PST files for multiple Users. A good example of this is when you want to archive pre-existing Office 365 Archives ...
    • Attaching and Detaching Archive Stores

      Existing archive stores can be detached from the archive. To do so, right-click on an archive store in Administrative Tools -> Storage -> Storage Locations and select Detach: The detached archive store and the emails contained within it are now no ...
    • How to extract messages from a damaged MailStore archive

      When an archive store is damaged (typically due to power issues or third party antivirus interaction), the following steps can be used to extract the messages from the problematic archive to your local hard drive and then re-archive the old data into ...