PSEXEC: How to find a particular file on Remote System

Hello Experts - Does anyone know the syntax in PSEXEC to use in order to find a particular file on a remote system C drive?
Who is Participating?
Joseph OLoughlinConnect With a Mentor IT Support SpecialistCommented:
psexec \\machine cmd /c dir /s /a /p file.ext
itsmevicAuthor Commented:
Hi Joseph, thanks for the quick response.  Here's what I'm looking for on this remote system.  

psexec \\machinename /c dir /s /a /p keygen-32bits.exe

Is that correct?
Mohammed KhawajaConnect With a Mentor Manager - Infrastructure:  Information TechnologyCommented:
Not it is not correct, it should be:

psexec \\machinename cmd /c dir /s /a /p keygen-32bits.exe
itsmevicAuthor Commented:
Awesome, thank you both!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.