Scripting Question

Trying to find PST files stored on local drives

08/30/2016 1660 views

I am assisting with a project and we thought we could use the k1000 Inventory and a Custom Inventory Rule to find PST files saved on local workstations so we can assist users and help them import to the online archive.  I used the following syntax -

ShellCommandTextReturn(cmd /c powershell Get-ChildItem c:\ -Recurse | where {$_.extension -eq ".PST"})

The issue is I am finding it returned nearly every workstation, for some reason it is also picking up files like pstorsvc.dll

Is there a better way to search these files out?


1 Comment   [ + ] Show comment


  • I also need to log them so we know which have the existence of these files.

Community Chosen Answer

What about:
dir \*.pst /S /B
Answered 09/27/2016 by: Emperor
White Belt

All Answers

This content is currently hidden from public view.
Reason: Member has been banned from the site banned by admin For more information, visit our FAQ's.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ