How to find all your PST Files on your File Server

PST Files, or personal storage table files, are what contain all your Microsoft items, such as email messages, calendars and contacts. As they are saved directly to the computer in which they are accessed, all PST Files need to be found before a migration can take place.

We asked one of our Technical Product Specialists to give us a quick solution to this common problem that some of our customers and partners face. Take it away Adam…

During the process of an Exchange migration to Office 365, it is often a requirement to find all the PST files that are present within your company file server.

This line of code does the trick, which can be typed directly in PowerShell ISE, in order to avoid script signing:

  • Start Windows PowerShell ISE
  • Use the below paste in the below snippit:

gci -path c:\ -recurse -include *.pst|select-object fullname,lastwritetime|export-csv c:\temp\pst.csv

  • Press Enter
  • Wait until the script finishes. 

You’ll just need to swap out C:\ for your file servers drive letter. In this case, the output is sent to a csv file in the c:\temp folder.

As you will see, two of the file properties are selected:

  1. fullname which corresponds to the file’s path
  2. lastwritetime, which helps to detect the most recently opened PST files

You can then use CloudMigrator 365 to migrate these directly to the customers EOA.

Adam Brown is a Technical Product Specialist. Since joining the team in 2017, Adam has been heavily involved in product development and helping both customers and colleagues with their technical issues for CloudMigrator 365.

So far, he’s been on hundreds of pre-sales calls and demos, assisting our partner managers in answering customer queries. If you have a technical issue or a product query that your account manager can’t answer – Adam’s your guy!

< Back to all Articles

Close Menu