Home > Exchange Server, PowerShell > Function: Get-PstFiles – List All .pst Files In A Given Path, With Name, Path, Size, and Owner

Function: Get-PstFiles – List All .pst Files In A Given Path, With Name, Path, Size, and Owner

Exchange 2013 logo 128x128Description

If you need to make a list of the .pst files in a given path, this function should help. It will get all .pst files, their name, path, size (in MB), and owner. This should help if you’re looking at importing the files in Exchange Server. If you’d like to export the results to a file, use the -file switch, with a filename, and the function will save the info to a .csv file.

Syntax

Get-PstFiles [[-path] ] [[-filter] ] [[-file] ] [-WhatIf] [-Confirm] []

Download

v1.1 – 05-13-2013 Get-PstFiles.v1.1.zip

  1. August 13, 2013 at 11:26 am | #1

    Don’t forget the recommended scripting best practice is not to use aliases, especially the ones like % and ?. Also, your comments say the script won’t accept pipelined input, but your script says otherwise. You might consider a validation test on path using Test-Path.

    • Pat Richard
      August 13, 2013 at 7:26 pm | #2

      Updated in the next release.

  1. May 17, 2013 at 8:15 pm | #1
  2. June 13, 2013 at 11:13 am | #2

Leave a Reply