Avatar of drichman
drichman
Flag for United States of America asked on

windows command line to scan remote computers for .pst

Is there a simple command line, or tool,  that we can use to scan remote domain joined computers to see if they have any .pst files on them, and if so, report on their sizes?
Windows OSWindows 7Active Directory

Avatar of undefined
Last Comment
NVIT

8/22/2022 - Mon
John

Any command will take a while since you have to look through all domain USERS folders for PST files.

That said, open Command.exe and try FIND. That should work.
drichman

ASKER
Could you assist with the syntax for the find command? We are looking for *.pst on the C: drive on remote computers.
Andrej Pirman

If you want to do it on regular base, this app might come handy. You setup parameters, domain, admin and password in main program interface, then go to WEB SERVER tab, START it and do search using web interface.
https://www.softperfect.com/products/searchengine/
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
NVIT

Using CMD..

1. Make stns.txt containing computer names...
host1
host2

Open in new window


2. Download and extract psexec

3. Open cmd window as domain admin.

4. Run psexec, sending output to c:\pstfiles.txt

Notes:
a. find /v "too long" filters out the possible extraneous info when the DIR command is run
b. If your pst files reside in different folders than c:\users, adjust as needed.
psexec @stns.txt cmd /c dir /s "c:\users\*.pst" | find /v "too long" >> c:\pstfiles.txt

Open in new window


5. View results in c:\pstfiles.txt
ASKER CERTIFIED SOLUTION
John

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
NVIT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
n2fc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
LeeTutor

I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
John

Answers http:#a41190024 ; http:#a41190054 ; and http:#a41190288  correctly address this issue. Suggest 3-way split
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
NVIT

Neither 41190288 nor 41190024 addresses remote scans across domain computers. A split, if any, should be more like:
80% 41190054
10% 41190288
10% 41190024